Example #1
0
 internal Team(MinecraftServer server, ScoreboardManager scoreboardManager, string name,
               string displayName, bool allowFriendlyFire, string playerPrefix, string playerSuffix)
 {
     Server            = server;
     ScoreboardManager = scoreboardManager;
     Name = name;
     _allowFriendlyFire = allowFriendlyFire;
     _displayName       = displayName;
     _playerPrefix      = playerPrefix;
     _playerSuffix      = playerSuffix;
     Players            = new List <string>();
 }
Example #2
0
 internal Team(MinecraftServer server, ScoreboardManager scoreboardManager, string name, 
     string displayName, bool allowFriendlyFire, string playerPrefix, string playerSuffix)
 {
     Server = server;
     ScoreboardManager = scoreboardManager;
     Name = name;
     _allowFriendlyFire = allowFriendlyFire;
     _displayName = displayName;
     _playerPrefix = playerPrefix;
     _playerSuffix = playerSuffix;
     Players = new List<string>();
 }
Example #3
0
 /// <summary>
 /// Creates a new Minecraft server to listen on the requested
 /// endpoint.
 /// </summary>
 public MinecraftServer(IPEndPoint endPoint, ServerSettings settings)
 {
     Settings = settings;
     // Initialize variables
     Clients         = new List <MinecraftClient>();
     Levels          = new List <Level>();
     LogProviders    = new List <ILogProvider>();
     PluginChannels  = new Dictionary <string, PluginChannel>();
     EntityManager   = new EntityManager(this);
     WeatherManagers = new List <WeatherManager>();
     // Bind socket
     Listener    = new TcpListener(endPoint);
     NetworkLock = new object();
     World.RecreateLightIndex();
     ScoreboardManager = new ScoreboardManager(this);
 }
Example #4
0
 /// <summary>
 /// Creates a new Minecraft server to listen on the requested
 /// endpoint.
 /// </summary>
 public MinecraftServer(IPEndPoint endPoint, ServerSettings settings)
 {
     Settings = settings;
     // Initialize variables
     Clients = new List<MinecraftClient>();
     Levels = new List<Level>();
     LogProviders = new List<ILogProvider>();
     PluginChannels = new Dictionary<string, PluginChannel>();
     EntityManager = new EntityManager(this);
     WeatherManagers = new List<WeatherManager>();
     // Bind socket
     Listener = new TcpListener(endPoint);
     NetworkLock = new object();
     World.RecreateLightIndex();
     ScoreboardManager = new ScoreboardManager(this);
 }