Thread: 718 rune-evo source/base adding admin right

Results 1 to 7 of 7
  1. #1 718 rune-evo source/base adding admin right 
    Registered Member
    Join Date
    May 2013
    Posts
    69
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    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
    Reply With Quote  
     

  2. #2  
    Donator
    The Stoned's Avatar
    Join Date
    Jan 2013
    Posts
    647
    Thanks given
    62
    Thanks received
    82
    Rep Power
    62
    if you are owner do the command ";;giveadmin Your Name Here"
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2013
    Posts
    69
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by focus clutch View Post
    if you are owner do the command ";;giveadmin Your Name Here"
    theres no command for that..
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by VoiceLTD View Post
    theres no command for that..
    then add it./
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2013
    Posts
    69
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Datbeastmayne View Post
    then add it./
    how do i add?
    Reply With Quote  
     

  6. #6  
    Owner of Virtus
    k0ed ur mom's Avatar
    Join Date
    Jun 2012
    Age
    34
    Posts
    540
    Thanks given
    20
    Thanks received
    46
    Rep Power
    11
    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;
    		}
    Reply With Quote  
     

  7. #7  
    Myre


    Join Date
    Apr 2012
    Age
    26
    Posts
    1,519
    Thanks given
    407
    Thanks received
    367
    Rep Power
    475
    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
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 02-24-2014, 02:56 PM
  2. Replies: 12
    Last Post: 07-20-2013, 01:01 PM
  3. Replies: 9
    Last Post: 07-17-2013, 04:12 PM
  4. Looking for 718+ CLIENT for Rune-Evo Source
    By pavan_ in forum Requests
    Replies: 1
    Last Post: 07-12-2013, 11:46 PM
  5. 718 rune evo error please help
    By kingmen139 in forum Help
    Replies: 2
    Last Post: 03-28-2013, 01:21 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •