mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
@@ -95,7 +95,7 @@ public class SimpleCommandMap implements CommandMap {
|
|||||||
*/
|
*/
|
||||||
private synchronized boolean register(String label, Command command, boolean isAlias, String fallbackPrefix) {
|
private synchronized boolean register(String label, Command command, boolean isAlias, String fallbackPrefix) {
|
||||||
knownCommands.put(fallbackPrefix + ":" + label, command);
|
knownCommands.put(fallbackPrefix + ":" + label, command);
|
||||||
if (isAlias && knownCommands.containsKey(label)) {
|
if ((command instanceof BukkitCommand || isAlias) && knownCommands.containsKey(label)) {
|
||||||
// Request is for an alias/fallback command and it conflicts with
|
// Request is for an alias/fallback command and it conflicts with
|
||||||
// a existing command or previous alias ignore it
|
// a existing command or previous alias ignore it
|
||||||
// Note: This will mean it gets removed from the commands list of active aliases
|
// Note: This will mean it gets removed from the commands list of active aliases
|
||||||
|
Reference in New Issue
Block a user