strftime(timeStr,sizeof(timeStr),"%b %d %Y at %H:%M:%S",localtime(std::addressof<consttime_t>(std::chrono::system_clock::to_time_t(last_to_expire[0]->timestamp+last_to_expire[0]->length))));
strftime(timeStr,sizeof(timeStr),"%b %d %Y at %H:%M:%S",localtime(std::addressof<consttime_t>(std::chrono::system_clock::to_time_t(last_to_expire[0]->timestamp+last_to_expire[0]->length))));
this->forceKickPlayer(player,Jupiter::StringS::Format("You were permanently banned from the server on %s for: %.*s",timeStr,last_to_expire[0]->reason.size(),last_to_expire[0]->reason.ptr()));
this->forceKickPlayer(player,Jupiter::StringS::Format("You were permanently banned from %.*s on %s for: %.*s",RenX::Server::ban_from_str.size(),RenX::Server::ban_from_str.ptr(),timeStr,last_to_expire[0]->reason.size(),last_to_expire[0]->reason.ptr()));
else
else
this->forceKickPlayer(player,Jupiter::StringS::Format("You are banned from the server until %s for: %.*s",timeStr,last_to_expire[0]->reason.size(),last_to_expire[0]->reason.ptr()));
this->forceKickPlayer(player,Jupiter::StringS::Format("You are banned from %.*s until %s for: %.*s",RenX::Server::ban_from_str.size(),RenX::Server::ban_from_str.ptr(),timeStr,last_to_expire[0]->reason.size(),last_to_expire[0]->reason.ptr()));
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are permanently banned from the server by %.*s for: %.*s",banner.size(),banner.ptr(),reason.size(),reason.ptr()));
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are permanently banned from %.*s by %.*s for: %.*s",RenX::Server::ban_from_str.size(),RenX::Server::ban_from_str.ptr(),banner.size(),banner.ptr(),reason.size(),reason.ptr()));
else
else
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are permanently banned from the server for: %.*s",reason.size(),reason.ptr()));
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are permanently banned from %.*s for: %.*s",RenX::Server::ban_from_str.size(),RenX::Server::ban_from_str.ptr(),reason.size(),reason.ptr()));
}
}
elseif(banner.isNotEmpty())
elseif(banner.isNotEmpty())
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are banned from the server by %.*s for the next %lld days, %.2d:%.2d:%.2d for: %.*s",banner.size(),banner.ptr(),static_cast<longlong>(length.count()/86400),static_cast<int>(length.count()%3600),static_cast<int>((length.count()%3600)/60),static_cast<int>(length.count()%60),reason.size(),reason.ptr()));
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are banned from %.*s by %.*s for the next %lld days, %.2d:%.2d:%.2d for: %.*s",RenX::Server::ban_from_str.size(),RenX::Server::ban_from_str.ptr(),banner.size(),banner.ptr(),static_cast<longlong>(length.count()/86400),static_cast<int>(length.count()%3600),static_cast<int>((length.count()%3600)/60),static_cast<int>(length.count()%60),reason.size(),reason.ptr()));
else
else
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are banned from the server for the next %lld days, %.2d:%.2d:%.2d for: %.*s",static_cast<longlong>(length.count()/86400),static_cast<int>(length.count()%3600),static_cast<int>((length.count()%3600)/60),static_cast<int>(length.count()%60),reason.size(),reason.ptr()));
RenX::Server::forceKickPlayer(player,Jupiter::StringS::Format("You are banned from %.*s for the next %lld days, %.2d:%.2d:%.2d for: %.*s",RenX::Server::ban_from_str.size(),RenX::Server::ban_from_str.ptr(),static_cast<longlong>(length.count()/86400),static_cast<int>(length.count()%3600),static_cast<int>((length.count()%3600)/60),static_cast<int>(length.count()%60),reason.size(),reason.ptr()));