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!
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]
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 {name} essentials.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 {name} essentials.warps.mineB - warp mineB {name} exit: [] perms: [] members: []
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