mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 11:06:08 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue