Issue
Some plugins using the Covalence commands and IPlayer are running a check of IPlayer.IsAdmin to check if user is an admin. But this value is set to false for the server. This causes console covalence commands to fail.
Platform
This is a carbon specific issue. It works fine on Oxide.
Extra info
Can be reproduced with the following code:
using Oxide.Core.Libraries.Covalence;
using UnityEngine;
namespace Oxide.Plugins
{
[Info("Test", "mjmfighter", "1.0.0")]
[Description("Test plugin")]
public class Test : CovalencePlugin
{
private void OnServerInitialized()
{
AddCovalenceCommand("testiplayer", nameof(Cmd));
}
private void Cmd(IPlayer player, string command, string[] args)
{
Puts($"Is Server: {player.IsServer}");
Puts($"Is Admin: {player.IsAdmin}");
}
}
}
On oxide this will print:
testiplayer
[Test] Is Server: True
[Test] Is Admin: True
Carbon will print:
testiplayer
[Test] Is Server: True
[Test] Is Admin: False