mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Obsolete #/+[message] behaviour completely, tell people to use opchat/adminchat [message] instead. Fixes #396.
This commit is contained in:
parent
48b65ac798
commit
4844836ddb
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user