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