1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +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:
snowleo
2011-04-16 16:16:04 +00:00
parent ba4f17831a
commit 8bba355ca5

View File

@@ -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.");