I'd suggest taking a good look at the 'player' & 'other' variables
|
Hi, at the moment i am working on a Demthium 639 and i am trying to add a jail command but i got the teleports and teleblock set.But soon as the player relogs they are able to teleport out of jail and also how do you make the command control another player?
Because at the moment my command is ::jail and it will just jail the player who does the command.I want to make the command jail a player so it would be ::jail (username of player).
This is the jail command code that i have at the moment and im needing help please help.
Please re-write this in the correct way as a comment.Thank-You.}
if(command[0].equals("jail")) {
Player other = World.getWorld().getPlayerInServer(
getCompleteString(command, 1).substring(0,
getCompleteString(command, 1).length() - 1));
player.teleport(1900, 4264, 0);
player.setAttribute("teleblock", 999999999);
player.sendMessage("You have been jailed!");
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |