mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-03 01:19:58 +01:00
Code tidy.
This commit is contained in:
parent
9fca3728c3
commit
fa58503c9f
@ -2,7 +2,6 @@ package com.earth2me.essentials;
|
|||||||
|
|
||||||
import com.earth2me.essentials.api.ITeleport;
|
import com.earth2me.essentials.api.ITeleport;
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.commands.NotEnoughArgumentsException;
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
@ -190,7 +189,7 @@ public class Teleport implements Runnable, ITeleport
|
|||||||
{
|
{
|
||||||
cancel(false);
|
cancel(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void teleport(Location loc, Trade chargeFor) throws Exception
|
public void teleport(Location loc, Trade chargeFor) throws Exception
|
||||||
{
|
{
|
||||||
teleport(new Target(loc), chargeFor, TeleportCause.PLUGIN);
|
teleport(new Target(loc), chargeFor, TeleportCause.PLUGIN);
|
||||||
@ -277,7 +276,7 @@ public class Teleport implements Runnable, ITeleport
|
|||||||
{
|
{
|
||||||
now(new Target(user.getLastLocation()), TeleportCause.COMMAND);
|
now(new Target(user.getLastLocation()), TeleportCause.COMMAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void home(Location loc, Trade chargeFor) throws Exception
|
public void home(Location loc, Trade chargeFor) throws Exception
|
||||||
{
|
{
|
||||||
teleport(new Target(loc), chargeFor, TeleportCause.COMMAND);
|
teleport(new Target(loc), chargeFor, TeleportCause.COMMAND);
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package com.earth2me.essentials.commands;
|
package com.earth2me.essentials.commands;
|
||||||
|
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.Teleport;
|
|
||||||
import com.earth2me.essentials.Trade;
|
import com.earth2me.essentials.Trade;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.Util;
|
import com.earth2me.essentials.Util;
|
||||||
@ -107,6 +106,6 @@ public class Commandhome extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName()));
|
throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName()));
|
||||||
}
|
}
|
||||||
user.getTeleport().home(loc, charge);
|
user.getTeleport().home(loc, charge);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user