summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials
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
commit627a75657cfc79ed59155603fb894b5f07c06332 (patch)
tree61daaed047fff0168a158ebe88692c16c08f38e2 /EssentialsProtect/src/com/earth2me/essentials
parentba6ef52438b33924de17c776a0e797af82427fdd (diff)
downloadEssentials-627a75657cfc79ed59155603fb894b5f07c06332.tar
Essentials-627a75657cfc79ed59155603fb894b5f07c06332.tar.gz
Essentials-627a75657cfc79ed59155603fb894b5f07c06332.tar.lz
Essentials-627a75657cfc79ed59155603fb894b5f07c06332.tar.xz
Essentials-627a75657cfc79ed59155603fb894b5f07c06332.zip
Another missing part
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-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;
}