'translate' permissions

Discussion in 'Plugin Development' started by Samthelord1, Feb 24, 2015.

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

    Samthelord1

    As of now, I am getting this when printing out the permissions:
    http://prntscr.com/69gzv7
    I want it to show the permissions as they are meant to be seen, ex 'ppl.(blablabla)'

    the code I am using as of now is :
    if(cmd.getName().equalsIgnoreCase("lppermissions")) {
    if(sender.hasPermission("ppl.perms")) {
    List perms = this.getDescription().getPermissions();
    sender.sendMessage(perms.toString());
    }
     
  2. Offline

    Freelix2000

    @Samthelord1
    Use a loop.
    for(Permission p : perms){
    sender.sendMessage(p.toString());
    }
     
  3. Offline

    Samthelord1

    where do i get 'perms' from?
     
  4. @Samthelord1 Your list of permissions you have here:
     
  5. Offline

    Samthelord1

    I cant convert object to permission.
     
  6. Offline

    Samthelord1

  7. Offline

    Samthelord1

    take it as this is impossible ;l
     
Thread Status:
Not open for further replies.

Share This Page