We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f08b2 commit 3456254Copy full SHA for 3456254
src/main/java/pro/cloudnode/smp/cloudnodemsg/message/Message.java
@@ -145,5 +145,7 @@ public static void incomeDisable(final @NotNull Player player) {
145
player.getPersistentDataContainer().set(INCOMING_ENABLED, PersistentDataType.BOOLEAN, false);
146
}
147
148
+ public static boolean isIncomeEnabled(final @NotNull Player player) {
149
+ return player.getPersistentDataContainer().getOrDefault(INCOMING_ENABLED, PersistentDataType.BOOLEAN, true);
150
151
0 commit comments