forked from GeyserMC/Geyser
Add PlatformType enum and add bStats platform chart
This commit is contained in:
parent
0960ab2365
commit
1fbbb87689
5 changed files with 30 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue