|
all my items 11969+ in item.cfg are equipping in weap slot. even if they have the name "cape" they are equipping as a weapon. this is my item.java for capes part
public static boolean playerCape(int itemId) {
String[] data = {
"cloak", "cape", "attractor", "Attractor", "Ava's"
};
String item = getItemName(itemId);
if (item == null) {
return false;
}
boolean item1 = false;
for(int i = 0; i < data.length; i++ ) {
if(item.endsWith(data[i]) || item.contains(data[i])) {
item1 = true;
}
}
return item1;
}
oh soz :/ where at in itemassistant would i look
You have to add the items to item.cfg or item.xml for it to work, the server does not know the name of the item unless it is in the item configuration for the server.
or you could just add the item to the capes array thats in most common PI based servers. It too is in the Item.java.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |