Search in sources :

Example 6 with TotalFreedomMod

use of me.totalfreedom.totalfreedommod.TotalFreedomMod in project TotalFreedomMod by TotalFreedom.

the class Admin method setActive.

public void setActive(boolean active) {
    this.active = active;
    final TotalFreedomMod plugin = TotalFreedomMod.plugin();
    if (!active) {
        if (getRank().isAtLeast(Rank.TELNET_ADMIN)) {
            if (plugin.btb != null) {
                plugin.btb.killTelnetSessions(getName());
            }
        }
        plugin.lv.updateLogsRegistration(null, getName(), LogsRegistrationMode.DELETE);
    }
}
Also used : TotalFreedomMod(me.totalfreedom.totalfreedommod.TotalFreedomMod)

Aggregations

TotalFreedomMod (me.totalfreedom.totalfreedommod.TotalFreedomMod)6 BukkitRunnable (org.bukkit.scheduler.BukkitRunnable)5