diff options
author | md_5 <git@md-5.net> | 2017-11-10 10:48:31 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-11-10 10:48:31 +1100 |
commit | ec4d4ef1e8934127a14f521e3633d254a9135009 (patch) | |
tree | 051dd8f45acdf46a114a168fb797cfc6f674f9f7 /src/main | |
parent | adb9f8b5c2519f1d1b1c1c2564ee4573edad5534 (diff) | |
download | bukkit-ec4d4ef1e8934127a14f521e3633d254a9135009.tar bukkit-ec4d4ef1e8934127a14f521e3633d254a9135009.tar.gz bukkit-ec4d4ef1e8934127a14f521e3633d254a9135009.tar.lz bukkit-ec4d4ef1e8934127a14f521e3633d254a9135009.tar.xz bukkit-ec4d4ef1e8934127a14f521e3633d254a9135009.zip |
Fix tab completion for plugins / reload command
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/PluginsCommand.java | 7 | ||||
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/ReloadCommand.java | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/PluginsCommand.java b/src/main/java/org/bukkit/command/defaults/PluginsCommand.java index b888da13..e40b03a7 100644 --- a/src/main/java/org/bukkit/command/defaults/PluginsCommand.java +++ b/src/main/java/org/bukkit/command/defaults/PluginsCommand.java @@ -1,6 +1,8 @@ package org.bukkit.command.defaults; import java.util.Arrays; +import java.util.Collections; +import java.util.List; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -24,6 +26,11 @@ public class PluginsCommand extends BukkitCommand { return true; } + @Override + public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException { + return Collections.emptyList(); + } + private String getPluginList() { StringBuilder pluginList = new StringBuilder(); Plugin[] plugins = Bukkit.getPluginManager().getPlugins(); diff --git a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java index eb018f16..0ab7e295 100644 --- a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java +++ b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java @@ -1,6 +1,8 @@ package org.bukkit.command.defaults; import java.util.Arrays; +import java.util.Collections; +import java.util.List; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -27,4 +29,9 @@ public class ReloadCommand extends BukkitCommand { return true; } + + @Override + public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException { + return Collections.emptyList(); + } } |