Now able to empty poison, brews and serums
This commit is contained in:
@@ -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") || node.getName().toLowerCase().contains("antipoison")) {
|
if (node.getName().contains("brew") || node.getName().contains("potion") || node.getName().toLowerCase().contains("poison") || node.getName().contains("serum")) {
|
||||||
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;
|
||||||
@@ -73,6 +73,8 @@ public final class EmptyOptionPlugin extends OptionHandler {
|
|||||||
BURNT_ONION(7092, 1923, "You empty the contents of the bowl onto the floor."),
|
BURNT_ONION(7092, 1923, "You empty the contents of the bowl onto the floor."),
|
||||||
BURNT_MUSHROOM(7094, 1923, "You empty the contents of the bowl onto the floor.");
|
BURNT_MUSHROOM(7094, 1923, "You empty the contents of the bowl onto the floor.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int fullId, emptyId;
|
int fullId, emptyId;
|
||||||
String emptyMessage;
|
String emptyMessage;
|
||||||
EmptyItem(int fullId, int emptyId, String emptyMessage){
|
EmptyItem(int fullId, int emptyId, String emptyMessage){
|
||||||
|
|||||||
Reference in New Issue
Block a user