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:
@@ -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);
|
event.setCancelled(true);
|
||||||
user.sendMessage("§cYou do not have permission to destroy that sign.");
|
user.sendMessage("§cYou do not have permission to destroy that sign.");
|
||||||
|
Reference in New Issue
Block a user