If private messaging is turned off, deny messages, even from friends.
This commit is contained in:
parent
3ef3689e6d
commit
3b0a131ca2
@ -63,10 +63,12 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
|
|||||||
|
|
||||||
MessageHandler messageHandler = new MessageHandler(this);
|
MessageHandler messageHandler = new MessageHandler(this);
|
||||||
|
|
||||||
ServerCommandManager.getInstance().registerCommandType("AnnouncementCommand", AnnouncementCommand.class, new AnnouncementHandler());
|
ServerCommandManager.getInstance().registerCommandType("AnnouncementCommand", AnnouncementCommand.class,
|
||||||
|
new AnnouncementHandler());
|
||||||
|
|
||||||
ServerCommandManager.getInstance().registerCommandType("RedisMessage", RedisMessage.class, messageHandler);
|
ServerCommandManager.getInstance().registerCommandType("RedisMessage", RedisMessage.class, messageHandler);
|
||||||
ServerCommandManager.getInstance().registerCommandType("RedisMessageCallback", RedisMessageCallback.class, messageHandler);
|
ServerCommandManager.getInstance()
|
||||||
|
.registerCommandType("RedisMessageCallback", RedisMessageCallback.class, messageHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddCommands()
|
public void AddCommands()
|
||||||
@ -113,7 +115,7 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
|
|||||||
{
|
{
|
||||||
|
|
||||||
// If the receiver has turned off private messaging and the sender isn't a mod
|
// If the receiver has turned off private messaging and the sender isn't a mod
|
||||||
if (!_friendsManager.isFriends(target, sender) && !_preferences.Get(target).PrivateMessaging)
|
if (!_preferences.Get(target).PrivateMessaging)
|
||||||
{
|
{
|
||||||
return C.cPurple + target.getName() + " has private messaging disabled.";
|
return C.cPurple + target.getName() + " has private messaging disabled.";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user