Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
fix: Do not tab complete if command not owned by FAWE (#2386)
Dieser Commit ist enthalten in:
Ursprung
a6f1c6ac82
Commit
50e45f07f0
@ -672,6 +672,13 @@ public class WorldEditPlugin extends JavaPlugin {
|
||||
String label = buffer.substring(0, firstSpace);
|
||||
// Strip leading slash, if present.
|
||||
label = label.startsWith("/") ? label.substring(1) : label;
|
||||
|
||||
// If command not owned by FAWE, do not tab complete
|
||||
Plugin owner = platform.getDynamicCommands().getCommandOwner(label);
|
||||
if (owner != WorldEditPlugin.this) {
|
||||
return;
|
||||
}
|
||||
|
||||
final Optional<org.enginehub.piston.Command> command
|
||||
= WorldEdit.getInstance().getPlatformManager().getPlatformCommandManager().getCommandManager().getCommand(
|
||||
label);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren