package com.massivecraft.factions.cmd; import com.massivecraft.factions.entity.MConf; import com.massivecraft.massivecore.MassiveException; public class CmdFactionsDocumentationPower extends FactionsCommand { // -------------------------------------------- // // CONSTRUCT // -------------------------------------------- // public CmdFactionsDocumentationPower() { } // -------------------------------------------- // // OVERRIDE // -------------------------------------------- // @Override public void perform() throws MassiveException { msg("1) All players have an amount of power ranging from %.2f to %.2f.", MConf.get().powerMin, MConf.get().powerMax); msg("2) The power of a faction is equal to the combined power of all it's members."); msg("3) Your power is %.2f", msender.getPower()); msg("4) Your faction's power is %.2f", msenderFaction.getPower()); msg("5) The amount of chunks a faction can claim is the amount power it has."); msg("6) For every hour you are online you gain %.2f power.", MConf.get().powerPerHour); msg("7) Every time you die you power is decreased by %.2f .", MConf.get().powerPerDeath*-1); if (!MConf.get().canLeaveWithNegativePower && MConf.get().powerMin < 0) { msg("8) You can't leave a faction if your power is negative."); } } }