Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
Changes to completely separate SyncTabCompleteListener from Paper
Dieser Commit ist enthalten in:
Ursprung
3add6fd32b
Commit
ea0133b740
@ -1,6 +1,8 @@
|
||||
package com.boydti.fawe.bukkit.listener;
|
||||
|
||||
import com.sk89q.worldedit.bukkit.WorldEditPlugin;
|
||||
|
||||
import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.server.TabCompleteEvent;
|
||||
|
||||
@ -13,7 +15,7 @@ public class SyncTabCompleteListener extends ATabCompleteListener {
|
||||
|
||||
@EventHandler
|
||||
public void onTabComplete(TabCompleteEvent event) {
|
||||
if (event.isCommand()) {
|
||||
if (event.getSender() instanceof ConsoleCommandSender || event.getBuffer().startsWith("/")) {
|
||||
List<String> result = this.onTab(event.getBuffer(), event.getSender());
|
||||
if (result != null) {
|
||||
event.setCompletions(result);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren