Make the bukkit command manager more accessible

This commit is contained in:
Luck 2017-02-13 12:53:22 +00:00
parent 3f17e8c3c8
commit 989a2cc89c
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ import org.bukkit.command.TabExecutor;
import java.util.Arrays;
import java.util.List;
class BukkitCommand extends CommandManager implements CommandExecutor, TabExecutor {
public class BukkitCommand extends CommandManager implements CommandExecutor, TabExecutor {
private final LPBukkitPlugin plugin;
BukkitCommand(LPBukkitPlugin plugin) {

View File

@ -102,6 +102,7 @@ import java.util.stream.Collectors;
public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
private Set<UUID> ignoringLogs;
private LPBukkitScheduler scheduler;
private BukkitCommand commandManager;
private VaultHook vaultHook = null;
private LuckPermsConfiguration configuration;
private UserManager userManager;
@ -247,7 +248,7 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
// register commands
getLog().info("Registering commands...");
BukkitCommand commandManager = new BukkitCommand(this);
commandManager = new BukkitCommand(this);
PluginCommand main = getServer().getPluginCommand("luckperms");
main.setExecutor(commandManager);
main.setTabCompleter(commandManager);