Skip to content

Commit 6819e12

Browse files
committed
move public api to the top of the file
1 parent f2d5279 commit 6819e12

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@
9595

9696
public class QuickShop extends JavaPlugin implements QuickShopAPI {
9797

98+
/* Public QuickShop API */
99+
@Getter
100+
private final JavaCompatibilityManager compatibilityTool = new JavaCompatibilityManager(this);
101+
private JavaIntegrationManager integrationHelper;
102+
@Getter
103+
private JavaDatabaseHelper databaseHelper;
104+
@Getter
105+
private JavaCommandManager commandManager;
106+
private ItemMatcher itemMatcher;
107+
private JavaShopManager shopManager;
108+
private JavaTextManager textManager;
109+
/* Public QuickShop API End */
110+
98111
/**
99112
* The active instance of QuickShop
100113
* You shouldn't use this if you really need it.
@@ -112,12 +125,7 @@ public class QuickShop extends JavaPlugin implements QuickShopAPI {
112125
*/
113126
@Getter
114127
private static volatile boolean testing = false;
115-
/**
116-
* WIP
117-
*/
118-
// Interfaced
119-
@Getter
120-
private final JavaCompatibilityManager compatibilityTool = new JavaCompatibilityManager(this);
128+
121129
/**
122130
* The shop limites.
123131
*/
@@ -130,24 +138,14 @@ public class QuickShop extends JavaPlugin implements QuickShopAPI {
130138
@Getter
131139
private final ReloadManager reloadManager = new ReloadManager();
132140
boolean onLoadCalled = false;
133-
// Interfaced
134-
private JavaIntegrationManager integrationHelper;
135141
/**
136142
* The BootError, if it not NULL, plugin will stop loading and show setted errors when use /qs
137143
*/
138144
@Nullable
139145
@Getter
140146
@Setter
141147
private BootError bootError;
142-
// Interfaced
143-
@Getter
144-
private JavaCommandManager commandManager;
145-
/**
146-
* Contains all SQL tasks
147-
*/
148-
@Getter
149-
// Interfaced
150-
private JavaDatabaseHelper databaseHelper;
148+
151149
/**
152150
* Queued database manager
153151
*/
@@ -172,7 +170,7 @@ public class QuickShop extends JavaPlugin implements QuickShopAPI {
172170
@Getter
173171
private Economy economy;
174172

175-
private ItemMatcher itemMatcher;
173+
176174
/**
177175
* Whether or not to limit players shop amounts
178176
*/
@@ -221,11 +219,6 @@ public class QuickShop extends JavaPlugin implements QuickShopAPI {
221219
*/
222220
@Getter
223221
private ShopLoader shopLoader;
224-
/**
225-
* The Shop Manager used to store shops
226-
*/
227-
// Interfaced
228-
private JavaShopManager shopManager;
229222
@Getter
230223
private DisplayAutoDespawnWatcher displayAutoDespawnWatcher;
231224
@Getter
@@ -265,9 +258,6 @@ public class QuickShop extends JavaPlugin implements QuickShopAPI {
265258
private Plugin worldEditPlugin;
266259
@Getter
267260
private WorldEditAdapter worldEditAdapter;
268-
// Interfaced
269-
private JavaTextManager textManager;
270-
// Not included API
271261
@Getter
272262
private ShopPurger shopPurger;
273263

0 commit comments

Comments
 (0)