mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 19:25:49 -07:00
@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
|
||||
/**
|
||||
* Thrown if a Plugin Channel is too long.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChannelNameTooLongException extends RuntimeException {
|
||||
public ChannelNameTooLongException() {
|
||||
super("Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is " + Messenger.MAX_CHANNEL_SIZE + " chars.");
|
||||
|
@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
|
||||
/**
|
||||
* Thrown if a Plugin attempts to send a message on an unregistered channel.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ChannelNotRegisteredException extends RuntimeException {
|
||||
public ChannelNotRegisteredException() {
|
||||
this("Attempted to send a plugin message through an unregistered channel.");
|
||||
|
@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
|
||||
/**
|
||||
* Thrown if a Plugin Message is sent that is too large to be sent.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MessageTooLargeException extends RuntimeException {
|
||||
public MessageTooLargeException() {
|
||||
this("Attempted to send a plugin message that was too large. The maximum length a plugin message may be is " + Messenger.MAX_MESSAGE_SIZE + " bytes.");
|
||||
|
@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
|
||||
/**
|
||||
* Thrown if a plugin attempts to register for a reserved channel (such as "REGISTER")
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class ReservedChannelException extends RuntimeException {
|
||||
public ReservedChannelException() {
|
||||
this("Attempted to register for a reserved channel name.");
|
||||
|
Reference in New Issue
Block a user