Skip to content

Commit

Permalink
Code tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
khobbits committed May 21, 2012
1 parent 556665d commit 3ef591d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Essentials/src/com/earth2me/essentials/Teleport.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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;
Expand Down Expand Up @@ -190,7 +189,7 @@ public void cancel()
{
cancel(false);
}

public void teleport(Location loc, Trade chargeFor) throws Exception
{
teleport(new Target(loc), chargeFor, TeleportCause.PLUGIN);
Expand Down Expand Up @@ -277,7 +276,7 @@ public void back() throws Exception
{
now(new Target(user.getLastLocation()), TeleportCause.COMMAND);
}

public void home(Location loc, Trade chargeFor) throws Exception
{
teleport(new Target(loc), chargeFor, TeleportCause.COMMAND);
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -107,6 +106,6 @@ private void goHome(final User user, final User player, final String home, final
{
throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName()));
}
user.getTeleport().home(loc, charge);
user.getTeleport().home(loc, charge);
}
}

0 comments on commit 3ef591d

Please sign in to comment.