mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 09:59:49 -05:00
change par name so other devs without javadoc still can read that
This commit is contained in:
1 parent
b5ae07fe06
commit
b4a86ba7ed
1 file changed
+4
-4
@@ -37,13 +37,13 @@ public class QuickShopAPI {
|
||||
* DO NOT CALL ME, IT JUST A INTERNAL METHOD, BUT BECAUSE CROSS-PACKAGE ACCESS, IT IS PUBLIC, SO DO NOT EXECUTE IT.
|
||||
* Go away =w=
|
||||
*
|
||||
* @param qs The QuickShop plugin instance
|
||||
* @param doNotUseThisMethodInYourPlugin_ItOnlyCanBeAccessByQuickShopInternally The QuickShop plugin instance
|
||||
*/
|
||||
public static void setupApi(@NotNull JavaPlugin qs) {
|
||||
if (!(qs instanceof QuickShop)) {
|
||||
public static void setupApi(@NotNull JavaPlugin doNotUseThisMethodInYourPlugin_ItOnlyCanBeAccessByQuickShopInternally) {
|
||||
if (!(doNotUseThisMethodInYourPlugin_ItOnlyCanBeAccessByQuickShopInternally instanceof QuickShop)) {
|
||||
throw new IllegalArgumentException("You can't setup API, it should only access by QuickShop internal calling.");
|
||||
}
|
||||
plugin = (QuickShop) qs;
|
||||
plugin = (QuickShop) doNotUseThisMethodInYourPlugin_ItOnlyCanBeAccessByQuickShopInternally;
|
||||
shopAPI = new ShopAPI(plugin);
|
||||
displayItemAPI = new DisplayItemAPI(plugin);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user