mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Fixed fallbackPrefix not being lowercased, which would break prefixes for plugins with an uppercase char in the name
By: stevenh <steven.hartland@multiplay.co.uk>
This commit is contained in:
parent
c5408f1030
commit
089c229c1d
1 changed files with 2 additions and 1 deletions
|
@ -87,11 +87,12 @@ public final class SimpleCommandMap implements CommandMap {
|
|||
return false;
|
||||
}
|
||||
|
||||
String lowerPrefix = fallbackPrefix.trim().toLowerCase();
|
||||
boolean registerdPassedLabel = true;
|
||||
|
||||
// If the command exists but is an alias we overwrite it, otherwise we rename it based on the fallbackPrefix
|
||||
while (knownCommands.containsKey(lowerLabel) && !aliases.contains(lowerLabel)) {
|
||||
lowerLabel = fallbackPrefix + ":" + lowerLabel;
|
||||
lowerLabel = lowerPrefix + ":" + lowerLabel;
|
||||
registerdPassedLabel = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue