change par name so other devs without javadoc still can read that

This commit is contained in:
Ghost_chu committed 2021-05-30 18:49:45 +08:00
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);
}