mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Merge pull request #258 from OmniCypher-/master
Fix canBend NPE & IceBullet
This commit is contained in:
commit
11aa377ede
3 changed files with 4 additions and 3 deletions
|
@ -285,7 +285,9 @@ public class GeneralMethods {
|
|||
Player p = Bukkit.getPlayer(player);
|
||||
if (bPlayer == null)
|
||||
return false;
|
||||
if (plugin.getConfig().getStringList("Properties.DisabledWorlds") != null && plugin.getConfig().getStringList("Properties.DisabledWorlds").contains(p.getWorld().getName()))
|
||||
if (p == null)
|
||||
return false;
|
||||
if (plugin.getConfig().getStringList("Properties.DisabledWorlds") != null && p.getWorld() != null && plugin.getConfig().getStringList("Properties.DisabledWorlds").contains(p.getWorld().getName()))
|
||||
return false;
|
||||
if (Commands.isToggledForAll)
|
||||
return false;
|
||||
|
|
|
@ -136,7 +136,6 @@ public class ComboManager {
|
|||
iceBullet.add(new AbilityInformation("WaterBubble", ClickType.SHIFT_DOWN));
|
||||
iceBullet.add(new AbilityInformation("WaterBubble", ClickType.SHIFT_UP));
|
||||
iceBullet.add(new AbilityInformation("IceBlast", ClickType.SHIFT_DOWN));
|
||||
iceBullet.add(new AbilityInformation("IceBlast", ClickType.LEFT_CLICK));
|
||||
comboAbilityList.put("IceBullet", new ComboAbility("IceBullet", iceBullet, WaterCombo.class));
|
||||
descriptions.put("IceBullet", "Using a large cavern of ice, you can punch ice shards at your opponent causing moderate damage. To rapid fire, you must alternate between Left clicking and right clicking with IceBlast.");
|
||||
instructions.put("IceBullet", "WaterBubble (Tap Shift) > IceBlast (Hold Shift) > IceBlast (Left Click) > Wait for ice to Form > Then alternate between Left and Right click with IceBlast");
|
||||
|
|
|
@ -467,7 +467,7 @@ public class ConfigManager {
|
|||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.Range", 12);
|
||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.MaxShots", 30);
|
||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.AnimationSpeed", 1);
|
||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.ShootTime", 5000);
|
||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.ShootTime", 10000);
|
||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.Cooldown", 10000);
|
||||
|
||||
config.addDefault("Abilities.Earth.Passive.Duration", 2500);
|
||||
|
|
Loading…
Reference in a new issue