1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-08 08:21:41 +01:00

Bake income should work now

This commit is contained in:
montlikadani 2019-10-26 12:06:21 +02:00
parent c825a2de56
commit d98bb4aaf9
3 changed files with 7 additions and 4 deletions

View File

@ -24,3 +24,4 @@
- Fixed issue when used 1.12 and lower versions then some materials not work correctly.
- Added option to jobs shop to hide icon if a player there are no enough points to buy a item
- Fixed issue for inventory dragging when a player is in jobs GUI.
- Added new action type: Bake, to cooking foods with campfire.

View File

@ -435,8 +435,8 @@ public class LanguageManager {
c.get("command.info.output.custom-kill.none", "%jobname% does not get money from custom player kills.");
c.get("command.info.output.collect.info", "&eCollect");
c.get("command.info.output.collect.none", "%jobname% does not get money for collecting blocks.");
c.get("command.info.output.cook.info", "&eCook");
c.get("command.info.output.cook.none", "%jobname% does not get money for cooking foods.");
c.get("command.info.output.bake.info", "&eBake");
c.get("command.info.output.bake.none", "%jobname% does not get money for cooking foods.");
c.get("command.playerinfo.help.info", "Show how much each job is getting paid and for what on another player.");
c.get("command.playerinfo.help.args", "[playername] [jobname] [action]");

View File

@ -50,8 +50,10 @@ public class JobsPayment14Listener implements Listener {
if (jPlayer == null)
return;
Jobs.action(jPlayer, new ItemActionInfo(event.getResult(), ActionType.BAKE));
it.remove();
Jobs.action(jPlayer, new ItemActionInfo(event.getSource(), ActionType.BAKE));
if (camps.getValue().getItem().equals(event.getSource())) {
it.remove();
}
}
}