if ((newItemID <= MAXIDYOUHAVE) && (newItemID >= 0)) {
add that in your item command
|
I have two issues i would like to address. (The source is PI).
Players can spawn some items (such as borrowed items with the red circles) which are not in my item.cfg file.
And when a player tries to spawn a stupid item like torva boots or lucky godsword which arn't in my rsps they dc and cant login, and then i have to manually go into char files and delete the item. It is getting rather annoying now, so are there are efficient fixes? The players use ::item.
if ((newItemID <= MAXIDYOUHAVE) && (newItemID >= 0)) {
add that in your item command
under that code i posted above add
Then in config.javaCode:for (int i = 0; i < Config.UNSPAWNABLE.length; i++) { if (c.getItems().getItemName(newItemID).toLowerCase().contains(Config.UNSPAWNABLE[i]) && c.playerRights != 3) { c.sendMessage("Can't spawn this item."); return; } }
etc.Code:public static final String[] UNSPAWNABLE = { "arcane", "divine", "spectral", "elysian", "spirit",}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |