From f1945399d9e689671690f8fdadc28932dfcd7b31 Mon Sep 17 00:00:00 2001 From: ZabriCraft <30439790+ZabriCraft@users.noreply.github.com> Date: Sun, 10 Sep 2017 11:19:26 +0200 Subject: [PATCH] Update to 4.4.1 --- src/fr/zabricraft/craftsearch/CraftSearch.java | 1 - src/fr/zabricraft/craftsearch/events/PlayerJoin.java | 1 - src/fr/zabricraft/craftsearch/events/PlayerQuit.java | 7 ------- src/fr/zabricraft/craftsearch/utils/Updater.java | 2 +- src/plugin.yml | 2 +- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/fr/zabricraft/craftsearch/CraftSearch.java b/src/fr/zabricraft/craftsearch/CraftSearch.java index 9699d9d..63a5598 100644 --- a/src/fr/zabricraft/craftsearch/CraftSearch.java +++ b/src/fr/zabricraft/craftsearch/CraftSearch.java @@ -74,7 +74,6 @@ public void setData(String name, String description) { if (description != null) { this.description = description; } - update(); } public boolean isPremiumGuard() { diff --git a/src/fr/zabricraft/craftsearch/events/PlayerJoin.java b/src/fr/zabricraft/craftsearch/events/PlayerJoin.java index 742f94e..7f6803e 100644 --- a/src/fr/zabricraft/craftsearch/events/PlayerJoin.java +++ b/src/fr/zabricraft/craftsearch/events/PlayerJoin.java @@ -31,7 +31,6 @@ public class PlayerJoin implements Listener { @EventHandler public void onPlayerJoin(PlayerJoinEvent e) { CraftSearch.getInstance().initPlayer(e.getPlayer()); - CraftSearch.getInstance().update(); if (e.getPlayer().hasPermission("craftsearch.update")) { Updater.checkForUpdate(e.getPlayer()); } diff --git a/src/fr/zabricraft/craftsearch/events/PlayerQuit.java b/src/fr/zabricraft/craftsearch/events/PlayerQuit.java index 22f05b0..137020d 100644 --- a/src/fr/zabricraft/craftsearch/events/PlayerQuit.java +++ b/src/fr/zabricraft/craftsearch/events/PlayerQuit.java @@ -19,7 +19,6 @@ package fr.zabricraft.craftsearch.events; -import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; @@ -31,12 +30,6 @@ public class PlayerQuit implements Listener { @EventHandler public void onPlayerQuit(PlayerQuitEvent e) { CraftSearch.getInstance().uninitPlayer(CraftSearch.getInstance().getPlayer(e.getPlayer().getUniqueId())); - Bukkit.getScheduler().scheduleSyncDelayedTask(CraftSearch.getInstance(), new Runnable() { - @Override - public void run() { - CraftSearch.getInstance().update(); - } - }, 20); } } diff --git a/src/fr/zabricraft/craftsearch/utils/Updater.java b/src/fr/zabricraft/craftsearch/utils/Updater.java index 333b1fe..d79d091 100644 --- a/src/fr/zabricraft/craftsearch/utils/Updater.java +++ b/src/fr/zabricraft/craftsearch/utils/Updater.java @@ -33,7 +33,7 @@ public class Updater { public static void checkForUpdate(Player... receive) { try { - String url = "https://www.craftsearch.eu/plugin/checkforupdate.php?version=" + String url = "https://www.craftsearch.net/plugin/checkforupdate.php?version=" + CraftSearch.getInstance().getDescription().getVersion(); URL obj = new URL(url); diff --git a/src/plugin.yml b/src/plugin.yml index a3ba464..ef054bc 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -15,7 +15,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. name: CraftSearch -version: 4.4 +version: 4.4.1 author: ZabriCraft website: https://www.craftsearch.net/ main: fr.zabricraft.craftsearch.CraftSearch