Sueta

[Add Group on Achievement] Advanced Achievements <-> Luck Pe

1.1.0

A hook plugin between AdvancedAchievements and LuckPerms. Add group on achievement!

·Plugin

Advanced Achievements <-> Luck Perms Hook


This plugin is a drag-and-drop addon that enhances your experience using both Advanced Achievements and Luck Perms. Through this plugin, you can add or delete (or both!) a user from a specific LuckPerms group or permission node(s) once they have obtained one or more achievements.


Installation

  1. Firstly, just download the plugin.
  2. Once you've downloaded the plugin, drop it into your plugins folder.
  3. Then, start the server.
  4. Navigate to plugins/AdvancedAchievements-LuckPerms-Hook and edit the file named config.yml.
  5. Finally, run /aalp reload.

Configuration
Here's the default configuration:

apprentice-to-master-hook:
  if-already-in-luckperms-group: "apprentice_of_the_environment"

  if-achievements:
    - "kill_10_sheep"
    - "kill_15_zombies"
    - "obtain_32_stone"
    - "mine_16_obsidian"
    - "tame_5_horses"

  then-luckperms-actions:
    - "delgroup:apprentice_of_the_environment"
    - "addgroup:master_of_the_environment"


You can see the idea here. Let's walk through what this means:

  1. Firstly, it's going to ensure the user has the group called out by if-already-in-luckperms-group.
  2. Then, it's going to check whether or not each achievement has been fulfilled.
  3. Finally, if both steps 1 and 2 were successful, it's going to apply each action from top to bottom.

That's it. Have fun!

Other Actions
You can also use the following actions beyond "delgroup" and "addgroup":
addperm: This adds a permission node.

Usage: addperm:i.am.a.permission.node

delperm: This removes a permission node.

Usage: delperm:i.am.another.permission.node

Support
You may receive support for this resource by replying to this thread or private messaging me. Please do not leave a bad review on this resource before attempting to contact me for assistance. If you do, your review will be rebutted and I will deny support to you.

Similar projects

Plugin →