package com.earth2me.essentials.commands; import org.bukkit.Location; import org.bukkit.Server; import com.earth2me.essentials.User; public class Commandtppos extends EssentialsCommand { public Commandtppos() { super("tppos"); } @Override public void run(Server server, User user, String commandLabel, String[] args) throws Exception { if (args.length < 3) { throw new NotEnoughArgumentsException(); } int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); int z = Integer.parseInt(args[2]); Location l = new Location(user.getWorld(), x, y, z); user.canAfford(this); user.sendMessage("ยง7Teleporting..."); user.getTeleport().teleport(l, this.getName()); } }