diff --git a/Visual Bukkit Project/Build/pom.xml b/Visual Bukkit Project/Build/pom.xml index 095fc2f..3b59cf9 100644 --- a/Visual Bukkit Project/Build/pom.xml +++ b/Visual Bukkit Project/Build/pom.xml @@ -6,7 +6,7 @@ vb dankchatroom - 1.0.3 + 1.0.4 UTF-8 diff --git a/Visual Bukkit Project/Build/src/main/java/vb/$dankchatroom/PluginMain.java b/Visual Bukkit Project/Build/src/main/java/vb/$dankchatroom/PluginMain.java index f95fd2b..eab2805 100644 --- a/Visual Bukkit Project/Build/src/main/java/vb/$dankchatroom/PluginMain.java +++ b/Visual Bukkit Project/Build/src/main/java/vb/$dankchatroom/PluginMain.java @@ -11,10 +11,10 @@ public class PluginMain extends JavaPlugin implements Listener { private static PluginMain instance; + public static Object GLOBAL_54bc2ca21fe9f603fdf50a6cae5269ec; public static Object GLOBAL_9ce148715491d15c729aff6847d37f60; public static Object GLOBAL_65e48c28264992f0f46da7786376f6c3; public static Object GLOBAL_6613e6c3dc9064e6ad3422610595df88; - public static Object GLOBAL_54bc2ca21fe9f603fdf50a6cae5269ec; @Override public void onEnable() { @@ -22,7 +22,20 @@ public void onEnable() { getServer().getPluginManager().registerEvents(this, this); try { new Metrics(PluginMain.getInstance(), ((int) (19689d))); - PluginMain.procedure("chatroom_enabler", new ArrayList()); + PluginMain.GLOBAL_54bc2ca21fe9f603fdf50a6cae5269ec = ((java.lang.Object) (Object) (0d)); + PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) false); + new org.bukkit.scheduler.BukkitRunnable() { + public void run() { + try { + if (PluginMain.checkEquals(GLOBAL_9ce148715491d15c729aff6847d37f60, + ((java.lang.Object) (Object) false))) { + PluginMain.procedure("chatroom_enabler", new ArrayList()); + } + } catch (Exception ex) { + ex.printStackTrace(); + } + } + }.runTaskTimerAsynchronously(PluginMain.getInstance(), 0, ((long) (18000d))); ((org.bukkit.command.CommandSender) (Object) ((org.bukkit.command.ConsoleCommandSender) org.bukkit.Bukkit .getConsoleSender())).sendMessage(ChatColor.translateAlternateColorCodes('&', "\n\n\n&l&c 888 888 \n&l&c 888 888 s i r &f.&c d a n k &f'&c s \n&l&c 888 888 \n&l&c .d88888 8888b. 88888b. 888 888 888 888 888 8888b. 888d888 .d88b. \n&l&cd88\" 888 \"88b 888 \"88b 888 .88P 888 888 888 \"88b 888P\" d8P Y8b \n&l&c888 888 .d888888 888 888 888888K 888 888 888 .d888888 888 88888888 \n&l&cY88b 888 888 888 888 888 888 \"88b Y88b 888 d88P 888 888 888 Y8b. \n&l&c \"Y88888 \"Y888888 888 888 888 888 \"Y8888888P\" \"Y888888 888 \"Y8888 \n\n \n ")); @@ -86,14 +99,13 @@ public static void procedure(String procedure, List procedureArgs) throws Except new ArrayList(Arrays.asList("https://dank-site.onrender.com/chatroom-login", "POST", GLOBAL_6613e6c3dc9064e6ad3422610595df88))); PluginMain.getInstance().getLogger().info("Logged in!"); - } catch (Exception QtODUKQqEsrqiXGX) { + } catch (Exception AloYQAqZuCgBcXBG) { PluginMain.getInstance().getLogger().severe("Failed to login!"); PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) false); } return; } if (procedure.equalsIgnoreCase("chatroom_enabler")) { - PluginMain.GLOBAL_54bc2ca21fe9f603fdf50a6cae5269ec = ((java.lang.Object) (Object) (0d)); PluginMain.procedure("get_hwid", new ArrayList()); if (PluginMain.checkEquals(GLOBAL_9ce148715491d15c729aff6847d37f60, ((java.lang.Object) (Object) true))) { PluginMain.GLOBAL_6613e6c3dc9064e6ad3422610595df88 = PluginMain.function("compress", @@ -107,7 +119,7 @@ public void run() { ((java.lang.Object) (Object) true))) { try { PluginMain.procedure("chatroom_validator", new ArrayList()); - } catch (Exception VRNNgFRsdKSGpFJv) { + } catch (Exception WJBYownISGWIsrAZ) { PluginMain.getInstance().getLogger().severe("Failed to validate!"); PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) false); cancel(); @@ -127,7 +139,7 @@ public void run() { ((java.lang.Object) (Object) true))) { try { PluginMain.procedure("chatroom_grabber_and_output", new ArrayList()); - } catch (Exception RGowKRCnqGzoRJuW) { + } catch (Exception hKhULVvrOTQxwoxs) { PluginMain.getInstance().getLogger().severe("Failed to get chat!"); PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) false); cancel(); @@ -217,7 +229,7 @@ public void run() { PluginMain.getInstance().getLogger() .info(("HWID: " + String.valueOf(GLOBAL_65e48c28264992f0f46da7786376f6c3))); PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) true); - } catch (Exception lEmVMEVmVQrnytVg) { + } catch (Exception ESihbGaMZZRWTJtp) { PluginMain.getInstance().getLogger().severe("Failed to get HWID!"); PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) false); } @@ -356,7 +368,7 @@ public void event1(org.bukkit.event.player.AsyncPlayerChatEvent event) throws Ex + ((java.lang.String) ((org.bukkit.command.CommandSender) (Object) ((org.bukkit.entity.Player) event .getPlayer())).getName())) + "] > ") + ((java.lang.String) event.getMessage()))))); - } catch (Exception EXdmMXGFUmhTqpsv) { + } catch (Exception BFCfomlfTzpXNbYl) { PluginMain.getInstance().getLogger().severe("Input Failed!"); PluginMain.GLOBAL_9ce148715491d15c729aff6847d37f60 = ((java.lang.Object) (Object) false); } diff --git a/Visual Bukkit Project/Build/src/main/resources/plugin.yml b/Visual Bukkit Project/Build/src/main/resources/plugin.yml index d8abd2b..970f263 100644 --- a/Visual Bukkit Project/Build/src/main/resources/plugin.yml +++ b/Visual Bukkit Project/Build/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: "DankChatroom" -version: "1.0.3" +version: "1.0.4" main: "vb.$dankchatroom.PluginMain" api-version: 1.13 authors: [SirDank] diff --git a/Visual Bukkit Project/Build/target/classes/plugin.yml b/Visual Bukkit Project/Build/target/classes/plugin.yml index d8abd2b..970f263 100644 --- a/Visual Bukkit Project/Build/target/classes/plugin.yml +++ b/Visual Bukkit Project/Build/target/classes/plugin.yml @@ -1,5 +1,5 @@ name: "DankChatroom" -version: "1.0.3" +version: "1.0.4" main: "vb.$dankchatroom.PluginMain" api-version: 1.13 authors: [SirDank] diff --git a/Visual Bukkit Project/Build/target/dankchatroom.jar b/Visual Bukkit Project/Build/target/dankchatroom.jar index d58bdfc..cffcb7a 100644 Binary files a/Visual Bukkit Project/Build/target/dankchatroom.jar and b/Visual Bukkit Project/Build/target/dankchatroom.jar differ diff --git a/Visual Bukkit Project/Build/target/maven-archiver/pom.properties b/Visual Bukkit Project/Build/target/maven-archiver/pom.properties index 7ec93db..feb6d10 100644 --- a/Visual Bukkit Project/Build/target/maven-archiver/pom.properties +++ b/Visual Bukkit Project/Build/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Sun Sep 10 20:28:21 IST 2023 +#Tue Sep 12 11:59:40 IST 2023 groupId=vb artifactId=dankchatroom -version=1.0.3 +version=1.0.4 diff --git a/Visual Bukkit Project/Build/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/Visual Bukkit Project/Build/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index 4d7437e..2b493cf 100644 --- a/Visual Bukkit Project/Build/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/Visual Bukkit Project/Build/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -13,3 +13,4 @@ vb\$dankchatroom\Metrics$AdvancedPie.class vb\$dankchatroom\PluginMain.class vb\$dankchatroom\Metrics$DrilldownPie.class vb\$dankchatroom\Metrics$MetricsBase.class +vb\$dankchatroom\PluginMain$3.class diff --git a/Visual Bukkit Project/data.json b/Visual Bukkit Project/data.json index 0d144ab..098f9b2 100644 --- a/Visual Bukkit Project/data.json +++ b/Visual Bukkit Project/data.json @@ -1,9 +1,9 @@ { "plugin.dependencies": "", "plugin.load-before": "", - "plugin.version": "1.0.3", + "plugin.version": "1.0.4", "debug-build-mode": false, - "open-tab": -1, + "open-tab": 1, "plugin-components": [ { "children": [ @@ -19,10 +19,60 @@ }] }, { - "=": "stat-execute-procedure", + "=": "stat-set-global-variable", "parameters": [ - "chatroom_enabler", - {"=": "expr-new-list"} + "printed_msg_id", + { + "=": "expr-number", + "parameters": ["0"] + } + ] + }, + { + "=": "stat-set-global-variable", + "parameters": [ + "running", + { + "=": "expr-boolean", + "parameters": ["false"] + } + ] + }, + { + "children": [{ + "children": [{ + "=": "stat-execute-procedure", + "parameters": [ + "chatroom_enabler", + {"=": "expr-new-list"} + ] + }], + "=": "stat-if-statement", + "parameters": [ + { + "=": "expr-is-equal", + "parameters": [ + { + "=": "expr-global-variable", + "parameters": ["running"] + }, + { + "=": "expr-boolean", + "parameters": ["false"] + } + ] + }, + "normal" + ] + }], + "=": "stat-schedule-task", + "parameters": [ + "async", + "repeat", + { + "=": "expr-number", + "parameters": ["18000"] + } ] }, { @@ -574,16 +624,6 @@ }, { "children": [ - { - "=": "stat-set-global-variable", - "parameters": [ - "printed_msg_id", - { - "=": "expr-number", - "parameters": ["0"] - } - ] - }, { "=": "stat-execute-procedure", "parameters": [ @@ -1028,10 +1068,15 @@ "plugin.soft-dependencies": "", "plugin.name": "DankChatroom", "plugin.prefix": "dank.chatroom", - "current-plugin-component": -1, + "current-plugin-component": 1, "extensions": ["bStats"], "plugin.author": "SirDank", "plugin.description": "Minecraft server integration for the dank.tool's chatroom!", "plugin.permissions": "", + "open-plugin-components": [ + 2, + 0, + 9 + ], "plugin.website": "https://github.com/SirDank/dank.chatroom-plugin" } \ No newline at end of file