first commit
This commit is contained in:
commit
1ccd3d9586
17 files changed
+715
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
op-bypass: true
|
||||
permission-bypass: "farmguard.bypass"
|
||||
|
||||
alert-console: true
|
||||
alert-ops: true
|
||||
|
||||
detection:
|
||||
check-period-ticks: 100
|
||||
window-seconds: 180
|
||||
min-actions: 80
|
||||
max-camera-movement: 12.0
|
||||
max-distance-moved: 6.0
|
||||
max-interval-deviation-ms: 90
|
||||
suspicion-increase: 15
|
||||
suspicion-decrease: 5
|
||||
alert-threshold: 70
|
||||
action-threshold: 90
|
||||
alert-cooldown-seconds: 300
|
||||
action-cooldown-seconds: 300
|
||||
|
||||
checks:
|
||||
attack: true
|
||||
interact: true
|
||||
block-break: true
|
||||
block-place: false
|
||||
item-consume: false
|
||||
animation: true
|
||||
|
||||
messages:
|
||||
op-alert: "&c[FarmGuard] &e%player% &cmay be using unattended repetitive actions. Score=&e%score%&c Actions=&e%actions%&c Camera=&e%camera%&c Move=&e%move%&c Deviation=&e%deviation%"
|
||||
console-log: "[FarmGuard] %player% flagged. Score=%score% Actions=%actions% Camera=%camera% Move=%move% Deviation=%deviation%"
|
||||
kick-message: "&cSuspicious unattended repetitive activity detected."
|
||||
|
||||
on-alert:
|
||||
- type: OP_ALERT
|
||||
- type: CONSOLE_LOG
|
||||
|
||||
on-action: []
|
||||
# Example:
|
||||
# on-action:
|
||||
# - type: CONSOLE_COMMAND
|
||||
# command: "cmi warp %player% checkroom"
|
||||
# - type: KICK
|
||||
# message: "&cPlease contact staff."
|
||||
@@ -0,0 +1,16 @@
|
||||
name: FarmGuard
|
||||
version: 1.0
|
||||
main: com.bitnix.farmguard.FarmGuardPlugin
|
||||
api-version: '1.21'
|
||||
author: bitnix
|
||||
description: Detects suspicious repetitive unattended behavior and triggers configurable actions.
|
||||
commands:
|
||||
farmguard:
|
||||
description: FarmGuard admin command
|
||||
usage: /farmguard reload
|
||||
permission: farmguard.admin
|
||||
permissions:
|
||||
farmguard.admin:
|
||||
default: op
|
||||
farmguard.bypass:
|
||||
default: false
|
||||
@@ -0,0 +1,5 @@
|
||||
#Generated by Maven
|
||||
#Sun Jun 07 21:02:20 EDT 2026
|
||||
artifactId=FarmGuard
|
||||
groupId=com.bitnix
|
||||
version=1.0
|
||||
@@ -0,0 +1,6 @@
|
||||
com/bitnix/farmguard/FarmGuardPlugin$PlayerData.class
|
||||
com/bitnix/farmguard/FarmGuardPlugin$ActionDefinition.class
|
||||
com/bitnix/farmguard/FarmGuardPlugin$CameraSample.class
|
||||
com/bitnix/farmguard/FarmGuardPlugin$DetectionContext.class
|
||||
com/bitnix/farmguard/FarmGuardPlugin$MoveSample.class
|
||||
com/bitnix/farmguard/FarmGuardPlugin.class
|
||||
@@ -0,0 +1 @@
|
||||
/home/bitnix/Desktop/FarmGuard/src/main/java/com/bitnix/farmguard/FarmGuardPlugin.java
|
||||
Reference in new issue
Block a user