From 7e4d6c43209ca7271d2389d14002fde74507310e Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Sat, 21 Oct 2017 21:21:37 -0400 Subject: [PATCH] Tell players to use /a when they message staff w/ DMs disabled --- .../src/mineplex/core/message/MessageManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java b/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java index f1d0435ad..ce967b899 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/message/MessageManager.java @@ -172,8 +172,13 @@ public class MessageManager extends MiniClientPlugin // 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 to contact them instead!"; + } + + return message; } // If the receiver is ignoring the sender, and the sender isn't a mod