Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c8262e87e6 | |||
ea0a650210 |
5
pom.xml
5
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>cz.gamesites.mc</groupId>
|
<groupId>cz.gamesites.mc</groupId>
|
||||||
<artifactId>AntiAFK</artifactId>
|
<artifactId>AntiAFK</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0</version>
|
||||||
<name>AntiAFK</name>
|
<name>AntiAFK</name>
|
||||||
<description>AntiAFK Spigot plugin</description>
|
<description>AntiAFK Spigot plugin</description>
|
||||||
|
|
||||||
@ -31,7 +31,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.8.0</version>
|
<version>3.8.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<release>12</release>
|
<target>8</target>
|
||||||
|
<source>1.8</source>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@ -30,9 +30,9 @@ import net.md_5.bungee.api.ChatColor;
|
|||||||
public class AntiAFK extends JavaPlugin implements Listener {
|
public class AntiAFK extends JavaPlugin implements Listener {
|
||||||
|
|
||||||
// frequency of checks
|
// 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
|
// 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 static AntiAFK INSTANCE = null;
|
||||||
private HashMap<Player, int[]> lastPositions = new HashMap<>();
|
private HashMap<Player, int[]> lastPositions = new HashMap<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user