Créer une Commande
Structure
@RoleCommand(key = "addon_key.roles.wild_child.command",
roleKeys = RoleBase.WILD_CHILD,
argNumbers = 1,
requiredPower = true)
public class CommandWildChild implements ICommandRole {
@Override
public void execute(WereWolfAPI game, IPlayerWW playerWW, String[] args) {
}
}
@PlayerCommand(key = "addon_key.commands.player.ww_chat.command",
descriptionKey = "addon_key.commands.player.ww_chat.description")
public class CommandWereWolfChat implements ICommand {
@Override
public void execute(WereWolfAPI game, Player player, String[] args) {
}
}Last updated