Skip to content

Commit 7b088a9

Browse files
committed
Added useful stuff...
1 parent 4bbbe54 commit 7b088a9

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/main/java/org/mangorage/entrypoint/MangoBotCore.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,32 @@
33
import org.mangorage.mangobotcore.plugin.internal.PluginManagerImpl;
44

55
public final class MangoBotCore {
6+
static String[] args;
7+
static boolean devMode = false;
8+
9+
610
static boolean loaded = false;
711

12+
public static String[] getArgs() {
13+
return args;
14+
}
15+
16+
public static boolean isDevMode() {
17+
return devMode;
18+
}
19+
820
public static void main(String[] args) {
921
if (loaded) return;
22+
MangoBotCore.args = args;
23+
24+
for (String arg : args) {
25+
if (arg.contains("--dev")) {
26+
devMode = true;
27+
break;
28+
}
29+
}
30+
31+
1032
PluginManagerImpl.INSTANCE.load();
1133
loaded = true;
1234
}

src/main/java/org/mangorage/mangobotcore/MangoBotCore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public String getId() {
1717

1818
@Override
1919
public void load() {
20-
var a = 1;
20+
2121
}
2222
}

0 commit comments

Comments
 (0)