1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Any way I can make a prison server?

Discussion in 'Off-Topic' started by Dogeee, Feb 25, 2018.

  1. Dogeee

    Dogeee Silverfish

    Messages:
    16
    GitHub:
    dogeee
    Hi, I’ve been recently trying to make a prison server, but I haven’t had any success. I wanted to find a rank up system, which I have done but I want to make certain players allowed in an individual world.

    Like 1 player in Mine A but not allowed in Mine B.

    Mine B will be in a different world than Mine A and so on...

    Any ways I can do this?


    Thanks!
     
  2. HyGlobalHD

    HyGlobalHD Spider Jockey

    Messages:
    25
    GitHub:
    HyGlobalHD
    if you want, i got a pseudo code :)
    PHP:
    // a pseudo code
    $player $this->getPlayer(); // change this to $event->getPlayer() if you are using event
    $getRank $this->rank->getPlayerRank($player->getName());
    // make sure u set the rank properly like ex. player A got rank A,B,C and player B got only Rank A
    // the rank got to be an array?
    if($getRank == RANK::RANK_A){
     
    $this->teleport();
     
    //code
    }
    p.s: i want to write more but gtg [urgent]
     
  3. JackMD

    JackMD Silverfish

    Messages:
    22
    GitHub:
    jackmd
    For RankUp system you can use RankUp by @Falkirks. Next use EssentialsPE for setting warps and etc. And using PurePerms as a permission manager plugin you could easily set permissions for players for specific warps. For eg. If mine A is /warp mineA then it's permission would be essentials.warps.mineA
    You can achieve your desired outcome by using RankUp and setting the groups.yml as following for group A
    PHP:
    ---
    groups:
      
    A:
        
    entrance:
        - 
    say •§a{name§bRanked Up To §eA
        
    setuperm {nameessentials.warps.mineA
        
    warp mineA {name}
        exit: []
        
    perms: []
        
    members: []
    And then when a player rankups to B set groups.yml as for group B as
    PHP:
    ---
    groups:
      
    B:
        
    entrance:
        - 
    say •§a{name§bRanked Up To §eB
        
    setuperm {nameessentials.warps.mineB
        
    warp mineB {name}
        exit: []
        
    perms: []
        
    members: []
     
  4. JackMD

    JackMD Silverfish

    Messages:
    22
    GitHub:
    jackmd
    Now when player is in Group A he can only do /warp mineA and when he rankups to Group B he only has access to /warp mineB and not mineA
     
  5. mote

    mote Spider

    Messages:
    6
    GitHub:
    mote166
    u can set the permission for group B to have both mineA and mineB access tho
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.