-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEleCraftServerScript.java
More file actions
48 lines (35 loc) · 1.16 KB
/
Copy pathEleCraftServerScript.java
File metadata and controls
48 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
EleCraft TerraFirmaCraft SMP
Brace Software Co.
Server skripta
by DEntisT_
Helper: Wolfie
*/
package net.bracesoftware.elecraft;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.Mod;
import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent;
import net.neoforged.fml.ModContainer;
import net.bracesoftware.elecraft.__PrivateCodeData.JavaTerminal;
@Mod(EleCraftServerScript.MODID)
public class EleCraftServerScript
{
public static final String MODID = "elecraftserverscript";
public EleCraftServerScript(IEventBus modEventBus, ModContainer modContainer)
{
new Implementation();
JavaTerminal terminal = null;
if(Utils.False())
{
terminal = new JavaTerminal("EleCraft Terminal");
terminal.printText("Console je spreman!");
}
Implementation.loadImplementation();
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
Implementation.unloadImplementation();
//if(terminal != null) terminal.close();
}));
return;
}
}