Fix ItemsCommand in Local Region if Global is not enabled
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
213667541c
Commit
a0fe836616
@ -42,11 +42,6 @@ public class ItemsCommand extends SWCommand {
|
||||
@Register(description = "REGION_ITEMS_HELP")
|
||||
public void toggleCommand(@Validator Player p) {
|
||||
Region region = Region.getRegion(p.getLocation());
|
||||
if (region != GlobalRegion.getInstance() && GlobalRegion.getInstance().getPlain(Flag.ITEMS, ItemMode.class) == ItemMode.INACTIVE) {
|
||||
RegionUtils.actionBar(region, "REGION_ITEMS_DISABLED_GLOBAL");
|
||||
return;
|
||||
}
|
||||
|
||||
if (toggle(region)) {
|
||||
RegionUtils.actionBar(region, getEnableMessage());
|
||||
} else {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren