Thread: <718> How to maker someone admin?

Results 1 to 5 of 5
  1. #1 <718> How to maker someone admin? 
    Registered Member
    Join Date
    Oct 2014
    Posts
    80
    Thanks given
    2
    Thanks received
    11
    Rep Power
    11
    So I just downloaded the "InterventionX" server and got it up and running, my friend joined but im having trouble making him admin, I kept saying to him theres a command which i can use to make you admin but wasn't too sure.
    If anyone could tell me how to make someone else a admin that would be great!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,819
    Thanks received
    1,767
    Rep Power
    2438
    setRights(2);

    btw why are u using html tags in ur header
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Oct 2014
    Posts
    80
    Thanks given
    2
    Thanks received
    11
    Rep Power
    11
    Quote Originally Posted by Tyluur View Post
    setRights(2);

    btw why are u using html tags in ur header
    so people dont tell me how to make yourself owner on a 317 scape,
    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    search for "Welcome to" in player.java

    add this:

    if (getUsername().equalsIgnoreCase("UR USER")) {
    setrRights(2);
    }

    below or above
    Reply With Quote  
     

  6. #5  
    Registered Member Soul Hunter's Avatar
    Join Date
    May 2013
    Posts
    232
    Thanks given
    1
    Thanks received
    14
    Rep Power
    0
    in administrator.java
    or commands.java or owner.java
    make a command
    Code:
    if (cmd[0].equals("giveadmin")) {
                    name = "";
                    for (int i = 1; i < cmd.length; i++) {
                        name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
                    }
                    target = World.getPlayerByDisplayName(name);
                    if (target == null) {
                        return true;
                    }
    				target.setRights(7);// change the 7 if not admin
                    return true;
                }
    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. How to make yourself admin [718+]
    By Motherboard in forum Snippets
    Replies: 22
    Last Post: 01-26-2014, 11:24 PM
  2. 718 how to check all admin accounts
    By Nimesh89 in forum Help
    Replies: 9
    Last Post: 11-15-2013, 06:08 AM
  3. [req] how to member and admin only ancient teles
    By thexfallen in forum Tutorials
    Replies: 2
    Last Post: 07-26-2008, 08:17 PM
  4. Replies: 5
    Last Post: 07-07-2008, 08:33 AM
  5. Replies: 2
    Last Post: 02-12-2008, 02:37 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
  •