Obsolete #/+[message] behaviour completely, tell people to use opchat/adminchat [message] instead. Fixes #396.

This commit is contained in:
UnknownShadow200 2017-10-31 14:27:44 +11:00
parent 48b65ac798
commit 4844836ddb

View File

@ -44,15 +44,16 @@ namespace MCGalaxy {
return true; return true;
} }
if (text[0] == '#' || (p != null && p.opchat)) { if (p != null && p.opchat) {
if (text[0] == '#') text = text.Remove(0, 1).Trim();
MessageOps(p, text); MessageOps(p, text);
return true; return true;
} } else if (p != null && p.adminchat) {
if (text[0] == '+' || (p != null && p.adminchat)) {
if (text[0] == '+') text = text.Remove(0, 1).Trim();
MessageAdmins(p, text); MessageAdmins(p, text);
return true; return true;
} else if (text[0] == '#') {
Player.Message(p, "%HIf you meant to send this to opchat, use %T/opchat " + text.Substring(1));
} else if (text[0] == '+') {
Player.Message(p, "%HIf you meant to send this to adminchat, use %T/adminchat " + text.Substring(1));
} }
return false; return false;
} }