...
 
Commits (2)
Changelog
=========
v2.1 (2019/07/15)
-----------------
v2.2.0 (2019/08/03)
-------------------
* Added automatic update checker
* Separated exceptions for greentext and orangetext
* Stopped greenifier from greenifying empty messages
v2.1.0 (2019/07/15)
-------------------
* Added persistent map of player status
* Added message if player is already enabled/disabled
* Added command aliases: `bgt`, `bukkitgreentext`
* Re-write command parser to be more efficient
* Re-wrote command parser to be more efficient
v2.0 (2019/07/05)
-----------------
v2.0.0 (2019/07/05)
-------------------
* Initial (re-)release
......@@ -6,7 +6,7 @@
<name>BukkitGreentext</name>
<description>Add 4chan-style quoting to Minecraft server chat</description>
<version>2.2.0-SNAPSHOT</version>
<version>2.2.0</version>
<url>http://www.gitlab.com/ssterling/bukkitgreentext/</url>
<properties>
......
......@@ -82,7 +82,7 @@ public class BukkitGreentext extends JavaPlugin
/**
* Spigot project ID (for update checker).
*/
private static int project_id = 55295;
private static final int PROJECT_ID = 55295;
/**
* The file pointer for the persistent hashmap.
......@@ -228,11 +228,11 @@ public class BukkitGreentext extends JavaPlugin
getLogger().fine("Checking for updates...");
String current_version = pdf.getVersion();
try {
URL update_url = new URL("https://api.spigotmc.org/legacy/update.php?resource=" + project_id);
URL update_url = new URL("https://api.spigotmc.org/legacy/update.php?resource=" + PROJECT_ID);
URLConnection update_conn = update_url.openConnection();
String new_version = new BufferedReader(new InputStreamReader(update_conn.getInputStream())).readLine();
if (!(new_version.equals(current_version))) {
getLogger().info("New version " + new_version + " found (currently on " + current_version + "; download at: <https://www.spigotmc.org/resources/" + project_id + "/>");
getLogger().info("New version " + new_version + " found (currently on " + current_version + "; download at: <https://www.spigotmc.org/resources/" + PROJECT_ID + "/>");
} else {
getLogger().info("No new version found");
}
......
name: BukkitGreentext
author: ssterling
version: 2.2.0-SNAPSHOT
version: 2.2.0
description: Add 4chan-style quoting to Minecraft server chat
website: http://www.gitlab.com/ssterling/bukkitgreentext/
......