mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
freemoney type update (#1146)
Changed freemoney command to parse 64 bit integers as opposed to 32 bit
This commit is contained in:
parent
3e3148e910
commit
11b0097488
@ -1443,7 +1443,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((chatCommand == "freemoney" && entity->GetGMLevel() >= eGameMasterLevel::DEVELOPER) && args.size() == 1) {
|
if ((chatCommand == "freemoney" && entity->GetGMLevel() >= eGameMasterLevel::DEVELOPER) && args.size() == 1) {
|
||||||
int32_t money;
|
int64_t money;
|
||||||
|
|
||||||
if (!GeneralUtils::TryParse(args[0], money)) {
|
if (!GeneralUtils::TryParse(args[0], money)) {
|
||||||
ChatPackets::SendSystemMessage(sysAddr, u"Invalid money.");
|
ChatPackets::SendSystemMessage(sysAddr, u"Invalid money.");
|
||||||
|
Loading…
Reference in New Issue
Block a user