Need help by Permissions

Discussion in 'Nukkit discussions and help' started by LucGamesHD, 21/1/17.

  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
We welcome you on our site. This site is devoted to the Nukkit project and all that is connected with him. Here you can communicate, download plugins, also many other things get acquainted! Register the account right now :3
  1. LucGamesHD

    LucGamesHD Developer

    Messages:
    26
    Likes Received:
    10
    Minecraft:
    LucGamesYT
    Ich habe ein problem. The code does not want me to remove the old permission when I give the player a new one. :/


    Sry for my english ://

    Code:
     public static void initPerms(Player p, String group){
    
    [pre][code]    PlayerDatas.loadPlayerdatas();
        PermissionManager.loadPermissions();
    
        List<String> Newperms = cfg.getStringList("groups." + PlayerDatas.getGroup(p) + ".permissions");
    
        for(String permName : Newperms){
            System.out.println(permName);
            p.addAttachment(Main.getPlugin(), permName, false);
        }
    
        addPlayerToGroup(p, group);
        PermissionManager.loadPermissions();
        PlayerDatas.loadPlayerdatas();
    
        System.out.println("Gruppe: " + PlayerDatas.getGroup(p));
        List<String> Oldperms = cfg.getStringList("groups." + group + ".permissions");
    
        for(String permName : Oldperms){
            p.addAttachment(Main.getPlugin(), permName, true);
        }
    
    }
    [/code][/pre]
     
  2. LucGamesHD

    LucGamesHD Developer

    Messages:
    26
    Likes Received:
    10
    Minecraft:
    LucGamesYT
    CLOSED
     
  3. CraftingHasan

    CraftingHasan Пользователь

    Messages:
    12
    Likes Received:
    1
    Minecraft:
    CraftingHasan
  4. LucGamesHD

    LucGamesHD Developer

    Messages:
    26
    Likes Received:
    10
    Minecraft:
    LucGamesYT
    Ja bin ich :)
     
  5. CraftingHasan

    CraftingHasan Пользователь

    Messages:
    12
    Likes Received:
    1
    Minecraft:
    CraftingHasan
    Endlich mal deutsche amstart:) und ist der rank plugin fertig?^^ @LucGamesHD
     

Share This Page