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
@@ -14,7 +14,7 @@ import static org.bukkit.Bukkit.getServer;
|
||||
|
||||
public class runEverySecond {
|
||||
|
||||
private static final Main plugin = Main.getInstance();
|
||||
private static final HuskHomes plugin = HuskHomes.getInstance();
|
||||
|
||||
// Cancel expired teleport requests
|
||||
private static void clearExpiredRequests(HashSet<Player> expiredTeleportRequests) {
|
||||
@@ -78,8 +78,8 @@ public class runEverySecond {
|
||||
teleportManager.teleportPlayer(teleporter, timedTeleport.getTargetPlayerName());
|
||||
break;
|
||||
case "random":
|
||||
if (Main.settings.doEconomy()) {
|
||||
double rtpCost = Main.settings.getRtpCost();
|
||||
if (HuskHomes.settings.doEconomy()) {
|
||||
double rtpCost = HuskHomes.settings.getRtpCost();
|
||||
if (rtpCost > 0) {
|
||||
if (!economy.takeMoney(teleporter, rtpCost)) {
|
||||
messageManager.sendMessage(teleporter, "error_insufficient_funds", economy.format(rtpCost));
|
||||
|
||||
Reference in new issue
Block a user