From e4585a95d18f7d54f05ae63cbd38a51f156a3a35 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Sun, 2 Dec 2018 13:43:07 -0500 Subject: [PATCH] typo --- .gitlab-ci.yml | 2 +- .../java/com/songoda/epichoppers/EpicHoppersPlugin.java | 6 +++--- .../java/com/songoda/epichoppers/handlers/HopHandler.java | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d22d80c..03673e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicHoppers" path: "/builds/Songoda/$name" - version: "3.2.1" + version: "3.2.2 build: stage: build diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java index c7413f7..5817698 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/EpicHoppersPlugin.java @@ -147,8 +147,8 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers { * Register hoppers into HopperManger from configuration */ Bukkit.getScheduler().runTaskLater(this, () -> { - if (storage.containsGroup("link")) { - for (StorageRow row : storage.getRowsByGroup("link")) { + if (storage.containsGroup("sync")) { + for (StorageRow row : storage.getRowsByGroup("sync")) { Location location = Serialize.getInstance().unserializeLocation(row.getKey()); if (location == null || location.getBlock() == null) return; @@ -307,7 +307,7 @@ public class EpicHoppersPlugin extends JavaPlugin implements EpicHoppers { continue; String locationStr = Arconix.pl().getApi().serialize().serializeLocation(hopper.getLocation()); - storage.prepareSaveItem("link", new StorageItem("location", locationStr), + storage.prepareSaveItem("sync", new StorageItem("location", locationStr), new StorageItem("level", hopper.getLevel().getLevel()), new StorageItem("block", true, hopper.getLinkedBlocks() == null || hopper.getLinkedBlocks().isEmpty() ? new ArrayList<>() : hopper.getLinkedBlocks()), new StorageItem("placedby", hopper.getPlacedBy() == null ? null : hopper.getPlacedBy().toString()), diff --git a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java index 97d04b9..331b3e6 100644 --- a/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java +++ b/EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/handlers/HopHandler.java @@ -41,12 +41,12 @@ public class HopHandler { private void hopperCleaner() { try { ConfigurationSection data = instance.getConfig().createSection("data"); - if (!data.contains("link")) return; - for (String key : data.getConfigurationSection("link").getKeys(false)) { + if (!data.contains("sync")) return; + for (String key : data.getConfigurationSection("sync").getKeys(false)) { if (Arconix.pl().getApi().serialize().unserializeLocation(key).getWorld() == null) continue; Block block = Arconix.pl().getApi().serialize().unserializeLocation(key).getBlock(); if (block != null && block.getState() instanceof Hopper) continue; - data.getConfigurationSection("link").set(key, null); + data.getConfigurationSection("sync").set(key, null); instance.getLogger().info("EpicHoppers Removing non-hopper entry: " + key); } } catch (Exception e) {