This commit is contained in:
BuildTools 2018-08-26 14:59:43 +02:00
parent f2db454239
commit a4f133c51b
4 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,5 @@
changes since 2.0.0:
- added re-initialization of the PerPlayerSettings object to avoid problems with /reload
- updated spigot api to version 1.13.1
- added ChestSort version to user agent for auto update
- added show-message-when-using-chest-and-sorting-is-enabled to Metrics

View File

@ -1,6 +1,6 @@
main: de.jeffclan.JeffChestSort.JeffChestSortPlugin
name: ChestSort
version: 2.0.0
version: 2.0.1
api-version: 1.13
description: Allows automatic chest sorting
author: mfnalex

View File

@ -137,6 +137,8 @@ public class JeffChestSortPlugin extends JavaPlugin {
new Metrics.SimplePie("check_for_updates", () -> getConfig().getString("check-for-updates", "true")));
metrics.addCustomChart(new Metrics.SimplePie("show_message_when_using_chest",
() -> Boolean.toString(getConfig().getBoolean("show-message-when-using-chest"))));
metrics.addCustomChart(new Metrics.SimplePie("show_message_when_using_chest_and_sorting_is_enabl",
() -> Boolean.toString(getConfig().getBoolean("show-message-when-using-chest-and-sorting-is-enabled"))));
metrics.addCustomChart(new Metrics.SimplePie("show_message_again_after_logout",
() -> Boolean.toString(getConfig().getBoolean("show-message-again-after-logout"))));
metrics.addCustomChart(new Metrics.SimplePie("sorting_enabled_by_default",

View File

@ -38,7 +38,7 @@ public class JeffChestSortUpdateChecker {
try {
HttpURLConnection httpcon = (HttpURLConnection) new URL(latestVersionLink).openConnection();
httpcon.addRequestProperty("User-Agent", "Mozilla/4.76");
httpcon.addRequestProperty("User-Agent", "ChestSort/"+plugin.getDescription().getVersion());
BufferedReader reader = new BufferedReader(new InputStreamReader(httpcon.getInputStream()));