Vanish plugin permissions.

Discussion in 'Plugin Development' started by thekillamon, Jan 22, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    thekillamon

    Hey guys I just need help with some permissions. What I need is so that players that have the permission can see other players who are vanished but regular players can't. Could you please give me an example?
     
  2. Offline

    XgXXSnipz

    @thekillamon
    Code:
    if(player.hasPermission("permission")){
    
        }
    }
    
     
  3. Offline

    Skionz

    @thekillamon Use Player#hasPermission() and Player#hidePlayer() and Player#showPlayer(). I will not be giving you an example because I am sure you can figure the rest out yourself.
     
  4. Offline

    thekillamon

    Will this work if there is already a permission on the same command? also do I need to get the online players?
     
    Last edited: Jan 22, 2015
  5. Offline

    BaconStripzMan

    Check for the Action, Then Item, Then Check For Permission. If they don't have permission do an } else { and send them a message.
     
Thread Status:
Not open for further replies.

Share This Page