SteamWar/BauSystem2.0
Archiviert
12
0

Fix ItemsCommand in Local Region if Global is not enabled
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-08-26 11:56:56 +02:00
Ursprung 213667541c
Commit a0fe836616

Datei anzeigen

@ -42,11 +42,6 @@ public class ItemsCommand extends SWCommand {
@Register(description = "REGION_ITEMS_HELP") @Register(description = "REGION_ITEMS_HELP")
public void toggleCommand(@Validator Player p) { public void toggleCommand(@Validator Player p) {
Region region = Region.getRegion(p.getLocation()); 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)) { if (toggle(region)) {
RegionUtils.actionBar(region, getEnableMessage()); RegionUtils.actionBar(region, getEnableMessage());
} else { } else {