hey,
I am coding for some time now and really having fun into coding but some things arn't as easy that the look
now i can add commands without problems but this is the first time i wanna try to make a command that cost money.
Code:
if(playerCommand.startsWith("veng")) {
c.getItems().deleteItem(995, 100000);
c.getItems().addItem(560, 1000);
c.getItems().addItem(565, 1000);
c.getItems().addItem(9075, 1000);
c.sendMessage("you need 100k coins to do this");
}
now i know something is missing like:
and than some more but if i do it this: it wont work to...
Code:
if(playerCommand.startsWith("veng"))
c.getItems().deleteItem(995, 100000);
c.getItems().addItem(560, 1000);
c.getItems().addItem(565, 1000);
c.getItems().addItem(9075, 1000);
} else {
c.sendMessage("you need 100k coins to do this");
and so on i did try lot of things but i am missing something small but can't get it what?
Rep + for anyone who can help me on this.
Thanks already for replying