Your not checking if they are a donor.
Code:if(!player.isDonator() && player.getRights() == 0) { if(item == donor_item_id) { player.getActionSender().sendMessage("send some message to the player"); return false; } }
|
this is what i have in my itemassistant.java
anything wrong?*Wear Item
**/
public boolean wearItem(int wearID, int slot) {
synchronized(c) {
int targetSlot=0;
boolean canWearItem = true;
if (( wearID ==3273 || wearID==7927 || wearID==4565 || wearID==4084 || wearID==7675) && (c.playerRights > 2)) {
c.sendMessage("You need to be a Donator for this Item..");
return false;
}
Your not checking if they are a donor.
Code:if(!player.isDonator() && player.getRights() == 0) { if(item == donor_item_id) { player.getActionSender().sendMessage("send some message to the player"); return false; } }
*fixed*
if(c.isDonator == 0) {
if(wearID ==3273 || wearID==1037 || wearID==7927 || wearID==4565 || wearID==4084 || wearID==7675) {
c.sendMessage("You need to be a Donator to wear this item!");
return false;
}
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |