diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-05-22 00:41:03 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-05-22 00:41:03 +0100 |
commit | fa58503c9f561a388f9cf1b1cc11f4b6de74c7e2 (patch) | |
tree | 9bd002ceb02097f29b454103b5af3f350a11f777 | |
parent | 9fca3728c3208453936542129053e1ebb4eae56e (diff) | |
download | Essentials-fa58503c9f561a388f9cf1b1cc11f4b6de74c7e2.tar Essentials-fa58503c9f561a388f9cf1b1cc11f4b6de74c7e2.tar.gz Essentials-fa58503c9f561a388f9cf1b1cc11f4b6de74c7e2.tar.lz Essentials-fa58503c9f561a388f9cf1b1cc11f4b6de74c7e2.tar.xz Essentials-fa58503c9f561a388f9cf1b1cc11f4b6de74c7e2.zip |
Code tidy.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Teleport.java | 5 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhome.java | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index 9d05f9368..6569a1689 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -2,7 +2,6 @@ package com.earth2me.essentials; import com.earth2me.essentials.api.ITeleport; import static com.earth2me.essentials.I18n._; -import com.earth2me.essentials.commands.NotEnoughArgumentsException; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.logging.Logger; @@ -190,7 +189,7 @@ public class Teleport implements Runnable, ITeleport { cancel(false); } - + public void teleport(Location loc, Trade chargeFor) throws Exception { teleport(new Target(loc), chargeFor, TeleportCause.PLUGIN); @@ -277,7 +276,7 @@ public class Teleport implements Runnable, ITeleport { now(new Target(user.getLastLocation()), TeleportCause.COMMAND); } - + public void home(Location loc, Trade chargeFor) throws Exception { teleport(new Target(loc), chargeFor, TeleportCause.COMMAND); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java index 4a28565ee..d838411cf 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhome.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhome.java @@ -1,7 +1,6 @@ package com.earth2me.essentials.commands; import static com.earth2me.essentials.I18n._; -import com.earth2me.essentials.Teleport; import com.earth2me.essentials.Trade; import com.earth2me.essentials.User; import com.earth2me.essentials.Util; @@ -107,6 +106,6 @@ public class Commandhome extends EssentialsCommand { throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName())); } - user.getTeleport().home(loc, charge); + user.getTeleport().home(loc, charge); } } |