mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-25 08:52:40 +01:00
Remove debug comments.
This commit is contained in:
parent
765e849b0f
commit
758d8f52b5
@ -1,6 +1,7 @@
|
|||||||
package com.earth2me.essentials.signs;
|
package com.earth2me.essentials.signs;
|
||||||
|
|
||||||
import com.earth2me.essentials.ChargeException;
|
import com.earth2me.essentials.ChargeException;
|
||||||
|
import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.IEssentials;
|
import com.earth2me.essentials.IEssentials;
|
||||||
import com.earth2me.essentials.Trade;
|
import com.earth2me.essentials.Trade;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
@ -17,15 +18,13 @@ public class SignWarp extends EssentialsSign
|
|||||||
@Override
|
@Override
|
||||||
protected boolean onSignCreate(final ISign sign, final User player, final String username, final IEssentials ess) throws SignException
|
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);
|
validateTrade(sign, 3, ess);
|
||||||
final String warpName = sign.getLine(1);
|
final String warpName = sign.getLine(1);
|
||||||
|
|
||||||
if (warpName.isEmpty())
|
if (warpName.isEmpty())
|
||||||
{
|
{
|
||||||
ess.getLogger().info("trying to change sign to show error");
|
|
||||||
sign.setLine(1, "§c<Warp name>");
|
sign.setLine(1, "§c<Warp name>");
|
||||||
return false;
|
throw new SignException(_("invalidSignLine", 1));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user