you own your own rsps, and not sure how to do this?
|
you own your own rsps, and not sure how to do this?
What are you using? PI, Detla, Czar ect.
make the item command a specific player rights.... ?
Code:if (playerCommand.startsWith("item") && c.playerRights == 3) {
heey i added the shit into the config.java but im not too sure where to add the } else if (newItemID == Config.UNSPAWNABLE_ITEMS){
c.sendMessage("You are not allowed to spawn that item"); into the commands ::item anyone can help me?
Just add this to Commands.java
Code:if (playerCommand.startsWith("item") && c.playerRights >= 3) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::item 995 200 for example 200 gp"); } } catch(Exception e) { } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |