Thread: Jail Command Help!

Results 1 to 2 of 2
  1. #1 Jail Command Help! 
    Registered Member
    Join Date
    Mar 2012
    Posts
    44
    Thanks given
    0
    Thanks received
    0
    Rep Power
    9
    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.

    }
    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!");
    Please re-write this in the correct way as a comment.Thank-You.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    I'd suggest taking a good look at the 'player' & 'other' variables
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. ::Jail Command Help
    By Oaty in forum Help
    Replies: 3
    Last Post: 11-08-2011, 02:52 AM
  2. ::jail command [PI]
    By MrBeka in forum Help
    Replies: 2
    Last Post: 09-08-2011, 11:52 AM
  3. Adding Jail command & Right Click Jail
    By snpteen in forum Tutorials
    Replies: 22
    Last Post: 12-23-2008, 04:25 AM
  4. Jail command + time v2
    By Lil Str Kid in forum Configuration
    Replies: 19
    Last Post: 12-06-2008, 07:10 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •