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 b7097d4 commit 3ca9dffCopy full SHA for 3ca9dff
eternalcore-core/src/main/java/com/eternalcode/core/feature/afk/AfkCommand.java
@@ -24,6 +24,8 @@
24
)
25
class AfkCommand {
26
27
+ private static final String AFK_BYPASS_PERMISSION = "eternalcore.afk.bypass";
28
+
29
private final NoticeService noticeService;
30
private final PluginConfiguration pluginConfiguration;
31
private final AfkService afkService;
@@ -42,7 +44,7 @@ class AfkCommand {
42
44
void execute(@Context Player player) {
43
45
UUID uuid = player.getUniqueId();
46
- if (player.hasPermission("eternalcore.afk.bypass")) {
47
+ if (player.hasPermission(AFK_BYPASS_PERMISSION)) {
48
this.afkService.switchAfk(uuid, AfkReason.COMMAND);
49
return;
50
}
0 commit comments