SteamMinecraftDataEventArgs class used to send updated Minecraft Data to event listeners.
Inheritance: System.EventArgs
Esempio n. 1
0
 private void UpdateMinecraftdata(SteamMinecraftDataEventArgs e)
 {
     _mcServerName = e.ServerName;
     _mcServerAddress = e.ServerAddress;
     _mcServerPort = e.ServerPort;
     _mcServerPlayers = e.Players;
     _mcServerMaxPlayers = e.MaxPlayers;
     _log.Info("Updated Minecraft data!");
 }
Esempio n. 2
0
		/// <summary>
		/// Method called to update Minecraft data and broadcast it to any event listeners.
		/// </summary>
		/// <param name="e">The <see cref="SteamMinecraftDataEventArgs" /> containing the data.</param>
		public static void UpdateMinecraftData(SteamMinecraftDataEventArgs e)
		{
			if (OnMinecraftData == null)
				return;
			OnMinecraftData(e);
		}
Esempio n. 3
0
 /// <summary>
 /// Method called to update Minecraft data and broadcast it to any event listeners.
 /// </summary>
 /// <param name="e">The <see cref="SteamMinecraftDataEventArgs" /> containing the data.</param>
 public static void UpdateMinecraftData(SteamMinecraftDataEventArgs e)
 {
     if (OnMinecraftData == null)
         return;
     OnMinecraftData(e);
 }