diff --git a/build.gradle b/build.gradle index 6bce020..a7c6fb0 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ java { PluginManifest pluginManifest = [ name : 'CommandPrompter', - version : new Version(major: 2, minor: 8, patch: 1, fix: 0, classifier: 'SNAPSHOT'), + version : new Version(major: 2, minor: 8, patch: 2, fix: 0, classifier: 'SNAPSHOT'), author : 'CyR1en', description: 'Perfect companion plugin for inventory UI menu.', entry : 'com.cyr1en.commandprompter.CommandPrompter' diff --git a/src/main/java/com/cyr1en/commandprompter/prompt/PromptQueue.java b/src/main/java/com/cyr1en/commandprompter/prompt/PromptQueue.java index e889aee..03f26d0 100644 --- a/src/main/java/com/cyr1en/commandprompter/prompt/PromptQueue.java +++ b/src/main/java/com/cyr1en/commandprompter/prompt/PromptQueue.java @@ -73,7 +73,7 @@ public String getCompleteCommand() { for (String prompt : prompts) { if (completedClone.isEmpty()) break; - command = command.replaceFirst(prompt, completedClone.pollFirst()); + command = command.replace(prompt, completedClone.pollFirst()); } return "/" + command; }