1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

Forgot to add new action to messages

https://github.com/Zrips/Jobs/issues/484#issuecomment-512759409
This commit is contained in:
montlikadani 2019-07-18 12:41:07 +02:00
parent 9ed6ed59ee
commit 466ad912f1
4 changed files with 8 additions and 10 deletions

View File

@ -418,6 +418,8 @@ public class LanguageManager {
c.get("command.info.output.explore.none", "%jobname% does not get money from exploring."); c.get("command.info.output.explore.none", "%jobname% does not get money from exploring.");
c.get("command.info.output.custom-kill.info", "&eCustom kill"); c.get("command.info.output.custom-kill.info", "&eCustom kill");
c.get("command.info.output.custom-kill.none", "%jobname% does not get money from custom player kills."); 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.playerinfo.help.info", "Show how much each job is getting paid and for what on another player."); 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]"); c.get("command.playerinfo.help.args", "[playername] [jobname] [action]");

View File

@ -46,12 +46,10 @@ public class JobItems {
public JobItems(String node, CMIMaterial mat, int amount, String name, List<String> lore, HashMap<Enchantment, Integer> enchants, BoostMultiplier boostMultiplier, List<Job> jobs) { public JobItems(String node, CMIMaterial mat, int amount, String name, List<String> lore, HashMap<Enchantment, Integer> enchants, BoostMultiplier boostMultiplier, List<Job> jobs) {
mat = mat == null ? CMIMaterial.STONE : mat; mat = mat == null ? CMIMaterial.STONE : mat;
try { try {
item = mat.newItemStack();
item.setAmount(amount);
this.enchants = enchants; this.enchants = enchants;
item = mat.newItemStack();
ItemMeta meta = item.getItemMeta(); ItemMeta meta = item.getItemMeta();
if (meta == null)
return;
if (name != null) if (name != null)
meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name)); meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name));
@ -71,6 +69,7 @@ public class JobItems {
} }
} }
item.setItemMeta(meta); item.setItemMeta(meta);
item.setAmount(amount);
item = Jobs.getReflections().setNbt(item, "JobsItemBoost", node); item = Jobs.getReflections().setNbt(item, "JobsItemBoost", node);
} catch (Throwable e) { } catch (Throwable e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -707,12 +707,6 @@ public class JobsPaymentListener implements Listener {
} }
@SuppressWarnings("unused")
@Deprecated
private Integer schedulePostDetection(final HumanEntity player, final ItemStack compareItem, final JobsPlayer jPlayer, final ItemStack resultStack) {
return schedulePostDetection(player, compareItem, jPlayer, resultStack, ActionType.CRAFT);
}
// HACK! The API doesn't allow us to easily determine the resulting number of // HACK! The API doesn't allow us to easily determine the resulting number of
// crafted items, so we're forced to compare the inventory before and after. // crafted items, so we're forced to compare the inventory before and after.
private Integer schedulePostDetection(final HumanEntity player, final ItemStack compareItem, final JobsPlayer jPlayer, final ItemStack resultStack, final ActionType type) { private Integer schedulePostDetection(final HumanEntity player, final ItemStack compareItem, final JobsPlayer jPlayer, final ItemStack resultStack, final ActionType type) {

View File

@ -347,6 +347,9 @@ command:
custom-kill: custom-kill:
info: '&eEgyéni gyilkolás' info: '&eEgyéni gyilkolás'
none: '%jobname%&c nem kap pénzt, ha játékost gyilkol.' none: '%jobname%&c nem kap pénzt, ha játékost gyilkol.'
collect:
info: '&eGyűjtés'
none: '%jobname%&c nem kap pénzt, ha gyűjtöget anyagokat.'
playerinfo: playerinfo:
help: help:
info: 'Megmutassa mennyi minden munkát fizet, és mi van egy másik játékosnál.' info: 'Megmutassa mennyi minden munkát fizet, és mi van egy másik játékosnál.'