version 1.1

Main.java -> GiftAPI.java
This commit is contained in:
ScriptCat 2025-07-30 10:30:04 +03:00
parent 101747e06a
commit a5a1396fe5
4 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
<element id="file-copy" path="$PROJECT_DIR$/src/main/resources/config.yml" />
<element id="file-copy" path="$PROJECT_DIR$/src/main/resources/plugin.yml" />
<element id="module-output" name="tokarotik.giftapi.GiftAPI.main" />
<element id="file-copy" path="$PROJECT_DIR$/README.txt" />
<element id="file-copy" path="$PROJECT_DIR$/README.md" />
</root>
</artifact>
</component>

View File

@ -17,7 +17,7 @@ import tokarotik.giftapi.inventory.InventoryManager;
public class APIManager implements Listener {
private final InventoryManager inventoryManager;
public APIManager(Main plugin, FileConfiguration config, int inventorySlots) {
public APIManager(GiftAPI plugin, FileConfiguration config, int inventorySlots) {
if (plugin == null || config == null) {
throw new IllegalArgumentException("Plugin and config must not be null.");
}

View File

@ -10,7 +10,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import tokarotik.giftapi.cache.CacheManager;
public class Main extends JavaPlugin implements Listener {
public class GiftAPI extends JavaPlugin implements Listener {
private static final int INVENTORY_SLOTS = 54;
private static final int CACHED_SLOTS = INVENTORY_SLOTS - 9;

View File

@ -1,3 +1,3 @@
name: GiftAPI
version: 1.0
main: tokarotik.giftapi.Main
version: 1.1
main: tokarotik.giftapi.GiftAPI