Code:if (c.playerRights = 2) { c.sendMessage("you can't drop as an admin"); return; }
|
Ok so i went into my config.java file and made "ADMIN_DROP_ITEMS" to false but admins are still able to drop items. I dont know whats going on. Anyone wanna help meh?
Code:if (c.playerRights = 2) { c.sendMessage("you can't drop as an admin"); return; }
Message me on msn, I'll help you out.
\server\src\server\model\players\packets
dropitem.java
toServer.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
only right way to do it.if (c.playerRights != 2) {
Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |