Skip to content

Commit 65fb71b

Browse files
committed
Merge remote-tracking branch 'origin/3-add-togglemsg-command' into 3-add-togglemsg-command
2 parents cd7ed0b + 3342792 commit 65fb71b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/pro/cloudnode/smp/cloudnodemsg/command/ToggleMessageCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.List;
1717
import java.util.Optional;
1818

19-
public class ToggleMessageCommand extends Command {
19+
public final class ToggleMessageCommand extends Command {
2020
@Override
2121
public boolean run(@NotNull CommandSender sender, @NotNull String label, @NotNull String[] args) {
2222
if (!sender.hasPermission(Permission.TOGGLE) || (args.length == 1 && !sender.hasPermission(Permission.TOGGLE_OTHER)))

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ errors:
8787
# Target player have disabled their incoming private messages.
8888
# Placeholders:
8989
# <player> - the player's username
90-
incoming-disabled: "<red>(!) <gray><player></gray> has disabled their private messages."
90+
incoming-disabled: "<red>(!) You cannot message <gray><player></gray> because they have disabled private messages.</red>"

0 commit comments

Comments
 (0)