mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-10 10:10:22 +01:00
Create inventory handler
This commit is contained in:
parent
a66c036289
commit
0604cc4e1d
@ -0,0 +1,23 @@
|
||||
package com.badbones69.crazyauctions.commands.inventories;
|
||||
|
||||
import com.badbones69.crazyauctions.CrazyAuctions;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class AuctionInventory implements InventoryHolder {
|
||||
|
||||
private final CrazyAuctions plugin = JavaPlugin.getPlugin(CrazyAuctions.class);
|
||||
|
||||
private final Inventory inventory;
|
||||
|
||||
public AuctionInventory() {
|
||||
this.inventory = plugin.getServer().createInventory(this, 9);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Inventory getInventory() {
|
||||
return this.inventory;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user