Skip to content

Commit e67cd18

Browse files
committed
Error if the player has incoming disabled (throws to the sender)
1 parent 3456254 commit e67cd18

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package pro.cloudnode.smp.cloudnodemsg.error;
2+
3+
import org.jetbrains.annotations.NotNull;
4+
import pro.cloudnode.smp.cloudnodemsg.CloudnodeMSG;
5+
6+
public class PlayerHasIncomingDisabledError extends Error {
7+
public PlayerHasIncomingDisabledError(final @NotNull String player) {
8+
super(CloudnodeMSG.getInstance().config().incomingDisabled(player));
9+
}
10+
}

0 commit comments

Comments
 (0)