mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
use empty
This commit is contained in:
parent
b56d077892
commit
2ef45bd7ee
@ -324,7 +324,7 @@ namespace GMGreaterThanZeroCommands {
|
||||
}
|
||||
|
||||
void Spectate(Entity* entity, const SystemAddress& sysAddr, const std::string args) {
|
||||
if (args.length() <= 0) GameMessages::SendSlashCommandFeedbackText(entity, u"No player Given");
|
||||
if (args.empty()) GameMessages::SendSlashCommandFeedbackText(entity, u"No player Given");
|
||||
auto player = PlayerManager::GetPlayer(args);
|
||||
if (!player) GameMessages::SendSlashCommandFeedbackText(entity, u"Player not found");
|
||||
GameMessages::SendSlashCommandFeedbackText(entity, u"Spectating Player");
|
||||
|
Loading…
Reference in New Issue
Block a user