mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Added developer API and events
Added essentials migrator
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user