diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-09-25 22:37:58 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-09-25 22:37:58 +0100 |
commit | 8a55afc4e16a53074e0933501497a8f7cc3dc295 (patch) | |
tree | 88db5c01dc06be1f145f79f8a3db11bdbc64b2bd | |
parent | 2bc9f2e38668e98eb1ad2d460ab167e3da9c2678 (diff) | |
download | Essentials-8a55afc4e16a53074e0933501497a8f7cc3dc295.tar Essentials-8a55afc4e16a53074e0933501497a8f7cc3dc295.tar.gz Essentials-8a55afc4e16a53074e0933501497a8f7cc3dc295.tar.lz Essentials-8a55afc4e16a53074e0933501497a8f7cc3dc295.tar.xz Essentials-8a55afc4e16a53074e0933501497a8f7cc3dc295.zip |
Remove debug comments.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignWarp.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignWarp.java b/Essentials/src/com/earth2me/essentials/signs/SignWarp.java index ae49f743b..8f470bc6b 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignWarp.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignWarp.java @@ -1,6 +1,7 @@ package com.earth2me.essentials.signs; import com.earth2me.essentials.ChargeException; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.IEssentials; import com.earth2me.essentials.Trade; import com.earth2me.essentials.User; @@ -17,15 +18,13 @@ public class SignWarp extends EssentialsSign @Override protected boolean onSignCreate(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException { - ess.getLogger().info("triggered warp sign create"); validateTrade(sign, 3, ess); final String warpName = sign.getLine(1); if (warpName.isEmpty()) { - ess.getLogger().info("trying to change sign to show error"); sign.setLine(1, "§c<Warp name>"); - return false; + throw new SignException(_("invalidSignLine", 1)); } else { |