Browse Source

Remove old code from PlayerProfile.

GJ 12 years ago
parent
commit
cc50428646
1 changed files with 0 additions and 94 deletions
  1. 0 94
      src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java

+ 0 - 94
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.
      *