Thread: How to give a player specfic commands

Results 1 to 10 of 10
  1. #1 How to give a player specfic commands 
    Registered Member TurbineX's Avatar
    Join Date
    Nov 2013
    Posts
    65
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    how do i give a player the right to do command ::jail without being a moderator? i dont have a server support rank but i changed my super donor rank to support now i need to give every player that has 'sup' the ability to do ::jail and ::mute
    Reply With Quote  
     

  2. #2  
    Registered Member TurbineX's Avatar
    Join Date
    Nov 2013
    Posts
    65
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    else if (player.isSup == true) is the code im trying to give the commands to
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2013
    Posts
    126
    Thanks given
    5
    Thanks received
    21
    Rep Power
    42
    Quote Originally Posted by TurbineX View Post
    how do i give a player the right to do command ::jail without being a moderator? i dont have a server support rank but i changed my super donor rank to support now i need to give every player that has 'sup' the ability to do ::jail and ::mute
    If you're using PI use if (c.playerName.equalsIgnoreCase("Your name")) {
    Reply With Quote  
     

  4. #4  
    Donator
    Insanity_'s Avatar
    Join Date
    Apr 2013
    Age
    31
    Posts
    63
    Thanks given
    6
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Savior View Post
    If you're using PI use if (c.playerName.equalsIgnoreCase("Your name") {
    yes this should do the trick if you want just that player to be able to use the command.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Nov 2010
    Age
    14
    Posts
    2,639
    Thanks given
    158
    Thanks received
    280
    Rep Power
    0
    Code:
    if (c.playerName.equalsIgnoreCase("Name Here") {
    Reply With Quote  
     

  6. #6  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Call View Post
    Code:
    if (c.playerName.equalsIgnoreCase("Name Here") {
    ) ..
    Reply With Quote  
     

  7. #7  
    Registered Member Struct Blitz's Avatar
    Join Date
    Nov 2013
    Age
    28
    Posts
    334
    Thanks given
    41
    Thanks received
    59
    Rep Power
    13
    Can't you just do
    Code:
       if (playerCommand.startsWith("jail") && c.playerRights == 2) {
    And change the playerRights to whatever the support # is
    Reply With Quote  
     

  8. #8  
    Donator
    Insanity_'s Avatar
    Join Date
    Apr 2013
    Age
    31
    Posts
    63
    Thanks given
    6
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Struct Blitz View Post
    Can't you just do
    Code:
       if (playerCommand.startsWith("jail") && c.playerRights == 2) {
    And change the playerRights to whatever the support # is
    he wants it to be just for specific people
    Reply With Quote  
     

  9. #9  
    Registered Member TurbineX's Avatar
    Join Date
    Nov 2013
    Posts
    65
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Savior View Post
    If you're using PI use if (c.playerName.equalsIgnoreCase("Your name") {
    Repped, thanks
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Dec 2011
    Age
    29
    Posts
    794
    Thanks given
    92
    Thanks received
    84
    Rep Power
    250
    Quote Originally Posted by TurbineX View Post
    Repped, thanks
    It will be more efficient if u add it to your command check like
    Code:
    if(playerCommand.startsWith("restart") && c.playerName.equalsIgnoreCase("Ayush Arya") {
    Always try to keep your code clean and efficient.

    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: 2
    Last Post: 04-04-2014, 07:13 PM
  2. how to give player rights on a 508?
    By sexyrussian in forum Help
    Replies: 13
    Last Post: 01-28-2010, 03:42 PM
  3. Replies: 46
    Last Post: 07-15-2008, 06:26 PM
  4. How to give ranks- the command
    By booher in forum Tutorials
    Replies: 12
    Last Post: 08-17-2007, 01:35 AM
  5. Replies: 8
    Last Post: 07-23-2007, 10:17 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
  •