Skip to content

Commit

Permalink
feat: add option to disable chat groups completely
Browse files Browse the repository at this point in the history
Fixes #19

Signed-off-by: Cristóbal Veas <[email protected]>
  • Loading branch information
zetastormy committed Aug 5, 2024
1 parent 933c9fb commit 35bfb3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void loadModules(AkropolisPlugin plugin) {
registerModule(new AutoBroadcast(plugin), "announcements.enabled");
registerModule(new AntiSwear(plugin), "anti_swear.enabled");
registerModule(new ChatCommandBlock(plugin), "command_block.enabled");
registerModule(new ChatGroups(plugin));
registerModule(new ChatGroups(plugin), "groups.enabled");
registerModule(new ChatLock(plugin));
registerModule(new PlayerListener(plugin));
registerModule(new HotbarManager(plugin));
Expand Down
7 changes: 5 additions & 2 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,11 @@ groups:
# Create all the group formats you want following the same template.
# To use any of these formats, the player must have the permission
# akropolis.chat.group.<group name>
# If you want to disable this feature, just deny the akropolis.chat.group.default
# permission in LuckPerms or whichever permission management plugin you use.

# If you want to disable this feature temporally, just deny the akropolis.chat.group.default
# permission in LuckPerms or whichever permission management plugin you use. Otherwise, use the option below.
enabled: false

default:
format: "<hover:show_text:'<rainbow>You can also use hover here!'><papi:luckperms_prefix></hover> <gray><player> <dark_gray>» <gray><message>"
# Just in case you want to slow down your players a little.
Expand Down

0 comments on commit 35bfb3b

Please sign in to comment.