Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
911f91a570
Commit
d2473ee72f
@ -54,6 +54,16 @@ public class ItemsCommand extends SWCommand {
|
||||
}
|
||||
}
|
||||
|
||||
@Register(value = "global", description = "REGION_ITEMS_HELP")
|
||||
public void globalToggleCommand(@Validator Player p) {
|
||||
Region region = GlobalRegion.getInstance();
|
||||
if (toggle(region)) {
|
||||
RegionUtils.actionBar(region, getEnableMessage());
|
||||
} else {
|
||||
RegionUtils.actionBar(region, getDisableMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private String getNoPermMessage() {
|
||||
return "REGION_ITEMS_NO_PERMS";
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren