From 2eed22ecde2d7c243f98881b5bd06abfaa69f911 Mon Sep 17 00:00:00 2001 From: PyvesB Date: Fri, 27 Jan 2017 19:03:18 +0000 Subject: [PATCH] Increased version number to 4.1.4 --- pom.xml | 4 ++-- .../com/hm/achievement/AdvancedAchievements.java | 13 +++++-------- src/main/resources/config.yml | 2 +- src/main/resources/lang.yml | 2 +- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index f2ec6432c..6054aaeb7 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.hm.achievement AdvancedAchievements - 4.1.3 + 4.1.4 https://github.com/PyvesB/AdvancedAchievements AdvancedAchievements A Minecraft plugin that brings unique and challenging achievements on your server! Books, GUI, rankings, rewards, effects and more! @@ -94,7 +94,7 @@ org.bukkit bukkit - 1.11-R0.1-SNAPSHOT + 1.11.2-R0.1-SNAPSHOT jar provided diff --git a/src/main/java/com/hm/achievement/AdvancedAchievements.java b/src/main/java/com/hm/achievement/AdvancedAchievements.java index 67c4772e0..9e1119d18 100644 --- a/src/main/java/com/hm/achievement/AdvancedAchievements.java +++ b/src/main/java/com/hm/achievement/AdvancedAchievements.java @@ -95,7 +95,7 @@ * Spigot project page: spigotmc.org/resources/advanced-achievements.6239 * * @since April 2015 - * @version 4.1.3 + * @version 4.1.4 * @author Pyves */ public class AdvancedAchievements extends JavaPlugin { @@ -435,15 +435,13 @@ public void onEnable() { pooledRequestsSender = new PooledRequestsSender(this); // Schedule a repeating task to group database queries for some frequent // events. - pooledRequestsSenderTask = Bukkit.getServer().getScheduler().runTaskTimerAsynchronously( - Bukkit.getPluginManager().getPlugin(this.getDescription().getName()), pooledRequestsSender, - pooledRequestsTaskInterval * 40L, pooledRequestsTaskInterval * 20L); + pooledRequestsSenderTask = Bukkit.getServer().getScheduler().runTaskTimerAsynchronously(this, + pooledRequestsSender, pooledRequestsTaskInterval * 40L, pooledRequestsTaskInterval * 20L); // Schedule a repeating task to monitor played time for each player (not directly related to an event). if (!disabledCategorySet.contains(NormalAchievements.PLAYEDTIME.toString())) { achievePlayTimeRunnable = new AchievePlayTimeRunnable(this); - playedTimeTask = Bukkit.getServer().getScheduler().runTaskTimer( - Bukkit.getPluginManager().getPlugin(this.getDescription().getName()), achievePlayTimeRunnable, + playedTimeTask = Bukkit.getServer().getScheduler().runTaskTimer(this, achievePlayTimeRunnable, playtimeTaskInterval * 10L, playtimeTaskInterval * 20L); } @@ -456,8 +454,7 @@ public void onEnable() { || !disabledCategorySet.contains(NormalAchievements.DISTANCEGLIDING.toString()) || !disabledCategorySet.contains(NormalAchievements.DISTANCELLAMA.toString())) { achieveDistanceRunnable = new AchieveDistanceRunnable(this); - distanceTask = Bukkit.getServer().getScheduler().runTaskTimer( - Bukkit.getPluginManager().getPlugin(this.getDescription().getName()), achieveDistanceRunnable, + distanceTask = Bukkit.getServer().getScheduler().runTaskTimer(this, achieveDistanceRunnable, distanceTaskInterval * 40L, distanceTaskInterval * 20L); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 0329d2695..4d7a1d0d2 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,6 +1,6 @@ #==============================O==============================# # I---------------------------------------------------------I # -# | Advanced Achievements 4.1.3 configuration - Readme | # +# | Advanced Achievements 4.1.4 configuration - Readme | # # 1---------------------------------------------------------1 # #==============================o==============================# diff --git a/src/main/resources/lang.yml b/src/main/resources/lang.yml index 26af18235..9c3b27bd1 100644 --- a/src/main/resources/lang.yml +++ b/src/main/resources/lang.yml @@ -1,6 +1,6 @@ #============================================================# # +--------------------------------------------------------+ # -# | Advanced Achievements 4.1.3 English language file | # +# | Advanced Achievements 4.1.4 English language file | # # | By DarkPyves | # # +--------------------------------------------------------+ # #============================================================#