mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-10-02 01:27:28 +02:00
[trunk] Protection signs: Only owner of signs can destroy the signs.
This is also guarded by EssentialsProtect. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1230 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
4363d975b5
commit
4824493ced
@ -44,7 +44,8 @@ public class EssentialsBlockListener extends BlockListener
|
||||
}
|
||||
}
|
||||
|
||||
if (checkProtectionSign(event.getBlock(), user) != OWNER)
|
||||
if (checkProtectionSign(event.getBlock(), user) != NOSIGN &&
|
||||
checkProtectionSign(event.getBlock(), user) != OWNER)
|
||||
{
|
||||
event.setCancelled(true);
|
||||
user.sendMessage("§cYou do not have permission to destroy that sign.");
|
||||
|
Loading…
Reference in New Issue
Block a user