Fixed Nether Warts not being properly recognized in Malleable Base
Quest.
This commit is contained in:
parent
eb09d973b5
commit
1a56bb7951
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: TwosideKeeper
|
name: TwosideKeeper
|
||||||
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
||||||
version: 3.4.3-AntiAristo
|
version: 3.4.3e2
|
||||||
commands:
|
commands:
|
||||||
money:
|
money:
|
||||||
description: Tells the player the amount of money they are holding.
|
description: Tells the player the amount of money they are holding.
|
||||||
|
@ -383,6 +383,12 @@ public class GenericFunctions {
|
|||||||
case NETHER_WARTS:{
|
case NETHER_WARTS:{
|
||||||
return "Nether Wart";
|
return "Nether Wart";
|
||||||
}
|
}
|
||||||
|
case NETHER_STALK:{
|
||||||
|
return "Nether Wart";
|
||||||
|
}
|
||||||
|
case GOLD_PLATE:{
|
||||||
|
return "Gold Pressure Plate";
|
||||||
|
}
|
||||||
case PISTON_BASE:{
|
case PISTON_BASE:{
|
||||||
return "Piston";
|
return "Piston";
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ public class MalleableBaseQuest {
|
|||||||
blacklisted_items.add(Material.MONSTER_EGGS);
|
blacklisted_items.add(Material.MONSTER_EGGS);
|
||||||
blacklisted_items.add(Material.MYCEL);
|
blacklisted_items.add(Material.MYCEL);
|
||||||
blacklisted_items.add(Material.NAME_TAG);
|
blacklisted_items.add(Material.NAME_TAG);
|
||||||
blacklisted_items.add(Material.NETHER_STALK);
|
blacklisted_items.add(Material.NETHER_WARTS);
|
||||||
blacklisted_items.add(Material.NETHER_STAR);
|
blacklisted_items.add(Material.NETHER_STAR);
|
||||||
blacklisted_items.add(Material.POTATO);
|
blacklisted_items.add(Material.POTATO);
|
||||||
blacklisted_items.add(Material.PISTON_EXTENSION);
|
blacklisted_items.add(Material.PISTON_EXTENSION);
|
||||||
|
@ -532,7 +532,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
DecimalFormat df = new DecimalFormat("0.00");
|
DecimalFormat df = new DecimalFormat("0.00");
|
||||||
if (cmd.getName().equalsIgnoreCase("fix")) {
|
if (cmd.getName().equalsIgnoreCase("fix")) {
|
||||||
Player p = (Player)sender;
|
Player p = (Player)sender;
|
||||||
sender.sendMessage("Localized Name is "+GenericFunctions.UserFriendlyMaterialName(p.getEquipment().getItemInMainHand().getType(),p.getEquipment().getItemInMainHand().getData().getData()));
|
//sender.sendMessage("Localized Name is "+GenericFunctions.UserFriendlyMaterialName(p.getEquipment().getItemInMainHand().getType(),p.getEquipment().getItemInMainHand().getData().getData()));
|
||||||
|
if (Artifact.isMalleableBase(p.getEquipment().getItemInMainHand()) &&
|
||||||
|
MalleableBaseQuest.getTimeStarted(p.getEquipment().getItemInMainHand())<=147337849) {
|
||||||
|
p.getEquipment().setItemInMainHand(MalleableBaseQuest.setTimeStarted(p.getEquipment().getItemInMainHand(), getServerTickTime()));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else
|
} else
|
||||||
if (cmd.getName().equalsIgnoreCase("money")) {
|
if (cmd.getName().equalsIgnoreCase("money")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user