diff --git a/MinecraftClient/ChatBots/RemoteControl.cs b/MinecraftClient/ChatBots/RemoteControl.cs index 818bab6f..9f12742c 100644 --- a/MinecraftClient/ChatBots/RemoteControl.cs +++ b/MinecraftClient/ChatBots/RemoteControl.cs @@ -24,7 +24,9 @@ namespace MinecraftClient.ChatBots SendPrivateMessage(sender, response); } } - else if (Settings.RemoteCtrl_AutoTpaccept && isTeleportRequest(text, ref sender) && Settings.Bots_Owners.Contains(sender.ToLower())) + else if (Settings.RemoteCtrl_AutoTpaccept + && isTeleportRequest(text, ref sender) + && (Settings.RemoteCtrl_AutoTpaccept_Everyone || Settings.Bots_Owners.Contains(sender.ToLower()))) { SendText("/tpaccept"); } diff --git a/MinecraftClient/Settings.cs b/MinecraftClient/Settings.cs index 5b22bc90..d97d531a 100644 --- a/MinecraftClient/Settings.cs +++ b/MinecraftClient/Settings.cs @@ -86,6 +86,7 @@ namespace MinecraftClient //Remote Control public static bool RemoteCtrl_Enabled = false; public static bool RemoteCtrl_AutoTpaccept = true; + public static bool RemoteCtrl_AutoTpaccept_Everyone = false; //Custom app variables and Minecraft accounts private static Dictionary AppVars = new Dictionary(); @@ -271,6 +272,7 @@ namespace MinecraftClient { case "enabled": RemoteCtrl_Enabled = str2bool(argValue); break; case "autotpaccept": RemoteCtrl_AutoTpaccept = str2bool(argValue); break; + case "tpaccepteveryone": RemoteCtrl_AutoTpaccept_Everyone = str2bool(argValue); break; } break; @@ -399,7 +401,8 @@ namespace MinecraftClient + "\r\n" + "[RemoteControl]\r\n" + "enabled=false\r\n" - + "autotpaccept=true\r\n", Encoding.UTF8); + + "autotpaccept=true\r\n" + + "tpaccepteveryone=false\r\n", Encoding.UTF8); } public static int str2int(string str) { try { return Convert.ToInt32(str); } catch { return 0; } } diff --git a/MinecraftClient/config/README.txt b/MinecraftClient/config/README.txt index 2a07bdd2..34d56d80 100644 --- a/MinecraftClient/config/README.txt +++ b/MinecraftClient/config/README.txt @@ -161,7 +161,8 @@ When the remote control bot is enabled, you can send commands to your bot using Don't forget to add your username in botowners INI setting if you want it to obey. To perform a command simply do the following: /tell Where is an internal command as described in "Internal commands" section. -If enabled, remote control will auto-accept /tpa and /tpahere requests from the bot owners. +Remote control system can auto-accept /tpa and /tpahere requests from the bot owners. +Auto-accept can be disabled or extended to requests from anyone in remote control configuration. ========================= Disclaimer & Last words