Thread: (718) Command that can only be executed by 1 person

Results 1 to 3 of 3
  1. #1 (718) Command that can only be executed by 1 person 
    Registered Member
    Join Date
    Aug 2014
    Posts
    21
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    I want a command that can only be executed by 1 person (jeffrey) someone any idea what I'm doing wrong? (ps: this is an example)
    Thanks in advance.

    [code]

    case "coords":
    if (!player.getUsername().equalsIgnoreCase("jeffrey") ) {
    player.getDialogueManager().startDialogue("SimpleM essage", "You can't do this command sorry.");
    return true;
    }
    player.getPackets().sendPanelBoxMessage("Coords: " + player.getX() + ", " + player.getY() + ", " + player.getPlane() + ", regionId: " + player.getRegionId() + ", rx: " + player.getChunkX() + ", ry: " + player.getChunkY());
    return true;

    [code/]
    Reply With Quote  
     

  2. #2  
    Certified Stoner

    demon dylan001's Avatar
    Join Date
    Feb 2009
    Age
    28
    Posts
    1,134
    Thanks given
    77
    Thanks received
    96
    Rep Power
    509
    what's your errors giving.also you can get rid of the return true; and just make it return; when it checks for jeffrey. that way it doesnt keep moving forward. sorry for my offer grammar and typing. sendmessage has a space in it as well not sure if you noticed
    Quote Originally Posted by Legitimate View Post
    this kids a str8 leecher
    lol ^ this kid calls me a leecher and buys tons of stuff from me.
    I host Call of duty prestige lobbies on xbox 360
    I can host any call of duty you want just make me an offer pm me if interested
    Spoiler for Sig too big:

    skype-demondylan001 discord demon dylan001#8904
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2014
    Posts
    21
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by demon dylan001 View Post
    what's your errors giving.also you can get rid of the return true; and just make it return; when it checks for jeffrey. that way it doesnt keep moving forward. sorry for my offer grammar and typing. sendmessage has a space in it as well not sure if you noticed
    Thanks alot, fixed
    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. Replies: 3
    Last Post: 12-12-2013, 03:32 AM
  2. footer that can't be deleted
    By Morphine in forum Application Development
    Replies: 11
    Last Post: 12-25-2012, 10:10 AM
  3. Replies: 8
    Last Post: 01-26-2012, 05:58 PM
  4. Duel rules that can't be at the same time
    By Jonas++ in forum Requests
    Replies: 5
    Last Post: 10-22-2008, 06:30 PM
  5. Replies: 13
    Last Post: 10-17-2008, 11:18 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •