Hotfix CommandReset NPE
Hotfix CommandTestblock NPE
Dieser Commit ist enthalten in:
Ursprung
08d795579d
Commit
bb598ba8ad
@ -46,7 +46,7 @@ public class CommandReset implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Region region = Region.getRegion(player.getLocation());
|
Region region = Region.getRegion(player.getLocation());
|
||||||
if (region == null) {
|
if (region == Region.GlobalRegion.getInstance()) {
|
||||||
player.sendMessage(BauSystem.PREFIX + "§cDu befindest dich derzeit in keiner Region");
|
player.sendMessage(BauSystem.PREFIX + "§cDu befindest dich derzeit in keiner Region");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ public class CommandTestblock implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Region region = Region.getRegion(player.getLocation());
|
Region region = Region.getRegion(player.getLocation());
|
||||||
if (region == null || !region.hasTestblock()) {
|
if (!region.hasTestblock()) {
|
||||||
player.sendMessage(BauSystem.PREFIX + "§cDu befindest dich derzeit in keiner Region");
|
player.sendMessage(BauSystem.PREFIX + "§cDu befindest dich derzeit in keiner Region");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren