Remove the thing that says:
&& playerRights == 3)
|
|
How to add ::item for everyone on Battlescape Source?

Remove the thing that says:
&& playerRights == 3)
change it so you don't need player rights to use it?
No my item thing isCode:else if (Command.startsWith("item")) { if (combatDelay > 0) { sendMessage("Your in combat!"); return; } try { int itemId = Integer.parseInt(cmd[1]); int amt = Integer.parseInt(cmd[2]); addItem(itemId, amt); } catch(Exception e) { } }

should do itCode:if (playerRights >= 0) { if (Command.startsWith("item")) { if (combatDelay > 0) { sendMessage("Your in combat!"); return; } try { int itemId = Integer.parseInt(cmd[1]); int amt = Integer.parseInt(cmd[2]); addItem(itemId, amt); } catch(Exception e) { } } }
or just cut and paste it to where the regular player commands are
Doesnt workCode:if (playerRights >= 0) { if (Command.startsWith("item")) { if (combatDelay > 0) { sendMessage("Your in combat!"); return; } try { int itemId = Integer.parseInt(cmd[1]); int amt = Integer.parseInt(cmd[2]); addItem(itemId, amt); } catch(Exception e) { } } }![]()

...want me to go on teamviewer or something?

Your putting it in the wrong place then.

The ::item command uses a Certain name.
Try searching this
U'll find the code right under it..If not go search and remove the Code from it and place it Above itCode:if (playerName.equalsIgnoreCase("name of owner."))
| « PI Drop rate | WTF is these errors! [HELP] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |