mirror of https://github.com/PikaMug/Quests.git
Actions ignore extra command parameters, fixes #2057
This commit is contained in:
parent
b32b2b6ef2
commit
328aba4bc3
|
@ -567,9 +567,9 @@ public class PlayerListener implements Listener {
|
|||
continue;
|
||||
}
|
||||
if (!currentStage.getCommandActions().isEmpty()) {
|
||||
final String command = event.getMessage();
|
||||
final String command = event.getMessage().toLowerCase();
|
||||
for (final String s : currentStage.getCommandActions().keySet()) {
|
||||
if (command.equalsIgnoreCase("/" + s)) {
|
||||
if (command.startsWith("/" + s.toLowerCase())) {
|
||||
currentStage.getCommandActions().get(s).fire(quester, quest);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue