allow turning off secret commands

This commit is contained in:
UnknownShadow200 2017-04-29 08:19:04 +10:00
parent f2d3000ee7
commit f2e1747573
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@ namespace MCGalaxy.Core {
internal static class ChatHandler {
internal static void HandleCommand(string cmd, Player p, string message) {
if (!Server.CoreSecretCommands) return;
//DO NOT REMOVE THE TWO COMMANDS BELOW, /PONY AND /RAINBOWDASHLIKESCOOLTHINGS. -EricKilla
if (cmd == "pony") {
if (p.ponycount < 2) {

View File

@ -249,6 +249,8 @@ namespace MCGalaxy {
[ConfigBool("report-back", "Error handling", null, true)]
public static bool reportBack = true;
[ConfigBool("core-secret-commands", "Other", null, true)]
public static bool CoreSecretCommands = true;
[ConfigBool("irc", "IRC bot", null, false)]
public static bool irc = false;