mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-30 21:07:48 +01:00
GlowBerry support
This commit is contained in:
parent
f7bd02aaaf
commit
7f933b5e35
@ -504,7 +504,7 @@ public class Placeholder {
|
||||
case plimit_tleft_$1:
|
||||
return TimeManage.to24hourShort(user.getPaymentLimit().getLeftTime(CurrencyType.getByName(keyValue)));
|
||||
case user_jlevel_$1:
|
||||
return j == null ? "0" : Integer.toString(j.getLevel());
|
||||
return j == null ? "0" : j.getLevelFormatted();
|
||||
case user_jexp_$1:
|
||||
return j == null ? "0" : format.format(j.getExperience());
|
||||
case user_jexp_rounded_$1:
|
||||
|
@ -1629,7 +1629,7 @@ public final class JobsPaymentListener implements Listener {
|
||||
if (level.getLevel() == level.getMaximumLevel()) {
|
||||
Jobs.action(jPlayer, new BlockActionInfo(block, ActionType.COLLECT), block);
|
||||
}
|
||||
} else if (cmat == CMIMaterial.SWEET_BERRY_BUSH && hand != CMIMaterial.BONE_MEAL.getMaterial()) {
|
||||
} else if ((cmat == CMIMaterial.SWEET_BERRY_BUSH || cmat == CMIMaterial.GLOW_BERRIES) && hand != CMIMaterial.BONE_MEAL.getMaterial()) {
|
||||
Ageable age = (Ageable) block.getBlockData();
|
||||
Jobs.action(jPlayer, new BlockCollectInfo(block, ActionType.COLLECT, age.getAge()), block);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user