Verified Commit ed434384 authored by Yannick Schinko's avatar Yannick Schinko
Browse files

Handle console players

parent dfab076d
Pipeline #392 passed with stages
in 4 minutes and 19 seconds
......@@ -11,6 +11,7 @@ public class SudoCommand extends BaseCommand {
@Override
public void execute(PlayerDataCommon player, String alias, List<String> arguments)
throws CommandExecutionException {
if (player.isConsole()) throw new CommandExecutionException("Only players");
if (!player.hasPermission(COMMAND)) throw new PermissionException(COMMAND);
// Toggle
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment