Solved Groupmanager Implementation

Discussion in 'Plugin Development' started by DarkRangerMC, Aug 17, 2015.

Thread Status:
Not open for further replies.
  1. Hey,
    I know it's possible to implement GroupManager in your plugin, and I think I did that.
    But is it possible to set someone's group on a command?
    I see public voids and GMUserEvents, but I don't see a way to set someone's group on the command.
    I hope someone can help me (please don't send me the link to the groupmanager website).
     
  2. Offline

    Hawktasard

  3. Offline

    caderape

    @DarkRangerMC
    public static Permission permission = null;
    Vault can handle groupmanager. Import vault in your plugin, and play with the permission.
     
  4. I want to use the "setGroup" option from GroupManager.
     
  5. Offline

    caderape

  6. Code:
            else if(commandLabel.equalsIgnoreCase("character")){
                player.getInventory().addItem(PlayerJoin.character);
                playeraddGroup(player, "Owner");
            }
    
    doesn't seem to work.
     
  7. Offline

    SuperSniper

    playerAddGroup(org.bukkit.OfflinePlayer player, String group)
    Add player to a group.
     
  8. Offline

    Hawktasard

    @DarkRangerMC
    Vault supports most of the big permission and economy plugins - your plugin could for example still work if you decided to switch to another permission plugin that has Vault support (PEX, etc). If you really want to use GroupManager you can check this out http://wiki.ess3.net/wiki/Group_Manager/Developers
     
  9. Offline

    SuperSniper

    I fixed it, it works with the world too, since GroupManager has multi-world permission support
     
  10. So what exactly do I need to use?
    Code:
    playeraddGroup(world, player, "Owner");
     
  11. Offline

    SuperSniper

Thread Status:
Not open for further replies.

Share This Page