Tell players to use /a when they message staff w/ DMs disabled

This commit is contained in:
ArcticZeroo 2017-10-21 21:21:37 -04:00 committed by Alexander Meech
parent 1d6f36d53e
commit 7e4d6c4320

View File

@ -172,8 +172,13 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
// If the receiver has turned off private messaging and the sender isn't a mod
if (!_preferences.get(target).isActive(Preference.PRIVATE_MESSAGING))
{
return C.cPurple + target.getName() + " has private messaging disabled.";
String message = C.cPurple + target.getName() + " has private messaging disabled.";
if (GetClientManager().Get(target).hasPermission(Perm.SEE_ADMIN)) {
return message + " Try using /a <message> to contact them instead!";
}
return message;
}
// If the receiver is ignoring the sender, and the sender isn't a mod