mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 06:28:52 +00:00
1.3.1 and event priority modifications
This commit is contained in:
1 parent
33d0188a9e
commit
d74af58127
2 files changed
+3
-3
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.h31ix.anticheat</groupId>
|
<groupId>net.h31ix.anticheat</groupId>
|
||||||
<artifactId>AntiCheat</artifactId>
|
<artifactId>AntiCheat</artifactId>
|
||||||
<version>1.3.1-DEV</version>
|
<version>1.3.1</version>
|
||||||
<name>AntiCheat</name>
|
<name>AntiCheat</name>
|
||||||
<url>http://H31IX.NET/</url>
|
<url>http://H31IX.NET/</url>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class PlayerListener extends EventListener
|
|||||||
private final CheckManager checkManager = getCheckManager();
|
private final CheckManager checkManager = getCheckManager();
|
||||||
private final Configuration config = Anticheat.getManager().getConfiguration();
|
private final Configuration config = Anticheat.getManager().getConfiguration();
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
|
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
|
||||||
{
|
{
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
@@ -114,7 +114,7 @@ public class PlayerListener extends EventListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onPlayerChat(PlayerChatEvent event)
|
public void onPlayerChat(PlayerChatEvent event)
|
||||||
{
|
{
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|||||||
Reference in new issue
Block a user