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;
}
if (text[0] == '#' || (p != null && p.opchat)) {
if (text[0] == '#') text = text.Remove(0, 1).Trim();
if (p != null && p.opchat) {
MessageOps(p, text);
return true;
}
if (text[0] == '+' || (p != null && p.adminchat)) {
if (text[0] == '+') text = text.Remove(0, 1).Trim();
} else if (p != null && p.adminchat) {
MessageAdmins(p, text);
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;
}