Skip to content

Commit f901aad

Browse files
committed
Console must be able to toggledms for other player.
1 parent 720f889 commit f901aad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public boolean run(@NotNull CommandSender sender, @NotNull String label, @NotNul
3434

3535
return true;
3636
}
37+
if (!(sender instanceof final @NotNull Player player)) return new NotPlayerError().send(sender);
3738

3839
if (Message.isIncomeEnabled(player)) {
3940
Message.incomeDisable(player);

0 commit comments

Comments
 (0)