From 3eaa54dc72f8f6ea7af7f692d99e07b5d1a60684 Mon Sep 17 00:00:00 2001 From: WiZZy Date: Tue, 26 Mar 2019 17:16:35 +0200 Subject: [PATCH] Update GlobalMethods.h --- GlobalMethods.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index 4d80668..6041291 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -14,9 +14,9 @@ enum BanMode { - BAN_ACCOUNT, - BAN_CHARACTER, - BAN_IP + BAN_ACCOUNT = 1, + BAN_CHARACTER = 2, + BAN_IP = 3 }; #endif @@ -1991,13 +1991,13 @@ namespace LuaGlobalFunctions switch (banMode) { case BAN_ACCOUNT: - sBan->BanAccount(nameOrIP, duration, reason, whoBanned); + sBan->BanAccount(nameOrIP, std::to_string(duration) + "s", reason, whoBanned); break; case BAN_CHARACTER: - sBan->BanAccountByPlayerName(nameOrIP, duration, reason, whoBanned); + sBan->BanAccountByPlayerName(nameOrIP, std::to_string(duration) + "s", reason, whoBanned); break; case BAN_IP: - sBan->BanIP(nameOrIP, duration, reason, whoBanned); + sBan->BanIP(nameOrIP, std::to_string(duration) + "s", reason, whoBanned); break; } #endif