Skip to content

Commit

Permalink
alias-friend ex command check
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 27, 2021
1 parent b01346e commit 380c3ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void enableFor(PluginCommand command) {
}

@Override
public boolean onCommand(CommandSender sender, Command cmd, String cmdName, String[] args) {
public boolean onCommand(CommandSender sender, Command cmd, String alias, String[] args) {

// <--[language]
// @name /ex command
Expand Down Expand Up @@ -69,7 +69,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String cmdName, Stri
//
// -->

if (cmdName.equalsIgnoreCase("ex")) {
if (cmd.getName().equalsIgnoreCase("ex")) {
List<Object> entries = new ArrayList<>();
String entry = String.join(" ", args);
boolean quiet = !Settings.showExDebug();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public TimedQueue getOrMakeQueue(final Player player, boolean quiet) {
}

@Override
public boolean onCommand(CommandSender sender, Command cmd, String cmdName, String[] args) {
if (cmdName.equalsIgnoreCase("exs")) {
public boolean onCommand(CommandSender sender, Command cmd, String alias, String[] args) {
if (cmd.getName().equalsIgnoreCase("exs")) {
List<Object> entries = new ArrayList<>();
String entry = String.join(" ", args);
boolean quiet = !Settings.showExDebug();
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ commands:
permission: denizen.clickable
ex:
description: Executes a Denizen script command.
usage: /ex <Denizen script command> (arguments)
usage: /ex (-q) <Denizen script command> (arguments)
permission: denizen.ex
exs:
description: Executes a Denizen script command in a sustained queue.
usage: /exs <Denizen script command> (arguments)
usage: /exs (-q) <Denizen script command> (arguments)
permission: denizen.ex

permissions:
Expand Down

0 comments on commit 380c3ff

Please sign in to comment.