Boolean for whether world changes are shown on IRC. (Thanks venom983)

This commit is contained in:
UnknownShadow200 2016-06-30 13:38:25 +10:00
parent 2bc639abd8
commit 9dd55616ee
2 changed files with 5 additions and 4 deletions

View File

@ -185,15 +185,14 @@ namespace MCGalaxy {
msg = p.ColoredName + " %Sis now a &aJ&bo&ck&5e&9r%S";
else if (action == PlayerAction.Unjoker)
msg = p.ColoredName + " %Sis no longer a &aJ&bo&ck&5e&9r%S";
else if (action == PlayerAction.JoinWorld)
msg = p.ColoredName + " %Swent to &8" + message;
else if (action == PlayerAction.Me)
msg = "*" + p.DisplayName + " " + message;
else if (action == PlayerAction.Review)
msg = p.ColoredName + " %Sis requesting a review.";
else if (action == PlayerAction.JoinWorld && Server.ircShowWorldChanges)
msg = p.ColoredName + " %Swent to &8" + message;
if (msg != null)
Say(msg, stealth);
if (msg != null) Say(msg, stealth);
}
void Player_PlayerDisconnect(Player p, string reason) {

View File

@ -218,6 +218,8 @@ namespace MCGalaxy
public static bool irc = false;
[ConfigBool("irc-player-titles", "IRC bot", null, true)]
public static bool ircPlayerTitles = true;
[ConfigBool("irc-show-world-changes", "IRC bot", null, true)]
public static bool ircShowWorldChanges = true;
[ConfigBool("irc-colorsenable", "IRC bot", null, true)]
public static bool ircColorsEnable = true;
[ConfigInt("irc-port", "IRC bot", null, 6667, 0, 65535)]