-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Vulcan support and other anticheat dependencies
- Loading branch information
1 parent
0f3cfc0
commit fc6d28b
Showing
6 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/cn/xor7/iseeyou/anticheat/listeners/VulcanListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package cn.xor7.iseeyou.anticheat.listeners | ||
|
||
import cn.xor7.iseeyou.anticheat.AntiCheatListener | ||
import com.gmail.olexorus.themis.api.ActionEvent | ||
import me.frep.vulcan.api.event.VulcanPunishEvent | ||
import me.rerere.matrix.api.events.PlayerViolationEvent | ||
import org.bukkit.event.EventHandler | ||
import org.bukkit.event.Listener | ||
|
||
class VulcanListener : Listener { | ||
@EventHandler | ||
fun onPunish(e: VulcanPunishEvent) = AntiCheatListener.onAntiCheatAction(e.player) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters