diff --git a/pom.xml b/pom.xml
index 9ded44d..9ff2098 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
ir.wy
WyCore
jar
- 2.0.2
+ 2.0.4
@@ -142,6 +142,10 @@
iridiumdevelopment
https://nexus.iridiumdevelopment.net/repository/maven-releases/
+
+ janmm14-intave
+ https://repo.janmm14.de/repository/intave/
+
local-repo
file:///${project.basedir}/libs/
@@ -191,6 +195,12 @@
system
${project.basedir}/libs/Vulcan-2.6.9.jar
+
+ de.jpx3.intave.access
+ intave-access
+ 14.4.2
+ provided
+
net.essentialsx
EssentialsX
@@ -334,5 +344,6 @@
kotlin-stdlib-jdk8
${kotlin.version}
+
\ No newline at end of file
diff --git a/src/main/java/ir/wy/wycore/spigot/support/anticheat/IntaveAntiCheat.kt b/src/main/java/ir/wy/wycore/spigot/support/anticheat/IntaveAntiCheat.kt
index ba6a4a7..bf139f0 100644
--- a/src/main/java/ir/wy/wycore/spigot/support/anticheat/IntaveAntiCheat.kt
+++ b/src/main/java/ir/wy/wycore/spigot/support/anticheat/IntaveAntiCheat.kt
@@ -1,4 +1,33 @@
package ir.wy.wycore.spigot.support.anticheat
-class IntaveAntiCheat {
+import de.jpx3.intave.access.check.event.IntaveViolationEvent
+import ir.wy.wycore.behind.support.anticheat.AntiCheatSupport
+import org.bukkit.entity.Player
+import org.bukkit.event.EventHandler
+import org.bukkit.event.EventPriority
+import org.bukkit.event.Listener
+import java.util.UUID
+
+class IntaveAntiCheat : AntiCheatSupport, Listener{
+ private val exempt: MutableSet = HashSet()
+
+ override fun getPluginName(): String {
+ return "Intave"
+ }
+
+ override fun exempt(player: Player) {
+ exempt.add(player.uniqueId)
+ }
+
+ override fun unexempt(player: Player) {
+ exempt.remove(player.uniqueId)
+ }
+
+ @EventHandler(priority = EventPriority.LOWEST)
+ private fun onViolate(event: IntaveViolationEvent) {
+ if(!exempt.contains(event.player().uniqueId)) {
+ return
+ }
+ event.reaction().equals(true)
+ }
}
\ No newline at end of file