if you are owner do the command ";;giveadmin Your Name Here"
|
is there away i can add a admin right? atm its just ''owner'' so when they yell it says owner and when they login it says owner, i would like it so the admins are not owners and it just says admin and maybe remove some commands for them such as pnpc and spawn.......
please help meh
using
RUNE-EVO SOURCE
if you are owner do the command ";;giveadmin Your Name Here"
Code:if (cmd[0].equalsIgnoreCase("giveadmin") && (player.getUsername().equalsIgnoreCase("")) { String username = cmd[1].substring(cmd[1].indexOf(" ") + 1); Player other = World.getPlayerByDisplayName(username); try { if (other == null) return true; for (Player players : World.getPlayers()) { if (players == null) continue; players.getPackets().sendGameMessage(other.getDisplayName() + " <col=0000FF><shad=000000>just got promoted to Admin!"); } other.setRights(Settings.IS_ADMIN); } catch (Exception e){ player.getPackets().sendGameMessage("Couldn't find player "+ username + "."); } return true; }
On Rune-Evo the Admin rights are 2, therefore anyone with ights 2 would be admin, but the Owner of the Server
Made it so it says Owner, which can be changed in the RightsManager class
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |