📦New LootChest Type
Step 1
public class NewLC extends BoxManager {
//This is the constructor and you should keep the parameter unchanged
public NewLC(Location location, Player player, ItemStack icon, TConfigManager config, String boxid, Location initialLocation) {
//Your code...
}
@Override
public boolean open() {
//You must add this checker!
if (!super.open()) {
return false;
}
//Your code...
}
@Override
public void remove() {
super.remove();
//Your code...
}
}Step 2
Last updated