Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
added connection watcher
  • Loading branch information
SirDank committed Sep 12, 2023
1 parent f2e03cb commit 80f78bd
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Visual Bukkit Project/Build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>vb</groupId>
<artifactId>dankchatroom</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,31 @@ 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() {
instance = this;
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 "));
Expand Down Expand Up @@ -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",
Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion Visual Bukkit Project/Build/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "DankChatroom"
version: "1.0.3"
version: "1.0.4"
main: "vb.$dankchatroom.PluginMain"
api-version: 1.13
authors: [SirDank]
Expand Down
2 changes: 1 addition & 1 deletion Visual Bukkit Project/Build/target/classes/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "DankChatroom"
version: "1.0.3"
version: "1.0.4"
main: "vb.$dankchatroom.PluginMain"
api-version: 1.13
authors: [SirDank]
Expand Down
Binary file modified Visual Bukkit Project/Build/target/dankchatroom.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
77 changes: 61 additions & 16 deletions Visual Bukkit Project/data.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"]
}
]
},
{
Expand Down Expand Up @@ -574,16 +624,6 @@
},
{
"children": [
{
"=": "stat-set-global-variable",
"parameters": [
"printed_msg_id",
{
"=": "expr-number",
"parameters": ["0"]
}
]
},
{
"=": "stat-execute-procedure",
"parameters": [
Expand Down Expand Up @@ -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"
}

0 comments on commit 80f78bd

Please sign in to comment.