Update AdminCommands.cs
This commit is contained in:
@@ -140,7 +140,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
[Command("team", "~m~Benutzung: ~s~/team")]
|
[Command("team", "~m~Benutzung: ~s~/team")]
|
||||||
public void CmdAdminTeam(Client player)
|
public void CmdAdminTeam(Client player)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
if (!player.GetUser()?.IsAdmin(AdminLevel.TEAM) ?? true)
|
||||||
{
|
{
|
||||||
ChatService.NotAuthorized(player);
|
ChatService.NotAuthorized(player);
|
||||||
return;
|
return;
|
||||||
@@ -296,7 +296,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
[Command("tc", "~m~Benutzung: ~s~/tc [Nachricht]", GreedyArg = true)]
|
[Command("tc", "~m~Benutzung: ~s~/tc [Nachricht]", GreedyArg = true)]
|
||||||
public void CmdTeamC(Client player, string message)
|
public void CmdTeamC(Client player, string message)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
if (!player.GetUser()?.IsAdmin(AdminLevel.TEAM) ?? true)
|
||||||
{
|
{
|
||||||
ChatService.NotAuthorized(player);
|
ChatService.NotAuthorized(player);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user