[Commands] Cleanup #pvp Command. (#1800)

- Cleanup messages and logic.
This commit is contained in:
Kinglykrab
2021-11-21 10:12:23 -05:00
committed by GitHub
parent b9214bfdee
commit 6a42639386
3 changed files with 24 additions and 15 deletions
+5 -4
View File
@@ -2613,10 +2613,11 @@ void Client::SetPVP(bool toggle, bool message) {
m_pp.pvp = toggle ? 1 : 0;
if (message) {
if(GetPVP())
this->MessageString(Chat::Shout,PVP_ON);
else
Message(Chat::Red, "You no longer follow the ways of discord.");
if(GetPVP()) {
MessageString(Chat::Shout, PVP_ON);
} else {
Message(Chat::Shout, "You now follow the ways of Order.");
}
}
SendAppearancePacket(AT_PVP, GetPVP());