mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-23 08:49:23 +00:00
Add PlatformType enum and add bStats platform chart
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
package org.geysermc.platform.bukkit;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.geysermc.common.PlatformType;
|
||||
import org.geysermc.connector.GeyserConnector;
|
||||
import org.geysermc.common.bootstrap.IGeyserBootstrap;
|
||||
|
||||
@@ -49,7 +50,7 @@ public class GeyserBukkitPlugin extends JavaPlugin implements IGeyserBootstrap {
|
||||
|
||||
geyserLogger = new GeyserBukkitLogger(getLogger(), geyserConfig.isDebugMode());
|
||||
|
||||
GeyserConnector.start(this);
|
||||
GeyserConnector.start(PlatformType.BUKKIT, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -30,6 +30,7 @@ import net.md_5.bungee.config.Configuration;
|
||||
import net.md_5.bungee.config.ConfigurationProvider;
|
||||
import net.md_5.bungee.config.YamlConfiguration;
|
||||
|
||||
import org.geysermc.common.PlatformType;
|
||||
import org.geysermc.connector.GeyserConnector;
|
||||
import org.geysermc.common.bootstrap.IGeyserBootstrap;
|
||||
|
||||
@@ -86,7 +87,7 @@ public class GeyserBungeePlugin extends Plugin implements IGeyserBootstrap {
|
||||
|
||||
geyserLogger = new GeyserBungeeLogger(getLogger(), geyserConfig.isDebugMode());
|
||||
|
||||
GeyserConnector.start(this);
|
||||
GeyserConnector.start(PlatformType.BUNGEECORD, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
package org.geysermc.platform.standalone;
|
||||
|
||||
import org.fusesource.jansi.AnsiConsole;
|
||||
import org.geysermc.common.PlatformType;
|
||||
import org.geysermc.common.bootstrap.IGeyserBootstrap;
|
||||
import org.geysermc.connector.GeyserConnector;
|
||||
import org.geysermc.connector.utils.FileUtils;
|
||||
@@ -62,7 +63,7 @@ public class GeyserBootstrap implements IGeyserBootstrap {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
GeyserConnector connector = GeyserConnector.start(this);
|
||||
GeyserConnector connector = GeyserConnector.start(PlatformType.STANDALONE, this);
|
||||
|
||||
ConsoleCommandReader consoleReader = new ConsoleCommandReader(connector);
|
||||
consoleReader.startConsole();
|
||||
|
||||
Reference in New Issue
Block a user