From 5fe8d4b8ce7d10b69e9a546252b6ae06a520bbd9 Mon Sep 17 00:00:00 2001 From: William278 Date: Mon, 1 Mar 2021 12:19:00 +0000 Subject: [PATCH] Fixed sethome / setwarp not being registered --- .../me/william278/huskhomes2/HuskHomes.java | 25 +++---------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/src/main/java/me/william278/huskhomes2/HuskHomes.java b/src/main/java/me/william278/huskhomes2/HuskHomes.java index cc1591d2..03e36568 100644 --- a/src/main/java/me/william278/huskhomes2/HuskHomes.java +++ b/src/main/java/me/william278/huskhomes2/HuskHomes.java @@ -1,28 +1,7 @@ package me.william278.huskhomes2; import me.william278.huskhomes2.api.HuskHomesAPI; -import me.william278.huskhomes2.commands.BackCommand; -import me.william278.huskhomes2.commands.CommandBase; -import me.william278.huskhomes2.commands.DelhomeCommand; -import me.william278.huskhomes2.commands.DelwarpCommand; -import me.william278.huskhomes2.commands.EdithomeCommand; -import me.william278.huskhomes2.commands.EditwarpCommand; -import me.william278.huskhomes2.commands.HomeCommand; -import me.william278.huskhomes2.commands.HomelistCommand; -import me.william278.huskhomes2.commands.HuskhomesCommand; -import me.william278.huskhomes2.commands.PublichomeCommand; -import me.william278.huskhomes2.commands.PublichomelistCommand; -import me.william278.huskhomes2.commands.RtpCommand; -import me.william278.huskhomes2.commands.SetspawnCommand; -import me.william278.huskhomes2.commands.SpawnCommand; -import me.william278.huskhomes2.commands.TpCommand; -import me.william278.huskhomes2.commands.TpaCommand; -import me.william278.huskhomes2.commands.TpacceptCommand; -import me.william278.huskhomes2.commands.TpahereCommand; -import me.william278.huskhomes2.commands.TpdenyCommand; -import me.william278.huskhomes2.commands.TphereCommand; -import me.william278.huskhomes2.commands.WarpCommand; -import me.william278.huskhomes2.commands.WarplistCommand; +import me.william278.huskhomes2.commands.*; import me.william278.huskhomes2.config.ConfigManager; import me.william278.huskhomes2.config.Settings; import me.william278.huskhomes2.data.DataManager; @@ -101,6 +80,8 @@ public final class HuskHomes extends JavaPlugin { new RtpCommand().register(getCommand("rtp")).setTabCompleter(emptyTab); new SpawnCommand().register(getCommand("spawn")).setTabCompleter(emptyTab); new SetspawnCommand().register(getCommand("setspawn")).setTabCompleter(emptyTab); + new SethomeCommand().register(getCommand("sethome")).setTabCompleter(emptyTab); + new SetwarpCommand().register(getCommand("setwarp")).setTabCompleter(emptyTab); new BackCommand().register(getCommand("back")).setTabCompleter(emptyTab); // Update caches