Class IgnoreSender
java.lang.Object
net.flectone.pulse.platform.sender.IgnoreSender
Sends ignore-related messages when players ignore each other.
Usage example:
IgnoreSender ignoreSender = flectonePulse.get(IgnoreSender.class);
// Check if players ignore each other
if (ignoreSender.sendIfIgnored(sender, receiver)) {
// One player is ignoring the other
}
- Since:
- 1.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionIgnoreSender(SocialService socialService, MessagePipeline messagePipeline, EventDispatcher eventDispatcher, FileFacade fileFacade) -
Method Summary
Modifier and TypeMethodDescriptionbooleansendIfIgnored(FPlayer fPlayer, FPlayer fTarget) Checks if two players ignore each other and sends notification to sender.
-
Constructor Details
-
IgnoreSender
@Inject public IgnoreSender(SocialService socialService, MessagePipeline messagePipeline, EventDispatcher eventDispatcher, FileFacade fileFacade)
-
-
Method Details
-
sendIfIgnored
Checks if two players ignore each other and sends notification to sender.- Parameters:
fPlayer- the player attempting to send a message (receives notification)fTarget- the target player- Returns:
- true if either player ignores the other, false otherwise
-