r259 bugfixes and patches. We still have some work to do here.

anvil_rework
sigonasr2 11 years ago
parent 303e6d9739
commit 06d924c5bc
  1. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main.class
  2. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerBuffData.class
  3. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$1.class
  4. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$2.class
  5. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$3.class
  6. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$4.class
  7. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$5.class
  8. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$6.class
  9. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class
  10. 2
      BankEconomyMod/src/me/kaZep/Base/Main.java
  11. 5
      BankEconomyMod/src/me/kaZep/Base/PlayerBuffData.java
  12. 912
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -642,7 +642,7 @@ public class Main extends JavaPlugin
Enchanter_job.setJobName("Enchanter");
Enchanter_job.setJobDescription("An enchanter's job is to enchant items in order to make them more powerful and useful for everyday tasks.");
Enchanter_job.setAction(0, "ENCHANT");
Enchanter_job.setExp(50, 40, 8, 1.08);
Enchanter_job.setExp(90, 50, 15, 1.08);
Enchanter_job.addExtraData("Each level of enchantment multiplies your income and exp gain exponentially.");
Enchanter_job.addExtraData("Ex. If PROTECTION gives $0.08 and 4XP, PROTECTION III would give you x9 exp and money: $0.72 and 36XP.");
Enchanter_job.addExtraData("");

@ -11,6 +11,7 @@ import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@ -149,9 +150,9 @@ public class PlayerBuffData {
} catch (ConcurrentModificationException ex_e) {
Bukkit.getLogger().warning("Potion Effect Collection not accessible while finalizing player speed.");
}
if (/*!hasabsorption && */this.plugin.getAccountsConfig().getInt(p.getName()+".stats.stat4")>0) {
if (!hasabsorption && this.plugin.getAccountsConfig().getInt(p.getName()+".stats.stat4")>0) {
p.removePotionEffect(PotionEffectType.ABSORPTION);
p.addPotionEffect(new PotionEffect(PotionEffectType.ABSORPTION,3610,this.plugin.getStatBonus(3, this.plugin.getAccountsConfig().getInt(p.getName()+".stats.stat4")/3)/4-1));
p.addPotionEffect(new PotionEffect(PotionEffectType.ABSORPTION,3590,this.plugin.getStatBonus(3, this.plugin.getAccountsConfig().getInt(p.getName()+".stats.stat4")/3)/4-1));
//p.sendMessage("Absorption level is "+(this.plugin.getStatBonus(3, this.plugin.getAccountsConfig().getInt(p.getName()+".stats.stat4")/4)/4-1));
}
if (this.plugin.getAccountsConfig().getInt(p.getName()+".stats.stat2")>0) {

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save