Added developer API and events

Added essentials migrator
This commit is contained in:
William278 committed 2020-12-16 18:49:34 +00:00
1 parent f1a1df6858
commit 739359cbd6
63 files changed
+1699 -259

No files matched your search

@@ -1,6 +1,6 @@
package me.william278.huskhomes2.Commands;
import me.william278.huskhomes2.Main;
import me.william278.huskhomes2.HuskHomes;
import me.william278.huskhomes2.messageManager;
import me.william278.huskhomes2.settingHandler;
import org.bukkit.command.Command;
@@ -14,7 +14,7 @@ public class setSpawnCommand implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player p = (Player) sender;
if (Main.settings.doSpawnCommand()) {
if (HuskHomes.settings.doSpawnCommand()) {
settingHandler.setSpawnLocation(p.getLocation());
p.getLocation().getWorld().setSpawnLocation(p.getLocation());
messageManager.sendMessage(p, "set_spawn_success");