diff --git a/src/main/java/xyz/refinedev/lunar/listeners/LunarListener.java b/src/main/java/xyz/refinedev/lunar/listeners/LunarListener.java index 5eb0b54..5ca400a 100644 --- a/src/main/java/xyz/refinedev/lunar/listeners/LunarListener.java +++ b/src/main/java/xyz/refinedev/lunar/listeners/LunarListener.java @@ -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", "")); + player.kickPlayer(Locale.LUNAR_KICK_MESSAGE.messageFormat().replace("", "\n")); } - }, 2 * 20L); + }, 20L); } @EventHandler diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8ca691a..d79aee3 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -2,7 +2,6 @@ name: LunarUtility main: xyz.refinedev.lunar.LunarUtility authors: - Dubai - - Komek - RefineDevelopment depend: [ LunarClient-API ] softdepend: [ PlaceholderAPI ]