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.teleportManager;
|
||||
import org.bukkit.World;
|
||||
@@ -15,7 +15,7 @@ public class rtpCommand implements CommandExecutor {
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if (sender instanceof Player) {
|
||||
Player p = (Player) sender;
|
||||
if (Main.settings.doRtpCommand()) {
|
||||
if (HuskHomes.settings.doRtpCommand()) {
|
||||
if (p.getWorld().getEnvironment() == World.Environment.NORMAL) {
|
||||
teleportManager.queueRandomTeleport(p);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user