mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-12 18:31:26 +01:00
1.13.1
This commit is contained in:
parent
f2db454239
commit
a4f133c51b
@ -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
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user