Added an implementation tester to Bukkit, to determine which impl is in use. (For WE,WG,CB to use Paper/Spigot specific APIs)

This commit is contained in:
Matthew Miller
2018-09-23 22:48:04 +10:00
parent fd6034fbdd
commit cc1a54b5f0
2 changed files with 93 additions and 0 deletions

View File

@ -104,6 +104,9 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
// platforms to be worried about... at the current time of writing
WorldEdit.getInstance().getEventBus().post(new PlatformReadyEvent());
// Setup the BukkitImplementationTester.
BukkitImplementationTester.getImplementation();
// Enable metrics
new Metrics(this);
}