mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 20:53:54 -07:00
Delegate tab-completion. Fixes BUKKIT-2181. Adds BUKKIT-2602
CommandMap now contains the functionality for tab completion. This commit replaces the vanilla implementation and simply delegates it to the Bukkit API.
This commit is contained in:
committed by
Wesley Wolfe
parent
05e889f346
commit
3ce954bb86
@@ -834,6 +834,8 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
|
||||
}
|
||||
|
||||
public List a(ICommandListener icommandlistener, String s) {
|
||||
// CraftBukkit start - Allow tab-completion of Bukkit commands
|
||||
/*
|
||||
ArrayList arraylist = new ArrayList();
|
||||
|
||||
if (s.startsWith("/")) {
|
||||
@@ -872,6 +874,9 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
|
||||
|
||||
return arraylist;
|
||||
}
|
||||
*/
|
||||
return this.server.tabComplete(icommandlistener, s);
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
public static MinecraftServer getServer() {
|
||||
|
Reference in New Issue
Block a user