示例#1
0
 /// <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);
 }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <summary>
 ///     Pardon a banned ip
 /// </summary>
 /// <param name="ip">the ip to pardon</param>
 public void PardonIp(string ip)
 {
     PlayerActions.PardonIp(Ip);
 }
示例#5
0
 /// <summary>
 ///     Pardon a banned player
 /// </summary>
 public void Pardon()
 {
     PlayerActions.PardonPlayer(Name);
 }
示例#6
0
 /// <summary>
 ///     Ban an ip
 /// </summary>
 public void BanIp()
 {
     PlayerActions.BanIp(Ip);
 }
示例#7
0
 /// <summary>
 ///     Ban a player
 /// </summary>
 /// <param name="reason">Reason for the ban</param>
 public void Ban(string reason = "")
 {
     PlayerActions.BanPlayer(Name, reason);
 }
示例#8
0
 /// <summary>
 ///     Kick a player
 /// </summary>
 /// <param name="reason">Reason for the kick</param>
 public void Kick(string reason = "")
 {
     PlayerActions.KickPlayer(Name, reason);
 }