bank account refactor

This commit is contained in:
hydrant
2020-03-15 21:33:04 +01:00
parent 75e26b8e8a
commit 92c054c90c
30 changed files with 2088 additions and 300 deletions

View File

@@ -2,15 +2,19 @@
using System.Collections.Generic;
using System.Text;
using ReallifeGamemode.Server.Core.API;
using ReallifeGamemode.Server.Core.Commands.User;
using ReallifeGamemode.Server.Core.Extensions;
using ReallifeGamemode.Server.Types;
namespace ReallifeGamemode.Server.Core.Commands.Admin
{
abstract class AdminCommand : Command
abstract class AdminCommand : UserCommand
{
protected abstract AdminLevel AdminLevel { get; }
public override bool CanExecute(IPlayer player)
{
throw new NotImplementedException();
return base.CanExecute(player) && player.IsAdmin(AdminLevel, GetDbContext());
}
}
}