Иконка ресурса

FREE ConnectionFix : 1.0.0 1.0.0

Нет прав для скачивания
C#:
    using System;
    using System.Linq;
    using System.Collections.Generic;
    using UnityEngine;
    using Network;
    
     namespace Oxide.Plugins
    {
        [Info("ConnectionFix", "Zirper", "1.0.0")]
        public class ConnectionFix: RustPlugin 
        {
            private List<BasePlayer> Admin = new List<BasePlayer>();
            
            void Loaded()
            {
                permission.RegisterPermission("ConnectionFix.use", this);
            }
            
            private void OnServerInitialized()
            {
                Server.Command("secure 0");
                Server.Command("encryption 1");
            }
            
            void OnClientAuth(Connection connection)
            {
                NextTick(() =>
                {
                    if (BasePlayer.FindByID(connection.userid) != null)
                        BasePlayer.FindByID(connection.userid).OnDisconnected();
                    if (ConnectionAuth.m_AuthConnection.Any((Connection item) => item.userid == connection.userid))
                        ConnectionAuth.m_AuthConnection.Remove(connection);
                });
            }
        }
    }

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок

Другие ресурсы пользователя 15FPS

Сверху