mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
commit
1bce7d5355
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ public final class BurnMeatPlugin extends UseWithHandler {
|
|||
for (int id : OBJECTS) {
|
||||
addHandler(id, OBJECT_TYPE, this);
|
||||
}
|
||||
System.out.println("Burned meat plugin successfully initialized");
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
@ -62,6 +63,7 @@ public final class BurnMeatPlugin extends UseWithHandler {
|
|||
player.getPacketDispatch().sendMessage("You can't burn this piece of food.");
|
||||
return true;
|
||||
}
|
||||
player.debug("Used Item: " + usedItem + " In inventory? " + player.getInventory().containsItem(usedItem));
|
||||
if (player.getInventory().containsItem(usedItem)) {
|
||||
player.getInventory().remove(usedItem);
|
||||
player.lock(3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue