Skip to content
Snippets Groups Projects
Commit 31c277da authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

Fixed bug where you will be kicked forever.

parent 3de980e4
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -37,8 +37,10 @@ public class AFKKick extends JavaPlugin {
else
times.put(player.getName(), times.get(player.getName()) + 1);
if (times.get(player.getName()) >= time)
if (times.get(player.getName()) >= time) {
player.kickPlayer(message);
times.put(player.getName(), 0);
}
}
}
}, 20l, 20l);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment