Fix BauGUICommand
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
7e40e4ab63
Commit
4d33f67926
@ -70,8 +70,12 @@ public class BauGUICommand extends SWCommand {
|
|||||||
|
|
||||||
@Register("import")
|
@Register("import")
|
||||||
public void importGui(Player p, String code) {
|
public void importGui(Player p, String code) {
|
||||||
|
try {
|
||||||
if (BauGuiImportExport.importGui(code, p)) {
|
if (BauGuiImportExport.importGui(code, p)) {
|
||||||
BauSystem.MESSAGE.send("GUI_IMPORT_CODE-SUCCESSFUL", p);
|
BauSystem.MESSAGE.send("GUI_IMPORT_CODE-SUCCESSFUL", p);
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
BauSystem.MESSAGE.send("GUI_IMPORT_INVALID-CODE", p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren