Registered commands

This commit is contained in:
William278 committed 2020-12-13 02:22:29 +00:00
1 parent 1b8254d46a
commit c39f6c9f6a
2 files changed
+19 -7

No files matched your search

@@ -1,7 +1,6 @@
package me.william278.huskhomes2.Commands;
import me.william278.huskhomes2.messageManager;
import me.william278.huskhomes2.teleportManager;
import me.william278.huskhomes2.teleportRequestHandler;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
@@ -1,9 +1,6 @@
package me.william278.huskhomes2;
import me.william278.huskhomes2.Commands.delHomeCommand;
import me.william278.huskhomes2.Commands.homeCommand;
import me.william278.huskhomes2.Commands.homeListCommand;
import me.william278.huskhomes2.Commands.setHomeCommand;
import me.william278.huskhomes2.Commands.*;
import me.william278.huskhomes2.Events.onPlayerDeath;
import me.william278.huskhomes2.Events.onPlayerJoin;
import me.william278.huskhomes2.Objects.Settings;
@@ -26,10 +23,26 @@ public final class Main extends JavaPlugin {
}
private static void registerCommands(Main plugin) {
plugin.getCommand("home").setExecutor(new homeCommand());
plugin.getCommand("sethome").setExecutor(new setHomeCommand());
plugin.getCommand("back").setExecutor(new backCommand());
plugin.getCommand("delhome").setExecutor(new delHomeCommand());
plugin.getCommand("delwarp").setExecutor(new delWarpCommand());
plugin.getCommand("edithome").setExecutor(new editHomeCommand());
plugin.getCommand("editwarp").setExecutor(new editWarpCommand());
plugin.getCommand("home").setExecutor(new homeCommand());
plugin.getCommand("homelist").setExecutor(new homeListCommand());
plugin.getCommand("huskhomes").setExecutor(new huskHomesCommand());
plugin.getCommand("publichome").setExecutor(new publicHomeCommand());
plugin.getCommand("publichomelist").setExecutor(new publicHomeListCommand());
plugin.getCommand("sethome").setExecutor(new setHomeCommand());
plugin.getCommand("setwarp").setExecutor(new setWarpCommand());
plugin.getCommand("tpaccept").setExecutor(new tpAcceptCommand());
plugin.getCommand("tpdeny").setExecutor(new tpDenyCommand());
plugin.getCommand("tpa").setExecutor(new tpaCommand());
plugin.getCommand("tpahere").setExecutor(new tpaHereCommand());
plugin.getCommand("tp").setExecutor(new tpCommand());
plugin.getCommand("tphere").setExecutor(new tpHereCommand());
plugin.getCommand("warp").setExecutor(new warpCommand());
plugin.getCommand("warplist").setExecutor(new warpListCommand());
}
private static void registerEvents(Main plugin) {