Fix TNT naming
Dieser Commit ist enthalten in:
Ursprung
43b9068415
Commit
99ed270424
@ -116,8 +116,9 @@ public class TNTSimulator {
|
||||
|
||||
// tnt Name
|
||||
swInventory.setItem(45, new SWItem(Material.NAME_TAG, "§eName", clickType -> {
|
||||
TNTSimulatorAnvil tntSimulatorAnvil = new TNTSimulatorAnvil(player, "Name", tntSpawn.getName());
|
||||
TNTSimulatorAnvil tntSimulatorAnvil = new TNTSimulatorAnvil(player, "Name", "»" + tntSpawn.getName());
|
||||
tntSimulatorAnvil.setCallback(s -> {
|
||||
if (s.startsWith("»")) s = s.substring(1);
|
||||
tntSpawn.setName(s);
|
||||
editTNT(player, tntSpawn);
|
||||
});
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren