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 | 627a75657cfc79ed59155603fb894b5f07c06332 (patch) | |
tree | 61daaed047fff0168a158ebe88692c16c08f38e2 /EssentialsProtect/src/com/earth2me/essentials | |
parent | ba6ef52438b33924de17c776a0e797af82427fdd (diff) | |
download | Essentials-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.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; } |