public class McMmoSupport extends APISupport
targetplugin| Constructor and Description |
|---|
McMmoSupport(TriggerReactorCore plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLevel(org.bukkit.entity.Player player,
String skillType,
int levels)
add 'levels' to target player's 'skillType'
|
void |
addXp(org.bukkit.entity.Player player,
String skillType,
int xp)
add 'xp' to the target player's 'skillType'
|
int |
cooldown(org.bukkit.entity.Player player,
String abilityType)
get cooltime of player's 'abilityType'
|
int |
level(org.bukkit.entity.Player player,
String skillType)
get current level of player's 'skillType'
|
Object |
player(String name)
get MCMMOPlayer object directly.
|
void |
removeXp(org.bukkit.entity.Player player,
String skillType,
int xp)
remove 'xp' from target player's 'skillType'
|
void |
setLevel(org.bukkit.entity.Player player,
String skillType,
int level)
set level of target player's 'skillType' to 'level'
|
double |
xp(org.bukkit.entity.Player player,
String skillType)
get current xp of player's 'skillType'
|
double |
xpRemain(org.bukkit.entity.Player player,
String skillType)
get xp left until level up of 'skillType' for player.
|
addSharedVars, getSharedVars, initaddSharedVarpublic McMmoSupport(TriggerReactorCore plugin)
public Object player(String name)
name - public int level(org.bukkit.entity.Player player,
String skillType)
player - skillType - public void setLevel(org.bukkit.entity.Player player,
String skillType,
int level)
player - skillType - level - public void addLevel(org.bukkit.entity.Player player,
String skillType,
int levels)
player - skillType - levels - public double xp(org.bukkit.entity.Player player,
String skillType)
player - skillType - public void addXp(org.bukkit.entity.Player player,
String skillType,
int xp)
player - skillType - xp - public void removeXp(org.bukkit.entity.Player player,
String skillType,
int xp)
player - skillType - xp - public double xpRemain(org.bukkit.entity.Player player,
String skillType)
player - skillType - public int cooldown(org.bukkit.entity.Player player,
String abilityType)
player - abilityType -