/// <summary> /// Add or remove a player from the OP list /// </summary> /// <param name="op">True to OP the this.Name, false to de-OP him</param> public void SetOp(bool op) { PlayerActions.SetPlayerOp(Name, op); }
/// <summary> /// Set the gamemode for a given player /// </summary> /// <param name="mode">The gamemode to set</param> public void SetGameMode(MinecraftGameMode mode) { PlayerActions.SetGameMode(mode, Name); }
/// <summary> /// Add or remove a player from the op list /// </summary> /// <param name="whitelist">True to op the this.Name, false to remove him from the op</param> public void SetWhitelist(bool whitelist) { PlayerActions.SetPlayerWhitelist(Name, whitelist); }
/// <summary> /// Pardon a banned ip /// </summary> /// <param name="ip">the ip to pardon</param> public void PardonIp(string ip) { PlayerActions.PardonIp(Ip); }
/// <summary> /// Pardon a banned player /// </summary> public void Pardon() { PlayerActions.PardonPlayer(Name); }
/// <summary> /// Ban an ip /// </summary> public void BanIp() { PlayerActions.BanIp(Ip); }
/// <summary> /// Ban a player /// </summary> /// <param name="reason">Reason for the ban</param> public void Ban(string reason = "") { PlayerActions.BanPlayer(Name, reason); }
/// <summary> /// Kick a player /// </summary> /// <param name="reason">Reason for the kick</param> public void Kick(string reason = "") { PlayerActions.KickPlayer(Name, reason); }