version 1.1
Main.java -> GiftAPI.java
This commit is contained in:
parent
101747e06a
commit
a5a1396fe5
2
.idea/artifacts/giftapi.xml
generated
2
.idea/artifacts/giftapi.xml
generated
@ -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/config.yml" />
|
||||||
<element id="file-copy" path="$PROJECT_DIR$/src/main/resources/plugin.yml" />
|
<element id="file-copy" path="$PROJECT_DIR$/src/main/resources/plugin.yml" />
|
||||||
<element id="module-output" name="tokarotik.giftapi.GiftAPI.main" />
|
<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>
|
</root>
|
||||||
</artifact>
|
</artifact>
|
||||||
</component>
|
</component>
|
@ -17,7 +17,7 @@ import tokarotik.giftapi.inventory.InventoryManager;
|
|||||||
public class APIManager implements Listener {
|
public class APIManager implements Listener {
|
||||||
private final InventoryManager inventoryManager;
|
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) {
|
if (plugin == null || config == null) {
|
||||||
throw new IllegalArgumentException("Plugin and config must not be null.");
|
throw new IllegalArgumentException("Plugin and config must not be null.");
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
|||||||
|
|
||||||
import tokarotik.giftapi.cache.CacheManager;
|
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 INVENTORY_SLOTS = 54;
|
||||||
private static final int CACHED_SLOTS = INVENTORY_SLOTS - 9;
|
private static final int CACHED_SLOTS = INVENTORY_SLOTS - 9;
|
@ -1,3 +1,3 @@
|
|||||||
name: GiftAPI
|
name: GiftAPI
|
||||||
version: 1.0
|
version: 1.1
|
||||||
main: tokarotik.giftapi.Main
|
main: tokarotik.giftapi.GiftAPI
|
Loading…
x
Reference in New Issue
Block a user