+ if(activeChar.isDonator())
+ {
+ activeChar.sendMessage("You are already a donator.You cannot use that item.");
+ return;
+ playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
+ activeChar.setDonator(true);
+ updateDatabase(activeChar, true);
+ activeChar.sendMessage("Thanks for using our item in order to be server's donator.");
+ activeChar.broadcastUserInfo();
The donator check is not closed.
if(activeChar.isDonator())
{
activeChar.sendMessage("You are already a donator.You cannot use that item.");
return;
+ }
playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
activeChar.setDonator(true);
updateDatabase(activeChar, true);
activeChar.sendMessage("Thanks for using our item in order to be server's donator.");
activeChar.broadcastUserInfo();
And this updateDatabase is kinda bleh, but w/e.. :P
Btw, if you add that bracket, there might be an error since you added it before at the end of the file and Ninja suggested. So, remove it.