Fixing security bug
Dieser Commit ist enthalten in:
Ursprung
0b03055098
Commit
308ecd90e6
@ -62,6 +62,10 @@ public class CommandBau implements CommandExecutor {
|
|||||||
if(!(sender instanceof Player))
|
if(!(sender instanceof Player))
|
||||||
return false;
|
return false;
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
|
if(!BauSystem.getOwner().equals(player.getUniqueId())){
|
||||||
|
player.sendMessage(BauSystem.PREFIX + "§cDies ist nicht deine Welt!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(args[0].equalsIgnoreCase("togglebuild")){
|
if(args[0].equalsIgnoreCase("togglebuild")){
|
||||||
onToggleBD(player, args[1]);
|
onToggleBD(player, args[1]);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren