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

Commit

Permalink
Commands: fix console check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 21, 2023
1 parent 05bb524 commit 266b10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/flectone/chat/module/FCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public CmdSettings(@NotNull CommandSender commandSender, @NotNull Command comman
this.commandSender = commandSender;
this.command = command;
this.commandName = command.getName();
this.isConsole = commandSender instanceof ConsoleCommandSender;
this.isConsole = !(commandSender instanceof Player);

if (!isConsole) {
this.sender = (Player) commandSender;
Expand Down

0 comments on commit 266b10f

Please sign in to comment.