File tree Expand file tree Collapse file tree 9 files changed +32
-9
lines changed
src/main/java/pro/cloudnode/smp/cloudnodemsg/error Expand file tree Collapse file tree 9 files changed +32
-9
lines changed Original file line number Diff line number Diff line change 66 * Player has no username (somehow)
77 */
88public final class InvalidPlayerError extends Error {
9+ /**
10+ * Player has no username (somehow)
11+ */
912 public InvalidPlayerError () {
1013 super (CloudnodeMSG .getInstance ().config ().invalidPlayer ());
1114 }
Original file line number Diff line number Diff line change 22
33import pro .cloudnode .smp .cloudnodemsg .CloudnodeMSG ;
44
5- /**
6- * Player has no username (somehow)
7- */
85public final class MessageYourselfError extends Error {
96 public MessageYourselfError () {
107 super (CloudnodeMSG .getInstance ().config ().messageYourself ());
Original file line number Diff line number Diff line change 77 * Target player has never joined the server
88 */
99public final class NeverJoinedError extends Error {
10+ /**
11+ * Target player has never joined the server
12+ *
13+ * @param player the player's username
14+ */
1015 public NeverJoinedError (final @ NotNull String player ) {
1116 super (CloudnodeMSG .getInstance ().config ().neverJoined (player ));
1217 }
Original file line number Diff line number Diff line change 33import pro .cloudnode .smp .cloudnodemsg .CloudnodeMSG ;
44
55/**
6- * Player has no username (somehow)
6+ * No permission
77 */
88public final class NoPermissionError extends Error {
9+ /**
10+ * No permission
11+ */
912 public NoPermissionError () {
1013 super (CloudnodeMSG .getInstance ().config ().noPermission ());
1114 }
Original file line number Diff line number Diff line change 22
33import pro .cloudnode .smp .cloudnodemsg .CloudnodeMSG ;
44
5- /**
6- * Player has no username (somehow)
7- */
85public final class NobodyReplyError extends Error {
96 public NobodyReplyError () {
107 super (CloudnodeMSG .getInstance ().config ().nobodyReply ());
Original file line number Diff line number Diff line change 77 * That player is not ignored
88 */
99public final class NotIgnoredError extends Error {
10+ /**
11+ * That player is not ignored
12+ *
13+ * @param player the player's username
14+ */
1015 public NotIgnoredError (final @ NotNull String player ) {
1116 super (CloudnodeMSG .getInstance ().config ().notIgnored (player ));
1217 }
Original file line number Diff line number Diff line change 66 * Only players can use this command
77 */
88public final class NotPlayerError extends Error {
9+ /**
10+ * Only players can use this command
11+ */
912 public NotPlayerError () {
1013 super (CloudnodeMSG .getInstance ().config ().notPlayer ());
1114 }
Original file line number Diff line number Diff line change 44import pro .cloudnode .smp .cloudnodemsg .CloudnodeMSG ;
55
66/**
7- * Player has no username (somehow)
7+ * Player not found
88 */
99public final class PlayerNotFoundError extends Error {
10+ /**
11+ * Player not found
12+ *
13+ * @param player the player's username
14+ */
1015 public PlayerNotFoundError (final @ NotNull String player ) {
1116 super (CloudnodeMSG .getInstance ().config ().playerNotFound (player ));
1217 }
Original file line number Diff line number Diff line change 44import pro .cloudnode .smp .cloudnodemsg .CloudnodeMSG ;
55
66/**
7- * Player has no username (somehow)
7+ * The player that messaged you is no longer online
88 */
99public final class ReplyOfflineError extends Error {
10+ /**
11+ * The player that messaged you is no longer online
12+ *
13+ * @param player The player's username
14+ */
1015 public ReplyOfflineError (final @ NotNull String player ) {
1116 super (CloudnodeMSG .getInstance ().config ().replyOffline (player ));
1217 }
You can’t perform that action at this time.
0 commit comments