srls no1? :L
|
well i was trying to add vote4cash and i fully added it and bla bla bla , but the ::claim command aren't giving me spins for wheels and voting points just cash
This is the command:
if (playerCommand.startsWith("claim")) {
if(c.checkVotes(c.playerName)) {
c.getItems().addItem(c.votingPoints, 1); //rewards vote points
c.getItems().addItem(c.Wheel, 2); //rewards wheel
c.getItems().addItem(995, 5000000); //rewards cash
c.sendMessage("Thanks for voting!");
} else {
c.sendMessage("You have not yet voted, type ::vote to do so");
}
}
Whats is wrong? :3
Vote points and wheel spins are not "items" so you can't use:
c.getItems().addItem(c.votingPoints, 1); //rewards vote points
c.getItems().addItem(c.Wheel, 2); //rewards wheel
Instead try something like this:
c.votingPoints += 1; //rewards vote points
c.Wheel += 2; //rewards wheel
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |