Hello, I like to write a jail plugin. with the command /jail <user> So i have: String[] jailer = cmd.split(" "); it means jailer[1] is the name of the <user> my question is now how to teleport this user to any locaion with the teleportclass ?!
thanks... later i will add /setjail with player.getlocation and save it in the config file so i need to know how "location" is defined ?
http://javadoc.lukegb.com/Bukkit/da/dac/classorg_1_1bukkit_1_1Location.html the easiest way I think is this: Code: Player player = plugin.getServer().getPlayer(jailer[1]); Location location = player.getLocation(); location.setX(<double x>); location.setY(<double y>); location.setZ(<double z>); player.teleportTo(location);