-
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.
refactor: refactor antiCheat integration
fix: fix map delete
- Loading branch information
1 parent
148a0ce
commit 1924cf0
Showing
10 changed files
with
64 additions
and
155 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
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
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
2 changes: 1 addition & 1 deletion
2
.../iseeyou/themis/SuspiciousPhotographer.kt → ...eeyou/anticheat/SuspiciousPhotographer.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package cn.xor7.iseeyou.themis | ||
package cn.xor7.iseeyou.anticheat | ||
|
||
import top.leavesmc.leaves.entity.Photographer | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
src/main/java/cn/xor7/iseeyou/anticheat/listeners/MatrixListener.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,12 @@ | ||
package cn.xor7.iseeyou.anticheat.listeners | ||
|
||
import cn.xor7.iseeyou.anticheat.AntiCheatListener | ||
import com.gmail.olexorus.themis.api.ActionEvent | ||
import me.rerere.matrix.api.events.PlayerViolationEvent | ||
import org.bukkit.event.EventHandler | ||
import org.bukkit.event.Listener | ||
|
||
class MatrixListener : Listener { | ||
@EventHandler | ||
fun onPlayerViolation(e: PlayerViolationEvent) = AntiCheatListener.onAntiCheatAction(e.player) | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/cn/xor7/iseeyou/anticheat/listeners/ThemisListener.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,11 @@ | ||
package cn.xor7.iseeyou.anticheat.listeners | ||
|
||
import cn.xor7.iseeyou.anticheat.AntiCheatListener | ||
import com.gmail.olexorus.themis.api.ActionEvent | ||
import org.bukkit.event.EventHandler | ||
import org.bukkit.event.Listener | ||
|
||
class ThemisListener : Listener { | ||
@EventHandler | ||
fun onAction(e: ActionEvent) = AntiCheatListener.onAntiCheatAction(e.player) | ||
} |
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/main/java/cn/xor7/iseeyou/matrix/MatrixSuspiciousPhotographer.kt
This file was deleted.
Oops, something went wrong.