Skip to content

Commit

Permalink
Update to 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet authored Sep 10, 2017
1 parent d63d4f2 commit f194539
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/fr/zabricraft/craftsearch/CraftSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public void setData(String name, String description) {
if (description != null) {
this.description = description;
}
update();
}

public boolean isPremiumGuard() {
Expand Down
1 change: 0 additions & 1 deletion src/fr/zabricraft/craftsearch/events/PlayerJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
7 changes: 0 additions & 7 deletions src/fr/zabricraft/craftsearch/events/PlayerQuit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

}
2 changes: 1 addition & 1 deletion src/fr/zabricraft/craftsearch/utils/Updater.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f194539

Please sign in to comment.