mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-06 04:42:57 -08:00
Comment out permission checks
This commit is contained in:
@@ -73,21 +73,22 @@ public class AutoRTD(IRTDRewarder rewarder, IAutoRTDLocale locale,
|
||||
public void Command_AutoRTD(CCSPlayerController? executor, CommandInfo info) {
|
||||
if (executor == null) return;
|
||||
|
||||
if (RTDCommand.CV_RTD_ENABLED.Value == -1) {
|
||||
rtdLocale.RollingDisabled().ToChat(executor);
|
||||
return;
|
||||
}
|
||||
// if (RTDCommand.CV_RTD_ENABLED.Value == -1) {
|
||||
// rtdLocale.RollingDisabled().ToChat(executor);
|
||||
// return;
|
||||
// }
|
||||
|
||||
rtdLocale.DebugPrintMessage($"You are bypassing permission checks. Do NOT let this go into release. Remove the commented lines.").ToChat(executor);
|
||||
// if (!AdminManager.PlayerHasPermissions(executor, CV_AUTORTD_FLAG.Value)) {
|
||||
// generic.NoPermissionMessage(CV_AUTORTD_FLAG.Value).ToChat(executor);
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (cookie == null) {
|
||||
locale.TogglingNotEnabled.ToChat(executor);
|
||||
return;
|
||||
}
|
||||
// if (cookie == null) {
|
||||
// locale.TogglingNotEnabled.ToChat(executor);
|
||||
// return;
|
||||
// }
|
||||
|
||||
rtdLocale.DebugPrintMessage($"You are bypassing important checks. Do NOT let this go into release. Remove the commented lines.").ToChat(executor);
|
||||
|
||||
var steam = executor.SteamID;
|
||||
Task.Run(async () => {
|
||||
@@ -103,11 +104,7 @@ public class AutoRTD(IRTDRewarder rewarder, IAutoRTDLocale locale,
|
||||
var enable = value is not (null or "Y");
|
||||
|
||||
// Debugging enable value
|
||||
if (enable != null) {
|
||||
rtdLocale.DebugPrintMessage($"Enable was: {enable}!").ToChat(executor);
|
||||
} else {
|
||||
rtdLocale.DebugPrintMessage($"Enable was: null!").ToChat(executor);
|
||||
}
|
||||
rtdLocale.DebugPrintMessage($"Enable was: {enable}!").ToChat(executor);
|
||||
|
||||
await cookie.Set(steam, enable ? "Y" : "N");
|
||||
await Server.NextFrameAsync(() => {
|
||||
|
||||
Reference in New Issue
Block a user