mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Add new CoreAbility API, Add BendingPlayer methods
This commit is contained in:
parent
e4fee98492
commit
ba3881d856
2 changed files with 8 additions and 2 deletions
|
@ -20,6 +20,14 @@ public abstract class AirAbility extends CoreAbility {
|
||||||
return "Air";
|
return "Air";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
@Override
|
||||||
|
public final ChatColor getElementColor() {
|
||||||
|
return getAirColor();
|
||||||
|
}
|
||||||
|
|
||||||
|
>>>>>>> Add new CoreAbility API, Add BendingPlayer methods
|
||||||
/**
|
/**
|
||||||
* Gets the AirColor from the config.
|
* Gets the AirColor from the config.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.projectkorra.projectkorra.ability.api;
|
package com.projectkorra.projectkorra.ability.api;
|
||||||
|
|
||||||
import com.projectkorra.projectkorra.SubElement;
|
|
||||||
import com.projectkorra.projectkorra.configuration.ConfigManager;
|
import com.projectkorra.projectkorra.configuration.ConfigManager;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
@ -98,7 +97,6 @@ public abstract class CoreAbility implements Ability {
|
||||||
if (playerMap.size() == 0) {
|
if (playerMap.size() == 0) {
|
||||||
classMap.remove(playerMap);
|
classMap.remove(playerMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
CoreAbility.instancesByClass.get(getClass()).remove(this);
|
CoreAbility.instancesByClass.get(getClass()).remove(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue