Hotfix WE problem
Dieser Commit ist enthalten in:
Ursprung
6600731321
Commit
641a7bb6ec
@ -68,10 +68,14 @@ public class RegionListener implements Listener {
|
|||||||
public void onBlockPlace(BlockPlaceEvent e) {
|
public void onBlockPlace(BlockPlaceEvent e) {
|
||||||
Player p = e.getPlayer();
|
Player p = e.getPlayer();
|
||||||
|
|
||||||
|
try{
|
||||||
if (Welt.noPermission(p, Permission.build)){
|
if (Welt.noPermission(p, Permission.build)){
|
||||||
p.sendMessage(BauSystem.PREFIX + "§cDu darfst hier keine Blöcke platzieren");
|
p.sendMessage(BauSystem.PREFIX + "§cDu darfst hier keine Blöcke platzieren");
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
}catch(NullPointerException ex){
|
||||||
|
//ignored, caused by worldedit brushes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isWorldEditCommand(String command) {
|
private boolean isWorldEditCommand(String command) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren