Fixes most commands.

This commit is contained in:
hondacrx
2022-06-11 21:09:48 -04:00
parent 130444d893
commit e0025794a5
31 changed files with 1275 additions and 928 deletions
@@ -29,10 +29,8 @@ namespace Game.Chat
class InstanceCommands
{
[Command("getbossstate", RBACPermissions.CommandInstanceGetBossState)]
static bool HandleInstanceGetBossStateCommand(CommandHandler handler, uint encounterId, string playerName)
static bool HandleInstanceGetBossStateCommand(CommandHandler handler, uint encounterId, PlayerIdentifier player)
{
var player = PlayerIdentifier.ParseFromString(playerName);
// Character name must be provided when using this from console.
if (player == null || handler.GetSession() == null)
{
@@ -140,10 +138,8 @@ namespace Game.Chat
}
[Command("setbossstate", RBACPermissions.CommandInstanceSetBossState)]
static bool HandleInstanceSetBossStateCommand(CommandHandler handler, uint encounterId, EncounterState state, string playerName)
static bool HandleInstanceSetBossStateCommand(CommandHandler handler, uint encounterId, EncounterState state, PlayerIdentifier player)
{
var player = PlayerIdentifier.ParseFromString(playerName);
// Character name must be provided when using this from console.
if (player == null || handler.GetSession() == null)
{