상속: IPlayerExtendedInfo
예제 #1
0
파일: Player.cs 프로젝트: txdv/sharpmod
        private static void ResolvedPrivileges(PlayerInfo pi, Privileges priv)
        {
            Player player = Player.FindByUserId(pi.UserId);

            // Player isn't in the server any more, just stop it.
            if (player == null) {
                return;
            }

            OnAssignPrivileges(player, priv == null ? player.Privileges : priv);
        }
예제 #2
0
파일: Player.cs 프로젝트: txdv/sharpmod
        internal static void OnAssignPrivileges(Player player, Privileges privileges)
        {
            player.Privileges = privileges;
            var args = new AssignPrivilegesEventArgs(player);
            OnAssignPrivileges(args);
            player.OnPlayerAssignPrivileges(args);

            PlayerInfo pi = new PlayerInfo(player);

            SharpMod.Database.GetActiveBan(pi, ResolvedBans);
        }
예제 #3
0
파일: Database.cs 프로젝트: txdv/sharpmod
 public BanInfo(Player admin, Player target, TimeSpan duration, string reason)
     : base(admin)
 {
     // PlayerAuthId = target.AuthID;
     Player = new PlayerInfo(target);
     Duration     = duration;
     Reason       = reason;
 }
예제 #4
0
파일: Player.cs 프로젝트: txdv/sharpmod
        public void ReloadPrivileges()
        {
            PlayerInfo pi = new PlayerInfo(this);

            SharpMod.Database.LoadPrivileges(pi, delegate (Privileges priv) {
                ResolvedPrivileges(pi, priv);
            });
        }
예제 #5
0
파일: Database.cs 프로젝트: txdv/sharpmod
 public AdminCommandInfo(PlayerInfo admin)
     : this()
 {
     Admin = admin;
 }