diff --git a/Commands/other/CmdReview.cs b/Commands/other/CmdReview.cs index 7db44b8a5..899c0de7c 100644 --- a/Commands/other/CmdReview.cs +++ b/Commands/other/CmdReview.cs @@ -92,6 +92,7 @@ namespace MCGalaxy.Commands } else { Player.Message(p, "&cThere are no operators on to review your build. Please wait for one to come on and try again."); } + Player.RaisePlayerAction(p, PlayerAction.Review, null, true); } void HandleView(Player p) { diff --git a/Events/Player.Events.cs b/Events/Player.Events.cs index 5e83cf907..418f246f9 100644 --- a/Events/Player.Events.cs +++ b/Events/Player.Events.cs @@ -17,7 +17,7 @@ */ using System; namespace MCGalaxy { - public enum PlayerAction { Joker, Unjoker, AFK, UnAFK, JoinWorld, Me }; + public enum PlayerAction { Joker, Unjoker, AFK, UnAFK, JoinWorld, Me, Review }; /// This is the player object public sealed partial class Player { diff --git a/IRC/ForgeBot.cs b/IRC/ForgeBot.cs index a3606250b..1286ee621 100644 --- a/IRC/ForgeBot.cs +++ b/IRC/ForgeBot.cs @@ -181,6 +181,8 @@ namespace MCGalaxy { 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."; if (msg != null) Say(msg, stealth); diff --git a/Player/Chat.cs b/Player/Chat.cs index 1afbb7161..0f11b1b71 100644 --- a/Player/Chat.cs +++ b/Player/Chat.cs @@ -205,7 +205,7 @@ namespace MCGalaxy { p.SendMessage("To Ops &f-" + displayName + "&f- " + text); Server.s.Log("(OPs): " + name + ": " + text); - Server.IRC.Say(name + ": " + text, true); + Server.IRC.Say(displayName + "%S: " + text, true); return true; } if (text[0] == '+' || (p != null && p.adminchat)) { @@ -218,7 +218,7 @@ namespace MCGalaxy { p.SendMessage("To Admins &f-" + displayName + "&f- " + text); Server.s.Log("(Admins): " + name + ": " + text); - Server.IRC.Say(name + ": " + text, true); + Server.IRC.Say(displayName + "%S: " + text, true); return true; } return false; diff --git a/Server/Server.cs b/Server/Server.cs index f88b68524..f6fd163cc 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -245,7 +245,7 @@ namespace MCGalaxy public static string ircNick = "ForgeBot"; [ConfigString("irc-server", "IRC bot", null, "irc.esper.net")] public static string ircServer = "irc.esper.net"; - [ConfigString("irc-channel", "IRC bot", null, "#changethis")] + [ConfigString("irc-channel", "IRC bot", null, "#changethis", true)] public static string ircChannel = "#changethis"; [ConfigString("irc-opchannel", "IRC bot", null, "#changethistoo", true)] public static string ircOpChannel = "#changethistoo";