mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Boolean for whether world changes are shown on IRC. (Thanks venom983)
This commit is contained in:
parent
2bc639abd8
commit
9dd55616ee
@ -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) {
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user