Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PlayerStatsMenu {
- private final ExodusPlayerStats plugin;
- public PlayerStatsMenu(final ExodusPlayerStats plugin) {
- this.plugin = plugin;
- }
- public Inventory statsMenu(Player player) {
- PlaceholderReplacer loreReplacer = new PlaceholderReplacer();
- loreReplacer.addPlaceholder("%player_kills%", Integer.toString(plugin.statManager.getStat(player, Statistic.PLAYER_KILLS)));
- loreReplacer.addPlaceholder("%deaths%", Integer.toString(plugin.statManager.getStat(player, Statistic.DEATHS)));
- loreReplacer.addPlaceholder("%mob_kills%", Integer.toString(plugin.statManager.getStat(player, Statistic.MOB_KILLS)));
- loreReplacer.addPlaceholder("%blocks_broken%", "0");
- loreReplacer.addPlaceholder("%sugarcane_mined%","0");
- loreReplacer.addPlaceholder("%cactus_mined%", Integer.toString(plugin.statManager.getBlockStat(player, Material.CACTUS, Statistic.MINE_BLOCK)));
- loreReplacer.addPlaceholder("%damage_dealt%", Integer.toString(plugin.statManager.getStat(player, Statistic.DAMAGE_DEALT)));
- loreReplacer.addPlaceholder("%damage_received%", Integer.toString(plugin.statManager.getStat(player, Statistic.DAMAGE_TAKEN)));
- return Commons.getInstance().getUtils().getAM(plugin.getMenuConfig(), "Menus.STATS-MENU", player, loreReplacer);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement