()
| 95 | } |
| 96 | |
| 97 | @Override |
| 98 | public void start() { |
| 99 | audiences = BukkitAudiences.create(this); |
| 100 | commandManager = new SpigotCommandManager(this, CommandExecutionCoordinator.Type.SYNC); |
| 101 | parser = new AnnotationParser<>(commandManager); |
| 102 | commandManager.suggestionProviderRegistry().register(new AdaptSuggestionProvider()); |
| 103 | commandManager.suggestionProviderRegistry().register(new AdaptSuggestionProviderListing()); |
| 104 | commandManager.suggestionProviderRegistry().register(new SoundSuggestionProvider()); |
| 105 | commandManager.suggestionProviderRegistry().register(new ParticleSuggestionProvider()); |
| 106 | |
| 107 | NMS.init(); |
| 108 | Localizer.updateLanguageFile(); |
| 109 | if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) { |
| 110 | new PapiExpansion().register(); |
| 111 | } |
| 112 | printInformation(); |
| 113 | sqlManager = new SQLManager(); |
| 114 | if (AdaptConfig.get().isUseSql()) { |
| 115 | sqlManager.establishConnection(); |
| 116 | } |
| 117 | startSim(); |
| 118 | registerListener(new BrewingManager()); |
| 119 | setupMetrics(); |
| 120 | startupPrint(); // Splash screen |
| 121 | if (AdaptConfig.get().isAutoUpdateCheck()) { |
| 122 | autoUpdateCheck(); |
| 123 | } |
| 124 | protectorRegistry = new ProtectorRegistry(); |
| 125 | if (getServer().getPluginManager().getPlugin("WorldGuard") != null) { |
| 126 | protectorRegistry.registerProtector(new WorldGuardProtector()); |
| 127 | } |
| 128 | if (getServer().getPluginManager().getPlugin("Factions") != null) { |
| 129 | protectorRegistry.registerProtector(new FactionsClaimProtector()); |
| 130 | } |
| 131 | |
| 132 | if (getServer().getPluginManager().getPlugin("ChestProtect") != null) { |
| 133 | protectorRegistry.registerProtector(new ChestProtectProtector()); |
| 134 | } |
| 135 | if (getServer().getPluginManager().getPlugin("Residence") != null) { |
| 136 | protectorRegistry.registerProtector(new ResidenceProtector()); |
| 137 | } |
| 138 | glowingEntities = new GlowingEntities(this); |
| 139 | parser.parse(new CommandAdapt()); |
| 140 | } |
| 141 | |
| 142 | |
| 143 |
nothing calls this directly
no test coverage detected