File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/pro/cloudnode/smp/cloudnodemsg/command Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,13 @@ public class ToggleMessageCommand extends Command {
2020
2121 @ Override
2222 public boolean run (@ NotNull CommandSender sender , @ NotNull String label , @ NotNull String [] args ) {
23- if (!sender .hasPermission (Permission .TOGGLE ) || (args .length == 1 && !sender .hasPermission (Permission .TOGGLE_OTHER ))) return new NoPermissionError ().send (sender );
23+ if (!sender .hasPermission (Permission .TOGGLE ) || (args .length == 1 && !sender .hasPermission (Permission .TOGGLE_OTHER )))
24+ return new NoPermissionError ().send (sender );
2425 if (args .length == 1 ) {
2526 final @ NotNull OfflinePlayer recipient = CloudnodeMSG .getInstance ().getServer ().getOfflinePlayer (args [0 ]);
2627
27- if (recipient .getPlayer () == null ) return new NeverJoinedError (Optional .ofNullable (recipient .getName ()).orElse ("Unknown Player" )).send (sender );
28+ if (recipient .getPlayer () == null )
29+ return new NeverJoinedError (Optional .ofNullable (recipient .getName ()).orElse ("Unknown Player" )).send (sender );
2830
2931 if (Message .isIncomeEnabled (recipient .getPlayer ())) {
3032 Message .incomeDisable (recipient .getPlayer ());
You can’t perform that action at this time.
0 commit comments