diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-12 14:54:56 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-12 14:54:56 +0200 |
commit | f0c503dd13260a3d453b85ebeba46773f9c5e8cd (patch) | |
tree | 4f3498b6abc7db0eb2aa1c85e746a2d09ffc3478 /EssentialsProtect/src | |
parent | bfa8b2666178402e33bfe3888b38beeb197039fa (diff) | |
download | Essentials-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')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java | 4 |
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; } |