mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-13 01:51:37 -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) {
|
for (int id : OBJECTS) {
|
||||||
addHandler(id, OBJECT_TYPE, this);
|
addHandler(id, OBJECT_TYPE, this);
|
||||||
}
|
}
|
||||||
|
System.out.println("Burned meat plugin successfully initialized");
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,6 +63,7 @@ public final class BurnMeatPlugin extends UseWithHandler {
|
||||||
player.getPacketDispatch().sendMessage("You can't burn this piece of food.");
|
player.getPacketDispatch().sendMessage("You can't burn this piece of food.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
player.debug("Used Item: " + usedItem + " In inventory? " + player.getInventory().containsItem(usedItem));
|
||||||
if (player.getInventory().containsItem(usedItem)) {
|
if (player.getInventory().containsItem(usedItem)) {
|
||||||
player.getInventory().remove(usedItem);
|
player.getInventory().remove(usedItem);
|
||||||
player.lock(3);
|
player.lock(3);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue