mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
empty antipoisons :DDD
This commit is contained in:
parent
8f72ddd5c3
commit
c072ab566a
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ public final class EmptyOptionPlugin extends OptionHandler {
|
||||||
public static final String BUCKET_EMPTY_MSG = "You empty the contents of the bucket onto the floor.";
|
public static final String BUCKET_EMPTY_MSG = "You empty the contents of the bucket onto the floor.";
|
||||||
@Override
|
@Override
|
||||||
public boolean handle(Player player, Node node, String option) {
|
public boolean handle(Player player, Node node, String option) {
|
||||||
if (node.getName().contains("potion")) {
|
if (node.getName().contains("potion") || node.getName().toLowerCase().contains("antipoison")) {
|
||||||
player.getInventory().remove(node.asItem());
|
player.getInventory().remove(node.asItem());
|
||||||
player.getInventory().add(EmptyItem.getEmpty(91));
|
player.getInventory().add(EmptyItem.getEmpty(91));
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue