MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / start

Method start

src/main/java/com/volmit/adapt/Adapt.java:97–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

initMethod · 0.95
updateLanguageFileMethod · 0.95
printInformationMethod · 0.95
getMethod · 0.95
startSimMethod · 0.95
setupMetricsMethod · 0.95
startupPrintMethod · 0.95
autoUpdateCheckMethod · 0.95
establishConnectionMethod · 0.80
registerListenerMethod · 0.80
registerProtectorMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected