Actions ignore extra command parameters, fixes #2057

This commit is contained in:
PikaMug 2022-12-28 18:06:01 -05:00
parent b32b2b6ef2
commit 328aba4bc3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}