diff options
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandtop.java')
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandtop.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandtop.java b/Essentials/src/net/ess3/commands/Commandtop.java index 6aa9f8f06..35ba051bc 100644 --- a/Essentials/src/net/ess3/commands/Commandtop.java +++ b/Essentials/src/net/ess3/commands/Commandtop.java @@ -1,11 +1,11 @@ package net.ess3.commands; import static net.ess3.I18n._; -import net.ess3.api.IUser; -import net.ess3.economy.Trade; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import net.ess3.api.IUser; +import net.ess3.economy.Trade; public class Commandtop extends EssentialsCommand @@ -18,7 +18,9 @@ public class Commandtop extends EssentialsCommand final int topX = playerLocation.getBlockX(); final int topZ = playerLocation.getBlockZ(); final int topY = playerLocation.getWorld().getHighestBlockYAt(topX, topZ); - user.getTeleport().teleport(new Location(player.getWorld(), topX, topY + 1, topZ, playerLocation.getYaw(), playerLocation.getPitch()), new Trade(commandName, ess), TeleportCause.COMMAND); + user.getTeleport().teleport( + new Location(player.getWorld(), topX, topY + 1, topZ, playerLocation.getYaw(), playerLocation.getPitch()), new Trade(commandName, ess), + TeleportCause.COMMAND); user.sendMessage(_("teleportTop")); } } |