summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-06-12 14:54:56 +0200
committersnowleo <schneeleo@gmail.com>2011-06-12 14:54:56 +0200
commitf0c503dd13260a3d453b85ebeba46773f9c5e8cd (patch)
tree4f3498b6abc7db0eb2aa1c85e746a2d09ffc3478 /EssentialsProtect/src/com/earth2me/essentials/protect
parentbfa8b2666178402e33bfe3888b38beeb197039fa (diff)
downloadEssentials-f0c503dd13260a3d453b85ebeba46773f9c5e8cd.tar
Essentials-f0c503dd13260a3d453b85ebeba46773f9c5e8cd.tar.gz
Essentials-f0c503dd13260a3d453b85ebeba46773f9c5e8cd.tar.lz
Essentials-f0c503dd13260a3d453b85ebeba46773f9c5e8cd.tar.xz
Essentials-f0c503dd13260a3d453b85ebeba46773f9c5e8cd.zip
Another missing part
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect')
-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;
}