Negative Coins?

Discussion in 'Plugin Development' started by MCraftGamer35, Sep 5, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MCraftGamer35

    I am coding a oitc plugin, inside it, you get a coin on a kill, and you can do /prestige to prestige your rank, with 55 coins. But a problem is, I could have no coins, and do the command, and go into negative coins. How can I fix this?
     
  2. Offline

    AlexHH251997

    Check to see if the player has more than 55 coins, if not, deny them access to the prestige command.
     
  3. Offline

    MCraftGamer35

    How would I do that? @AlexHH251991
     
  4. Offline

    _Filip

    AlexHH251997 likes this.
  5. Offline

    AlexHH251997

    You would get the integer of the coins, then when the player issues the /prestige command you would create an if statement. Checking if the integer of coins is equal to or larger than what it is required to be.
     
Thread Status:
Not open for further replies.

Share This Page