Class PaperMessagingBridge
java.lang.Object
dev.shamoo.runtime.platform.paper.PaperMessagingBridge
Bukkit plugin messaging adapter preserving raw payload bytes.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPaperMessagingBridge(org.bukkit.plugin.java.JavaPlugin plugin, dev.shamoo.runtime.core.ResourceRegistry resources) -
Method Summary
Modifier and TypeMethodDescriptionbooleancarrier(org.bukkit.entity.Player player, dev.shamoo.runtime.core.OptionalProxyTransport transport) Selects an online player as the optional Bukkit plugin-message carrier.register(dev.shamoo.runtime.core.PluginId owner, String channel, org.bukkit.plugin.messaging.PluginMessageListener listener) registerProxyTransport(dev.shamoo.runtime.core.PluginId owner, dev.shamoo.runtime.core.OptionalProxyTransport transport) Registers the response channel without making Velocity a standalone Paper requirement.booleanselectCarrier(dev.shamoo.runtime.core.OptionalProxyTransport transport) Selects the first legal online carrier without exposing a live Player across the script boundary.void
-
Field Details
-
PROXY_CHANNEL
- See Also:
-
-
Constructor Details
-
PaperMessagingBridge
public PaperMessagingBridge(org.bukkit.plugin.java.JavaPlugin plugin, dev.shamoo.runtime.core.ResourceRegistry resources)
-
-
Method Details
-
register
public AutoCloseable register(dev.shamoo.runtime.core.PluginId owner, String channel, org.bukkit.plugin.messaging.PluginMessageListener listener) -
send
-
registerProxyTransport
public AutoCloseable registerProxyTransport(dev.shamoo.runtime.core.PluginId owner, dev.shamoo.runtime.core.OptionalProxyTransport transport) Registers the response channel without making Velocity a standalone Paper requirement. -
carrier
public boolean carrier(org.bukkit.entity.Player player, dev.shamoo.runtime.core.OptionalProxyTransport transport) Selects an online player as the optional Bukkit plugin-message carrier. -
selectCarrier
public boolean selectCarrier(dev.shamoo.runtime.core.OptionalProxyTransport transport) Selects the first legal online carrier without exposing a live Player across the script boundary.
-