From c39f6c9f6af6bb77b3fcd615aeecdb66b485ff40 Mon Sep 17 00:00:00 2001 From: William278 Date: Sun, 13 Dec 2020 02:22:29 +0000 Subject: [PATCH] Registered commands --- .../huskhomes2/Commands/tpaHereCommand.java | 1 - .../java/me/william278/huskhomes2/Main.java | 25 ++++++++++++++----- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/william278/huskhomes2/Commands/tpaHereCommand.java b/src/main/java/me/william278/huskhomes2/Commands/tpaHereCommand.java index 03bf2bdc..d4b6d8e6 100644 --- a/src/main/java/me/william278/huskhomes2/Commands/tpaHereCommand.java +++ b/src/main/java/me/william278/huskhomes2/Commands/tpaHereCommand.java @@ -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; diff --git a/src/main/java/me/william278/huskhomes2/Main.java b/src/main/java/me/william278/huskhomes2/Main.java index 8aea78fc..5cd60897 100644 --- a/src/main/java/me/william278/huskhomes2/Main.java +++ b/src/main/java/me/william278/huskhomes2/Main.java @@ -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) {