diff --git a/TheButtonAutoFlair.jar b/TheButtonAutoFlair.jar index 2d4d601..f0adb78 100644 Binary files a/TheButtonAutoFlair.jar and b/TheButtonAutoFlair.jar differ diff --git a/TheButtonAutoFlair/plugin.yml b/TheButtonAutoFlair/plugin.yml index 670f695..041dbb2 100644 --- a/TheButtonAutoFlair/plugin.yml +++ b/TheButtonAutoFlair/plugin.yml @@ -12,6 +12,6 @@ commands: description: Send message in Out-of-Character usage: "&cUsage: /ooc &r" unlol: - description: Unlol the last lol. Context: https://www.reddit.com/r/TheButtonMinecraft/comments/3urd29//cxnecs8 + description: Unlol the last lol. author: NorbiPeti depend: [Essentials, Towny, TownyChat, Minigames] diff --git a/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java b/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java index 22bbfb2..eddb864 100644 --- a/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java +++ b/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PluginMain.java @@ -126,8 +126,10 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15. continue; if (!mp.UserNames.contains(author)) mp.UserNames.add(author); - if (mp.FlairState.equals(FlairStates.NoComment)) + if (mp.FlairState.equals(FlairStates.NoComment)) { mp.FlairState = FlairStates.Commented; + ConfirmUserMessage(mp); + } try { Thread.sleep(10); } catch (InterruptedException ex) { @@ -256,13 +258,16 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15. Date date = parserSDF.parse(joindate); return date.before(new Calendar.Builder() .setTimeZone(TimeZone.getTimeZone("UTC")).setDate(2015, 4, 1) - .build().getTime()); + .build().getTime()); } public static void ConfirmUserMessage(MaybeOfflinePlayer mp) { Player p = Bukkit.getPlayer(mp.UUID); if (mp.FlairState.equals(FlairStates.Commented) && p != null) - p.sendMessage("§9" + "?§r §6Type /u accept or /u ignore§r"); + if (mp.UserNames.size() > 1) + p.sendMessage("§9Multiple Reddit users commented your name. You can select with /u accept.§r §6Type /u accept or /u ignore§r"); + else + p.sendMessage("§9A Reddit user commented your name. Is that you?§r §6Type /u accept or /u ignore§r"); } public static Collection GetPlayers() { diff --git a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PluginMain.class b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PluginMain.class index 4d1ff80..5c52610 100644 Binary files a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PluginMain.class and b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PluginMain.class differ