How to create a settag plugin

Discussion in 'Plugin Development' started by ViinnyBR, May 1, 2017.

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



    I want to create a setgroup plugin, one that equals the TagAPI, however you set the permission on group without the need of PermissionsEx.


    /settag <player> <group> (set a tag (group) for Player)
    if player doesn't belong to the group "group" (example: Manager)
    player send a message "You don't permission. You need to be in the group <group>"

    I hope you have understood the message

    In order to facilitate (code doesn't exists)

        public void String getPlayerGroup(Player player, String group)
        return group;
        Player player = (Player) sender;
        String group = "Example";
        if (getPlayerGroup(p, group != "Manager")
        player.sendMessage(ChatColor.RED + "You don't belong to the group.");
        p.sendMessage(ChatColor.GREEN + "You belong to the group Manager");
    I hope you understood
  2. Offline


    What exactly do you need help with?
Thread Status:
Not open for further replies.

Share This Page