Permission to join Whitelist server

Discussion in 'Archived: Plugin Requests' started by MacksoMart, Jan 21, 2014.

  1. Offline

    MacksoMart

    Hey guys! I need a plugin that allows to join whitelisted server only when u have permission like whitelist.join

    Sorry for bad english, i am from Russia
     
  2. Offline

    timtower Administrator Administrator Moderator

    MacksoMart Quick thought: if you already know their names to give them permissions why not put them on the whitelist instead?
     
  3. I think I can make this, but why not use the default whitelist?
     
  4. Offline

    Konkz

    Because if the group is made if you're "Gold Donator" then you're automatically whitelsited to a premium server maybe? I think this is so he will link it to Buycraft and let people instantly join another server.

    None of this is confirmed, those are just my thoughts.
     
  5. For someone who wants to make this plugin, the coding should be something like:
    Show Spoiler

    Code:java
    1. @EventHandler
    2. public void onJoin(PlayerJoinEvent event){
    3. Player p = event.getPlayer();
    4. if(!p.hasPermission("whitelist.join")){
    5. p.kickPlayer("You are not whitelisted!");
    6. }
    7. else{
    8. //do nothing, player has permission
    9. }
    10. }

     
  6. Offline

    timtower Administrator Administrator Moderator

    rob1998@ Suggest to use the PlayerLoginEvent to actually bypass the whitelist
     
  7. Offline

    bbswitzer

    Hello! I think I have a solution for you without somebody creating a plugin. What you could always do is set the max players to zero and then giving certain players the essentials permission essentials.joinfullserver . This permission always players to join a full server without kicking another player.

    P.S. You need essentials for this to work
     
  8. Offline

    MacksoMart

    I need the permission for GROUP, using PermissionEx
     
  9. You could give the permission to the GROUP.
     

Share This Page