Skip to content

Commit

Permalink
Fixed Minor Config Issue for Kick Message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremlinn committed Aug 10, 2023
1 parent f5836ae commit 3478b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public void onPlayerJoin(PlayerJoinEvent event) {
LunarClientAPIServerRule.sendServerRule(player);
}

//After 2 seconds on join, if the player isn't running lc, kick them
Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, () -> {
//After 1 second on join, if the player isn't running lc, kick them
Bukkit.getScheduler().runTaskLater(plugin, () -> {
if (!LunarClientAPI.getInstance().isRunningLunarClient(player) && plugin.getConfig().getBoolean("REQUIRE-LUNAR.ENABLED")) {
player.kickPlayer(Locale.LUNAR_KICK_MESSAGE.messageFormat().replace("\n", "<space>"));
player.kickPlayer(Locale.LUNAR_KICK_MESSAGE.messageFormat().replace("<space>", "\n"));
}
}, 2 * 20L);
}, 20L);
}

@EventHandler
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: LunarUtility
main: xyz.refinedev.lunar.LunarUtility
authors:
- Dubai
- Komek
- RefineDevelopment
depend: [ LunarClient-API ]
softdepend: [ PlaceholderAPI ]
Expand Down

0 comments on commit 3478b67

Please sign in to comment.