mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Fix canBend NPE & IceBullet
This commit is contained in:
parent
a9508f6ac2
commit
20b7cf7e9d
3 changed files with 4 additions and 3 deletions
|
@ -285,7 +285,9 @@ public class GeneralMethods {
|
||||||
Player p = Bukkit.getPlayer(player);
|
Player p = Bukkit.getPlayer(player);
|
||||||
if (bPlayer == null)
|
if (bPlayer == null)
|
||||||
return false;
|
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;
|
return false;
|
||||||
if (Commands.isToggledForAll)
|
if (Commands.isToggledForAll)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -136,7 +136,6 @@ public class ComboManager {
|
||||||
iceBullet.add(new AbilityInformation("WaterBubble", ClickType.SHIFT_DOWN));
|
iceBullet.add(new AbilityInformation("WaterBubble", ClickType.SHIFT_DOWN));
|
||||||
iceBullet.add(new AbilityInformation("WaterBubble", ClickType.SHIFT_UP));
|
iceBullet.add(new AbilityInformation("WaterBubble", ClickType.SHIFT_UP));
|
||||||
iceBullet.add(new AbilityInformation("IceBlast", ClickType.SHIFT_DOWN));
|
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));
|
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.");
|
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");
|
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.Range", 12);
|
||||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.MaxShots", 30);
|
config.addDefault("Abilities.Water.WaterCombo.IceBullet.MaxShots", 30);
|
||||||
config.addDefault("Abilities.Water.WaterCombo.IceBullet.AnimationSpeed", 1);
|
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.Water.WaterCombo.IceBullet.Cooldown", 10000);
|
||||||
|
|
||||||
config.addDefault("Abilities.Earth.Passive.Duration", 2500);
|
config.addDefault("Abilities.Earth.Passive.Duration", 2500);
|
||||||
|
|
Loading…
Reference in a new issue