1+ /*
2+ * This file is a part of project QuickShop, the name is JavaIntegrationManager.java
3+ * Copyright (C) PotatoCraft Studio and contributors
4+ *
5+ * This program is free software: you can redistribute it and/or modify it
6+ * under the terms of the GNU General Public License as published by the
7+ * Free Software Foundation, either version 3 of the License, or
8+ * (at your option) any later version.
9+ *
10+ * This program is distributed in the hope that it will be useful, but WITHOUT
11+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13+ * for more details.
14+ *
15+ * You should have received a copy of the GNU General Public License
16+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17+ *
18+ */
19+
120package org .maxgamer .quickshop .integration ;
221
322import org .bukkit .Location ;
@@ -56,10 +75,6 @@ public List<IntegratedPlugin> getIntegrations() {
5675 return Collections .unmodifiableList (new ArrayList <>(integrations .values ()));
5776 }
5877
59- // public static Map<String, Class<? extends IntegratedPlugin>> getIntegrationMapping() {
60- // return INTEGRATION_MAPPING;
61- // }
62-
6378 @ Override
6479 public void searchAndRegisterPlugins () {
6580 PluginManager pluginManager = plugin .getServer ().getPluginManager ();
@@ -87,7 +102,6 @@ public void register(@NotNull IntegratedPlugin integratedPlugin) {
87102 }
88103 if (!integrations .containsKey (integratedPlugin .getName ())) {
89104 plugin .getLogger ().info ("Registering " + integratedPlugin .getName () + " integration" );
90- Util .debugLog ("Registering " + integratedPlugin .getName () + " integration" );
91105 integrations .put (integratedPlugin .getName (), integratedPlugin );
92106 }
93107 }
@@ -179,15 +193,6 @@ public void callIntegrationsLoad(@NotNull IntegrateStage stage) {
179193 == stage ) {
180194 Util .debugLog ("Calling for load " + integratedPlugin .getName ());
181195 integratedPlugin .load ();
182- } else {
183- Util .debugLog (
184- "Ignored calling because "
185- + integratedPlugin .getName ()
186- + " stage is "
187- + integratedPlugin
188- .getClass ()
189- .getDeclaredAnnotation (IntegrationStage .class )
190- .loadStage ());
191196 }
192197 });
193198 }
@@ -199,15 +204,6 @@ public void callIntegrationsUnload(@NotNull IntegrateStage stage) {
199204 == stage ) {
200205 Util .debugLog ("Calling for unload " + integratedPlugin .getName ());
201206 integratedPlugin .unload ();
202- } else {
203- Util .debugLog (
204- "Ignored calling because "
205- + integratedPlugin .getName ()
206- + " stage is "
207- + integratedPlugin
208- .getClass ()
209- .getDeclaredAnnotation (IntegrationStage .class )
210- .loadStage ());
211207 }
212208 });
213209 }
0 commit comments