Thread: Donator+ command

Results 1 to 6 of 6
  1. #1 Donator+ command 
    Owner of KompressedX
    Natee's Avatar
    Join Date
    Oct 2012
    Posts
    169
    Thanks given
    15
    Thanks received
    16
    Rep Power
    12
    Trying to get my ;;bank command to only work for donator+

    using this but it wont work

    Code:
    }
       if (cmd[0].equalsIgnoreCase("bank")) {
       if (player.getRights() < 1 && player.getRights() > 10) {
         player.getBank().openBank();
         return true;
        }
    Haven't coded since 2011 so feel free to tear away at me but shouldn't allow players with rights from 1-10 use the ;;bank command?

    I looked around before I wrote this thread and found something along the lines of is.playerInGroup("Donator")) { and that just gave me a shit load of errors.
    Reply With Quote  
     

  2. #2  
    Kanketsu
    JacobiYounger's Avatar
    Join Date
    Aug 2009
    Posts
    723
    Thanks given
    49
    Thanks received
    31
    Rep Power
    31
    if(c.playerRights >= change this) {
    if (playerCommand.startsWith("bank")) {
    c.getPA().openUpBank();
    }
    }
    Reply With Quote  
     

  3. #3  
    Donator

    Chief Sosa's Avatar
    Join Date
    Jun 2012
    Posts
    1,163
    Thanks given
    49
    Thanks received
    234
    Rep Power
    83
    Code:
    if (playerCommand.equalsIgnoreCase("bank") && c.isDonator >= 1 ) {
    c.getPA().openUpBank();
    }
    ?
    Code:
       if (cmd[0].equalsIgnoreCase("bank")) {
       if (player.getRights() >= 1) {
         player.getBank().openBank();
         return true;
        }
    }

    Reply With Quote  
     

  4. #4  
    Owner of KompressedX
    Natee's Avatar
    Join Date
    Oct 2012
    Posts
    169
    Thanks given
    15
    Thanks received
    16
    Rep Power
    12
    Forgot to say, 667 guys.
    Reply With Quote  
     

  5. #5  
    Kanketsu
    JacobiYounger's Avatar
    Join Date
    Aug 2009
    Posts
    723
    Thanks given
    49
    Thanks received
    31
    Rep Power
    31
    Quote Originally Posted by Phwaacy View Post
    Forgot to say, 667 guys.
    Then your in the wrong section for 1...
    Reply With Quote  
     

  6. #6  
    Owner of KompressedX
    Natee's Avatar
    Join Date
    Oct 2012
    Posts
    169
    Thanks given
    15
    Thanks received
    16
    Rep Power
    12
    Oops, sorry!
    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. [pi]Donate command[Pi]
    By Zattion in forum Help
    Replies: 6
    Last Post: 06-24-2011, 02:46 PM
  2. [PI] ::donated Command
    By Harambe_ in forum Snippets
    Replies: 2
    Last Post: 01-15-2011, 01:33 AM
  3. donator command
    By Rainex in forum Help
    Replies: 2
    Last Post: 08-19-2010, 08:52 PM
  4. give donater command z508
    By Buckshot in forum Requests
    Replies: 3
    Last Post: 02-18-2010, 10:32 PM
  5. Donator command Request
    By Mr. Rave in forum Requests
    Replies: 10
    Last Post: 05-10-2009, 05:36 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
  •