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());
|
||||
if (region == null) {
|
||||
if (region == Region.GlobalRegion.getInstance()) {
|
||||
player.sendMessage(BauSystem.PREFIX + "§cDu befindest dich derzeit in keiner Region");
|
||||
return false;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public class CommandTestblock implements CommandExecutor {
|
||||
}
|
||||
|
||||
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");
|
||||
return false;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren