From 8a55afc4e16a53074e0933501497a8f7cc3dc295 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 25 Sep 2012 22:37:58 +0100 Subject: [PATCH] Remove debug comments. --- Essentials/src/com/earth2me/essentials/signs/SignWarp.java | 5 ++--- 1 file 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"); - return false; + throw new SignException(_("invalidSignLine", 1)); } else {