From cc50428646143d9f62a1562a8c1df239bfa1e601 Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 4 Feb 2013 11:28:21 -0500 Subject: [PATCH] Remove old code from PlayerProfile. --- .../nossr50/datatypes/PlayerProfile.java | 94 ------------------- 1 file changed, 94 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index de49ccdc7..dcee3dd80 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -907,100 +907,6 @@ public class PlayerProfile { skills.put(skillType, skills.get(skillType) + newValue); } - // /** - // * Adds Xp to the player, doesn't calculate for Xp Rate - // * - // * @param skillType The skill to add Xp to - // * @param newValue The amount of Xp to add - // */ - // public void addXpOverride(SkillType skillType, int newValue) { - // if (skillType.equals(SkillType.ALL)) { - // for (SkillType x : SkillType.values()) { - // if (x.equals(SkillType.ALL)) { - // continue; - // } - // - // mcMMO.p.getServer().getPluginManager().callEvent(new McMMOPlayerXpGainEvent(player, x, newValue)); - // skillsXp.put(x, skillsXp.get(x) + newValue); - // } - // } - // else { - // mcMMO.p.getServer().getPluginManager().callEvent(new McMMOPlayerXpGainEvent(player, skillType, newValue)); - // skillsXp.put(skillType, skillsXp.get(skillType) + newValue); - // spoutHud.setLastGained(skillType); - // } - // } - - // /** - // * Adds Xp to the player, this ignores skill modifiers. - // * - // * @param skillType The skill to add Xp to - // * @param newValue The amount of Xp to add - // */ - // public void addXpOverrideBonus(SkillType skillType, int newValue) { - // int xp = newValue * Config.getInstance().xpGainMultiplier; - // addXpOverride(skillType, xp); - // } - - // /** - // * Adds Xp to the player, this is affected by skill modifiers and Xp Rate and Permissions - // * - // * @param skillType The skill to add Xp to - // * @param newvalue The amount of Xp to add - // */ - // public void addXp(SkillType skillType, int newValue) { - // if (player.getGameMode().equals(GameMode.CREATIVE)) { - // return; - // } - // - // double bonusModifier = 0; - // - // if (inParty()) { - // bonusModifier = partyModifier(skillType); - // } - // - // int xp = (int) (newValue / skillType.getXpModifier()) * Config.getInstance().xpGainMultiplier; - // - // if (bonusModifier > 0) { - // if (bonusModifier >= 2) { - // bonusModifier = 2; - // } - // - // double trueBonus = bonusModifier * xp; - // xp += trueBonus; - // } - // - // if (Config.getInstance().getToolModsEnabled()) { - // ItemStack item = player.getItemInHand(); - // CustomTool tool = ModChecks.getToolFromItemStack(item); - // - // if (tool != null) { - // xp = (int) (xp * tool.getXpMultiplier()); - // } - // } - // - // //TODO: Can we make this so we do perks by doing "mcmmo.perks.xp.[multiplier]" ? - // if (player.hasPermission("mcmmo.perks.xp.quadruple")) { - // xp = xp * 4; - // } - // else if (player.hasPermission("mcmmo.perks.xp.triple")) { - // xp = xp * 3; - // } - // else if (player.hasPermission("mcmmo.perks.xp.150percentboost")) { - // xp = (int) (xp * 2.5); - // } - // else if (player.hasPermission("mcmmo.perks.xp.double")) { - // xp = xp * 2; - // } - // else if (player.hasPermission("mcmmo.perks.xp.50percentboost")) { - // xp = (int) (xp * 1.5); - // } - // - // mcMMO.p.getServer().getPluginManager().callEvent(new McMMOPlayerXpGainEvent(player, skillType, xp)); - // skillsXp.put(skillType, skillsXp.get(skillType) + xp); - // spoutHud.setLastGained(skillType); - // } - /** * Remove Xp from a skill. *