mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 18:39:42 -05:00
Remove Bukkit reimplimentations of Vanilla commands.
By: md_5 <git@md-5.net>
This commit is contained in:
1 parent
b2156bae0d
commit
975152bbcb
45 files changed
+4
-3961
No files matched your search
@@ -95,7 +95,7 @@ public class SimpleCommandMap implements CommandMap {
|
||||
*/
|
||||
private synchronized boolean register(String label, Command command, boolean isAlias, String fallbackPrefix) {
|
||||
knownCommands.put(fallbackPrefix + ":" + label, command);
|
||||
if ((command instanceof VanillaCommand || isAlias) && knownCommands.containsKey(label)) {
|
||||
if (isAlias && knownCommands.containsKey(label)) {
|
||||
// Request is for an alias/fallback command and it conflicts with
|
||||
// a existing command or previous alias ignore it
|
||||
// Note: This will mean it gets removed from the commands list of active aliases
|
||||
|
||||
Reference in new issue
Block a user