release 1.0

This commit is contained in:
Erik Bročko 2019-08-20 14:54:32 +02:00
parent ecb9df2cfc
commit ea0a650210
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cz.gamesites.mc</groupId>
<artifactId>AntiAFK</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0</version>
<name>AntiAFK</name>
<description>AntiAFK Spigot plugin</description>

View File

@ -30,9 +30,9 @@ import net.md_5.bungee.api.ChatColor;
public class AntiAFK extends JavaPlugin implements Listener {
// frequency of checks
public static final int CHECK_INTERVAL = 20 * 20;
public static final int CHECK_INTERVAL = 60 * 20;
// how many times a check has to fail in order to mark the player as AFK
public static final int STRIKES_AFK = 3;
public static final int STRIKES_AFK = 30;
private static AntiAFK INSTANCE = null;
private HashMap<Player, int[]> lastPositions = new HashMap<>();