From 7a08152c1479157142437fde94f80e7d6bd27f7d Mon Sep 17 00:00:00 2001 From: Seth <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Wed, 15 Jul 2020 01:22:32 -0700 Subject: [PATCH] Some adjustments --- pom.xml | 2 +- .../java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java | 2 ++ .../totalfreedom/totalfreedommod/blocking/InteractBlocker.java | 2 +- src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c54abf06..a4fdeb3a 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ TotalFreedomMod Server modification for the TotalFreedom server - https://github.com/TotalFreedom/TotalFreedomMod + https://github.com/TFPatches/TotalFreedomMod diff --git a/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java b/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java index 1b3c5924..ef126ca0 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java @@ -275,7 +275,9 @@ public class TotalFreedomMod extends JavaPlugin wgb = new WorldGuardBridge(); for (FreedomService service : fsh.getServices()) + { service.onStart(); + } FLog.info("Started " + fsh.getServiceAmount() + "services."); diff --git a/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java b/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java index f227f290..2d3c6685 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java @@ -59,7 +59,7 @@ public class InteractBlocker extends FreedomService if (event.getClickedBlock() != null) { - if (event.getClickedBlock().getType().equals(Material.STRUCTURE_BLOCK) || event.getClickedBlock().getType().equals(Material.JIGSAW)) + if (event.getClickedBlock().getType().equals(Material.STRUCTURE_BLOCK) || event.getClickedBlock().getType().equals(Material.JIGSAW) || event.getClickedBlock().getType().equals(Material.RESPAWN_ANCHOR)) { event.setCancelled(true); event.getPlayer().closeInventory(); diff --git a/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java b/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java index 6493a60c..ae63293e 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java @@ -55,7 +55,7 @@ public class FUtil // public static final String SAVED_FLAGS_FILENAME = "savedflags.dat"; // See https://github.com/TotalFreedom/License - None of the listed names may be removed. - public static final List DEVELOPERS = Arrays.asList("Madgeek1450", "Prozza", "WickedGamingUK", "Wild1145", "aggelosQQ", "supernt"); + public static final List DEVELOPERS = Arrays.asList("Madgeek1450", "Prozza", "WickedGamingUK", "Wild1145", "aggelosQQ", "scripthead", "supernt"); public static String DATE_STORAGE_FORMAT = "EEE, d MMM yyyy HH:mm:ss Z"; public static final Map CHAT_COLOR_NAMES = new HashMap<>(); public static final List CHAT_COLOR_POOL = Arrays.asList(