Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
[ci-skip] Fix rule commands not working agani
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Apr 3, 2023
1 parent 2f1ac64 commit 7416d86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Expand Up @@ -158,7 +158,7 @@ public void registerCommands() {

registerCommand(getCommand("Ping"), null, new CommandPing());

registerCommand(getCommand("Rules"), null, new CommandRadius());
registerCommand(getCommand("Rules"), null, new CommandRules());

registerCommand(getCommand("ToggleChat"), null, new CommandToggleChat());

Expand Down
Expand Up @@ -40,7 +40,7 @@ public void onChat(AsyncPlayerChatEvent event) {
event.setMessage(ChatColor.translateAlternateColorCodes('&', event.getMessage()));

plugin.getServer().getOnlinePlayers().forEach(target -> {
if (player.hasPermission("chatmanager.mention")) {
if (player.hasPermission("chatmanager.mention") && target.hasPermission("chatmanager.mention.receive")) {
if (event.getMessage().contains(tagSymbol + target.getName())) {
if (Methods.cm_toggleMentions.contains(target.getUniqueId())) return;

Expand Down
3 changes: 3 additions & 0 deletions paper/src/main/resources/plugin.yml
Expand Up @@ -196,6 +196,9 @@ permissions:
chatmanager.mention:
description: Permission to send mention notifications to other players.
default: op
chatmanager.mention.receive:
description: Permission to receive mention notifications
default: op
chatmanager.mention.everyone:
description: Permission to send everyone mention notifications.
default: op
Expand Down

0 comments on commit 7416d86

Please sign in to comment.