Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
4951bf3ef7
Commit
7514728a72
@ -513,6 +513,7 @@ SIMULATOR_GUI_ITEM_NAME = §eTNT Simulator
|
||||
SIMULATOR_NO_SIM_IN_HAND = §cNo simulator item selected
|
||||
SIMULATOR_GUI_SELECT_SIM = Simulator selection
|
||||
SIMULATOR_NAME_ALREADY_EXISTS = §cSimulator already exists
|
||||
SIMULATOR_NAME_INVALID = §cInvalid name
|
||||
SIMULATOR_NOT_EXISTS = §cSimulator does not exist
|
||||
SIMULATOR_CREATE = §aSimulator created
|
||||
SIMULATOR_EDIT_LOCATION = §7Edit position
|
||||
|
@ -514,6 +514,7 @@ SIMULATOR_GUI_ITEM_NAME = §eTNT Simulator
|
||||
SIMULATOR_NO_SIM_IN_HAND = §cKein Simulator Item gewählt
|
||||
SIMULATOR_GUI_SELECT_SIM = Simulator wählen
|
||||
SIMULATOR_NAME_ALREADY_EXISTS = §cSimulator existiert bereits
|
||||
SIMULATOR_NAME_INVALID = §cUngültiger Name
|
||||
SIMULATOR_NOT_EXISTS = §cSimulator existiert nicht
|
||||
SIMULATOR_CREATE = §aSimulator erstellt
|
||||
SIMULATOR_EDIT_LOCATION = §7Editiere Positionen
|
||||
|
@ -62,6 +62,10 @@ public class SimulatorCommand extends SWCommand {
|
||||
BauSystem.MESSAGE.send("SIMULATOR_NAME_ALREADY_EXISTS", p);
|
||||
return;
|
||||
}
|
||||
if (!name.matches("[a-zA-Z_]+")) {
|
||||
BauSystem.MESSAGE.send("SIMULATOR_NAME_INVALID", p);
|
||||
return;
|
||||
}
|
||||
SimulatorStorage.createNewSimulator(name);
|
||||
BauSystem.MESSAGE.send("SIMULATOR_CREATE", p);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren