formatted code
This commit is contained in:
@@ -49,7 +49,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
[ForeignKey("Ban")]
|
||||
public int? BanId { get; set; }
|
||||
public Ban Ban { get; set; }
|
||||
|
||||
|
||||
public int? FactionId { get; set; }
|
||||
public Faction Faction { get; set; }
|
||||
|
||||
@@ -60,6 +60,8 @@ namespace ReallifeGamemode.Server.Entities
|
||||
|
||||
public Group Group { get; set; }
|
||||
|
||||
public GroupRank GroupRank { get; set; }
|
||||
|
||||
public FactionRank GetFactionRank()
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
@@ -97,7 +99,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
banUser = new Ban { UserId = this.Id, Reason = reason, BannedBy = admin.Name, Applied = unixTimestamp, UntilDateTime = unixTimestamp };
|
||||
|
||||
this.Client?.Kick();
|
||||
|
||||
|
||||
mins--;
|
||||
}
|
||||
else
|
||||
@@ -128,7 +130,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
|
||||
public List<UserItem> GetItems()
|
||||
{
|
||||
using(var dbContext = new DatabaseContext())
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
return dbContext.UserItems.ToList().FindAll(u => u.UserId == this.Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user