Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
15da8395
Commit
15da8395
authored
Apr 23, 2022
by
KingRainbow44
Browse files
Update Grasscutter for Java 16 & Plugins
parents
e3d6b86d
a957379a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
15da8395
...
@@ -8,7 +8,6 @@ import java.io.InputStreamReader;
...
@@ -8,7 +8,6 @@ import java.io.InputStreamReader;
import
java.net.InetSocketAddress
;
import
java.net.InetSocketAddress
;
import
emu.grasscutter.command.CommandMap
;
import
emu.grasscutter.command.CommandMap
;
import
emu.grasscutter.plugin.PluginManager
;
import
emu.grasscutter.utils.Utils
;
import
emu.grasscutter.utils.Utils
;
import
org.reflections.Reflections
;
import
org.reflections.Reflections
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -36,7 +35,6 @@ public final class Grasscutter {
...
@@ -36,7 +35,6 @@ public final class Grasscutter {
private
static
GameServer
gameServer
;
private
static
GameServer
gameServer
;
public
static
final
Reflections
reflector
=
new
Reflections
();
public
static
final
Reflections
reflector
=
new
Reflections
();
public
static
final
PluginManager
pluginManager
;
static
{
static
{
// Declare logback configuration.
// Declare logback configuration.
...
@@ -47,9 +45,6 @@ public final class Grasscutter {
...
@@ -47,9 +45,6 @@ public final class Grasscutter {
// Check server structure.
// Check server structure.
Utils
.
startupCheck
();
Utils
.
startupCheck
();
// Call plugin manager.
pluginManager
=
new
PluginManager
();
}
}
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
...
@@ -97,6 +92,8 @@ public final class Grasscutter {
...
@@ -97,6 +92,8 @@ public final class Grasscutter {
System
.
exit
(
1
);
System
.
exit
(
1
);
}
}
// Open console.
// Open console.
startConsole
();
startConsole
();
}
}
...
@@ -164,8 +161,4 @@ public final class Grasscutter {
...
@@ -164,8 +161,4 @@ public final class Grasscutter {
public
static
GameServer
getGameServer
()
{
public
static
GameServer
getGameServer
()
{
return
gameServer
;
return
gameServer
;
}
}
public
static
PluginManager
getPluginManager
()
{
return
pluginManager
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment