summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsProtect/src/com')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java
index 57a6b8c6a..ce76a594d 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java
@@ -33,6 +33,10 @@ public class EssentialsProtectPlayerListener extends PlayerListener
if (prot.getSettingBool(ProtectConfig.disable_build) && !user.canBuild())
{
+ if (ess.getSettings().warnOnBuildDisallow())
+ {
+ user.sendMessage(Util.i18n("buildAlert"));
+ }
event.setCancelled(true);
return;
}