mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
allow turning off secret commands
This commit is contained in:
parent
f2d3000ee7
commit
f2e1747573
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user