mirror of
https://github.com/JonasunderscoreJones/McWebserver.git
synced 2025-10-23 11:29:19 +02:00
confirmed this way of doing isn't all that awful
This commit is contained in:
parent
bb5afa875a
commit
46f80476ef
1 changed files with 0 additions and 2 deletions
|
@ -62,7 +62,6 @@ public class ApiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void startHandler() {
|
public static void startHandler() {
|
||||||
//This is a really awful way of collection all this info. Please don't kill me.
|
|
||||||
ServerTickEvents.END_SERVER_TICK.register(server -> {
|
ServerTickEvents.END_SERVER_TICK.register(server -> {
|
||||||
if (server.isRunning()) {
|
if (server.isRunning()) {
|
||||||
ApiRequestsUtil.setMOTD(server.getServerMotd());
|
ApiRequestsUtil.setMOTD(server.getServerMotd());
|
||||||
|
@ -82,7 +81,6 @@ public class ApiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void startAdvHandler() {
|
public static void startAdvHandler() {
|
||||||
//This is a really awful way of collection all this info. Please don't kill me.
|
|
||||||
ServerTickEvents.END_SERVER_TICK.register(server -> {
|
ServerTickEvents.END_SERVER_TICK.register(server -> {
|
||||||
if (server.isRunning()) {
|
if (server.isRunning()) {
|
||||||
ApiRequestsUtil.setSERVER_PLAYER_ENTITY_LIST(server.getPlayerManager().getPlayerList());
|
ApiRequestsUtil.setSERVER_PLAYER_ENTITY_LIST(server.getPlayerManager().getPlayerList());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue