Ye go to wielditem method in itemass And add:
Just under the void.
if(itemId == itemid && c.donator >= 0) {
wielditem part here
} else {
c.sendMessage("You need to a be big ass donator to wear this BITCH");
return;
}
|
hey well i want to make it so that all pvp item's are donator only so you must be donator to wield them. any help with this ?
what do u mean by the wield part here?
what.?
Open item assistant and Find :
Just addCode:public boolean wearItem(int wearID, int slot) { synchronized(c) { int targetSlot=0; if(targetSlot == 3) { c.usingSpecial = false; addSpecialBar(wearID); }
And at the top of the file, put this :Code:if(c.isDonator == 0) for(int i : donItems) if(wearID == i) { c.sendMessage("You must be a donator to wear this item."); return false; }
Replace xxxx by the item id'sCode:public static final int[] donItems = {XXXX,XXXX,XXXX};
Add in
Code:if(c.itemId == ITEMID && c.isDonator) { //action } else { c.sendMessage("You need to be a donator to wield this item); }
Didnt work
yes so only donators can equip it
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |