24 lines
893 B
C#
24 lines
893 B
C#
|
|
|
|
namespace GameServer;
|
|
|
|
[ChatCommandAttribute("resetclaim", typeof(ChatCommandResetClaim), AuthAdminLevelType.Developer, AuthAdminLevelType.GmNormal, AuthAdminLevelType.GmSuper)]
|
|
internal class ChatCommandResetClaim : ChatCommandBase
|
|
{
|
|
public override async Task invoke(Player player, string token, string[] args)
|
|
{
|
|
var claim_action = player.getEntityAction<ClaimAction>();
|
|
|
|
await claim_action.cheatClaimReset();
|
|
}
|
|
}
|
|
|
|
[ChatCommandAttribute("claimupdaterewardable", typeof(ChatCommandRewardClaim), AuthAdminLevelType.Developer, AuthAdminLevelType.GmNormal, AuthAdminLevelType.GmSuper)]
|
|
internal class ChatCommandRewardClaim : ChatCommandBase
|
|
{
|
|
public override async Task invoke(Player player, string token, string[] args)
|
|
{
|
|
var claim_action = player.getEntityAction<ClaimAction>();
|
|
await claim_action.cheatClaimUpdateRewardable();
|
|
}
|
|
} |