mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Fix IndividualProgression chat commands
This commit is contained in:
@@ -33,10 +33,10 @@ public:
|
||||
handler->SendSysMessage("Invalid progression level.");
|
||||
return false;
|
||||
}
|
||||
Player* target = player->GetConnectedPlayer();
|
||||
if (target)
|
||||
player = PlayerIdentifier::FromTargetOrSelf(handler);
|
||||
if (player && player->GetConnectedPlayer())
|
||||
{
|
||||
sIndividualProgression->UpdateProgressionState(target, static_cast<ProgressionState>(progressionLevel));
|
||||
sIndividualProgression->ForceUpdateProgressionState(player->GetConnectedPlayer(), static_cast<ProgressionState>(progressionLevel));
|
||||
handler->SendSysMessage("Progression state updated successfully");
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user