Putting the amount

Discussion in 'Programming' started by TobleroneMC, May 31, 2016.

Thread Status:
Not open for further replies.
  1. Hi guys, I am doing fake withdraw plugin. It's suppose to message you that the money was taken from your account. But I want to choose how much the player lost money instead of having the message the money that was lost.. I don't know if you guys can understand me, basically you do /take (Playername) then he loses 1000$ but I want it to be like /take (playername) 542524452$ as an example. So you can choose the fake numbers..

    Code (Text):
      }
                    if (p.hasPermission("Tob.Take"));
                    else {
                        p.sendMessage(ChatColor.RED + "You do not have Tob.Take permission ;)");
                        return true;
                    }
                    target.sendMessage(ChatColor.GREEN + args[0]+ "(money) has been taken from your account");
     
  2. You need to get the [1]args and make it an int.
    Please reply if you dont understand!
     
    • Useful Useful x 1
  3. Thanks, worked :)
     
Thread Status:
Not open for further replies.