mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
More classes moving
This commit is contained in:
47 files changed
+230
-234
No files matched your search
@@ -62,19 +62,16 @@ public final class HuskHomes extends JavaPlugin {
|
||||
return new HuskHomesAPI();
|
||||
}
|
||||
|
||||
// Disable the plugin for the given reason
|
||||
public static void disablePlugin(String reason) {
|
||||
instance.getLogger().severe("Disabling HuskHomes plugin because:\n" + reason);
|
||||
Bukkit.getPluginManager().disablePlugin(instance);
|
||||
}
|
||||
|
||||
// Initialise bungee plugin channels
|
||||
private void setupBungeeChannels() {
|
||||
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
|
||||
Bukkit.getMessenger().registerIncomingPluginChannel(this, "BungeeCord", new PluginMessageHandler());
|
||||
}
|
||||
|
||||
// Register tab completers
|
||||
private void registerCommands() {
|
||||
HomeCommand.Tab homeTab = new HomeCommand.Tab();
|
||||
new HomeCommand().register(getCommand("home")).setTabCompleter(homeTab);
|
||||
|
||||
Reference in new issue
Block a user