Skip to content

Commit

Permalink
Fixed reserved slots
Browse files Browse the repository at this point in the history
  • Loading branch information
dmustanger committed Oct 11, 2016
1 parent 39896fe commit 0689229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file modified .vs/ServerTools/v14/.suo
Binary file not shown.
4 changes: 1 addition & 3 deletions ServerTools/src/ReservedSlots/ReservedSlots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ private static void OnFileChanged(object source, FileSystemEventArgs e)

public static void CheckReservedSlot(ClientInfo _cInfo)
{
bool ischecking = false;
int _playerCount = ConnectionManager.Instance.ClientCount();
if (_playerCount == API.MaxPlayers)
{
Expand All @@ -146,15 +145,14 @@ public static void CheckReservedSlot(ClientInfo _cInfo)
}
else
{
ischecking = true;
ClientInfo _playerToKick = null;
uint _itemsCrafted = 1999999999;
float _distanceWalked = 9999999999.0f;
int _level = 1000;
List<ClientInfo> _cInfoList = ConnectionManager.Instance.GetClients();
foreach (ClientInfo _cInfo1 in _cInfoList)
{
if (!dict.ContainsKey(_cInfo1.playerId) || !GameManager.Instance.adminTools.IsAdmin(_cInfo1.playerId))
if (!dict.ContainsKey(_cInfo1.playerId) && !GameManager.Instance.adminTools.IsAdmin(_cInfo1.playerId))
{
EntityPlayer _player = GameManager.Instance.World.Players.dict[_cInfo1.entityId];
if (_player.Level <= _level)
Expand Down

0 comments on commit 0689229

Please sign in to comment.