mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-09 17:02:17 +01:00
Remove debug
This commit is contained in:
parent
0c1d7893f4
commit
1a22e7b20e
@ -227,7 +227,6 @@ public class Job {
|
||||
public JobInfo getJobInfo(ActionInfo action, int level) {
|
||||
BiPredicate<JobInfo, ActionInfo> condition = (jobInfo, actionInfo) -> {
|
||||
if (actionInfo instanceof PotionItemActionInfo) {
|
||||
Jobs.consoleMsg(jobInfo.getName() + ":" + jobInfo.getMeta());
|
||||
return jobInfo.getName().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();
|
||||
if (currentItem != null) {
|
||||
if (currentItem.hasItemMeta() && currentItem.getItemMeta() instanceof PotionMeta) {
|
||||
Jobs.consoleMsg(currentItem + " " + currentItem.hasItemMeta() + " " + currentItem.getItemMeta());
|
||||
PotionMeta potion = (PotionMeta) currentItem.getItemMeta();
|
||||
Jobs.action(jPlayer, new PotionItemActionInfo(currentItem, ActionType.CRAFT, potion.getBasePotionData().getType()));
|
||||
} else {
|
||||
|
@ -431,6 +431,10 @@ Jobs:
|
||||
"!Healing Bandage":
|
||||
income: 1.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
|
||||
Smelt:
|
||||
iron_ingot:
|
||||
|
Loading…
Reference in New Issue
Block a user