Make the bukkit command manager more accessible
This commit is contained in:
parent
3f17e8c3c8
commit
989a2cc89c
@ -37,7 +37,7 @@ import org.bukkit.command.TabExecutor;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
class BukkitCommand extends CommandManager implements CommandExecutor, TabExecutor {
|
public class BukkitCommand extends CommandManager implements CommandExecutor, TabExecutor {
|
||||||
private final LPBukkitPlugin plugin;
|
private final LPBukkitPlugin plugin;
|
||||||
|
|
||||||
BukkitCommand(LPBukkitPlugin plugin) {
|
BukkitCommand(LPBukkitPlugin plugin) {
|
||||||
|
@ -102,6 +102,7 @@ import java.util.stream.Collectors;
|
|||||||
public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
|
public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
|
||||||
private Set<UUID> ignoringLogs;
|
private Set<UUID> ignoringLogs;
|
||||||
private LPBukkitScheduler scheduler;
|
private LPBukkitScheduler scheduler;
|
||||||
|
private BukkitCommand commandManager;
|
||||||
private VaultHook vaultHook = null;
|
private VaultHook vaultHook = null;
|
||||||
private LuckPermsConfiguration configuration;
|
private LuckPermsConfiguration configuration;
|
||||||
private UserManager userManager;
|
private UserManager userManager;
|
||||||
@ -247,7 +248,7 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
|
|||||||
|
|
||||||
// register commands
|
// register commands
|
||||||
getLog().info("Registering commands...");
|
getLog().info("Registering commands...");
|
||||||
BukkitCommand commandManager = new BukkitCommand(this);
|
commandManager = new BukkitCommand(this);
|
||||||
PluginCommand main = getServer().getPluginCommand("luckperms");
|
PluginCommand main = getServer().getPluginCommand("luckperms");
|
||||||
main.setExecutor(commandManager);
|
main.setExecutor(commandManager);
|
||||||
main.setTabCompleter(commandManager);
|
main.setTabCompleter(commandManager);
|
||||||
|
Loading…
Reference in New Issue
Block a user