mirror of
https://github.com/Zrips/Jobs.git
synced 2025-04-10 14:16:33 +02:00
Remove debug
This commit is contained in:
parent
0c1d7893f4
commit
1a22e7b20e
src/main
@ -227,7 +227,6 @@ public class Job {
|
|||||||
public JobInfo getJobInfo(ActionInfo action, int level) {
|
public JobInfo getJobInfo(ActionInfo action, int level) {
|
||||||
BiPredicate<JobInfo, ActionInfo> condition = (jobInfo, actionInfo) -> {
|
BiPredicate<JobInfo, ActionInfo> condition = (jobInfo, actionInfo) -> {
|
||||||
if (actionInfo instanceof PotionItemActionInfo) {
|
if (actionInfo instanceof PotionItemActionInfo) {
|
||||||
Jobs.consoleMsg(jobInfo.getName() + ":" + jobInfo.getMeta());
|
|
||||||
return jobInfo.getName().equalsIgnoreCase(((PotionItemActionInfo) action).getNameWithPotion()) ||
|
return jobInfo.getName().equalsIgnoreCase(((PotionItemActionInfo) action).getNameWithPotion()) ||
|
||||||
(jobInfo.getName() + ":" + jobInfo.getMeta()).equalsIgnoreCase(((PotionItemActionInfo) action).getNameWithPotion());
|
(jobInfo.getName() + ":" + jobInfo.getMeta()).equalsIgnoreCase(((PotionItemActionInfo) action).getNameWithPotion());
|
||||||
}
|
}
|
||||||
|
@ -683,10 +683,10 @@ public class JobsPaymentListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// when we trying to craft tipped arrow effects
|
||||||
ItemStack currentItem = event.getCurrentItem();
|
ItemStack currentItem = event.getCurrentItem();
|
||||||
if (currentItem != null) {
|
if (currentItem != null) {
|
||||||
if (currentItem.hasItemMeta() && currentItem.getItemMeta() instanceof PotionMeta) {
|
if (currentItem.hasItemMeta() && currentItem.getItemMeta() instanceof PotionMeta) {
|
||||||
Jobs.consoleMsg(currentItem + " " + currentItem.hasItemMeta() + " " + currentItem.getItemMeta());
|
|
||||||
PotionMeta potion = (PotionMeta) currentItem.getItemMeta();
|
PotionMeta potion = (PotionMeta) currentItem.getItemMeta();
|
||||||
Jobs.action(jPlayer, new PotionItemActionInfo(currentItem, ActionType.CRAFT, potion.getBasePotionData().getType()));
|
Jobs.action(jPlayer, new PotionItemActionInfo(currentItem, ActionType.CRAFT, potion.getBasePotionData().getType()));
|
||||||
} else {
|
} else {
|
||||||
|
@ -431,6 +431,10 @@ Jobs:
|
|||||||
"!Healing Bandage":
|
"!Healing Bandage":
|
||||||
income: 1.0
|
income: 1.0
|
||||||
experience: 6.0
|
experience: 6.0
|
||||||
|
# If you add ":" after the tipped_arrow then you can use effect names like in example
|
||||||
|
tipped_arrow:slowness:
|
||||||
|
income: 3.0
|
||||||
|
points: 3.0
|
||||||
# Smelting ores
|
# Smelting ores
|
||||||
Smelt:
|
Smelt:
|
||||||
iron_ingot:
|
iron_ingot:
|
||||||
|
Loading…
Reference in New Issue
Block a user