Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aura Development Team
AuraSudo
Commits
ed434384
Verified
Commit
ed434384
authored
Jan 22, 2021
by
Yannick Schinko
Browse files
Handle console players
parent
dfab076d
Pipeline
#392
passed with stages
in 4 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
platform/common/src/main/java/team/aura_dev/aurasudo/platform/common/command/SudoCommand.java
View file @
ed434384
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment