forked from Elikill58/Negativity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
790 lines (727 loc) · 20.4 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
###################################################################
# #
# Negativity #
# AntiCheat by Elikill58 #
# #
# If you have a problem or a suggestion, #
# You can contact me on: #
# - Discord: @Elikill58#0743 #
# - my Discord server: https://discord.gg/KHRVTX2 #
# - Mail: [email protected] #
# - SpigotMC: Elikill58 #
# - Minecraft.fr: Elikill #
# #
###################################################################
# Enable cheat alerts
log_alerts: true
log_alerts_in_console: true
# if the server's Ticks Per Second drops below this value, alerts will be disabled
tps_alert_stop: 19
commands:
# Disable or enable commands
# Enable /nreport: (Alias: /report)
report: true
# Enable /nban: (Alias: /ban)
ban: false
# ^ YOU MIGHT WANT THIS ON!
# Enable /nunban (Alias: /unban)
unban: false
# ^ YOU MIGHT WANT THIS ON!
# Enable /nkick: (Alias: /kick)
kick: true
# Enable /nmod: (Alias: /mod)
mod: true
# Enable /nlang: (Alias: /lang)
lang: true
# /report cooldown in milliseconds
# -1 to disable cooldown
time_between_report: 1000
# Alerts cooldown in milliseconds
# If the limit is bypassed, alerts will be combined:
# e.g. "exampleHacker Hit exampleUser without line of sight 5 times"
# -1 to disable cooldown
time_between_alert: 1000
# Database for storing info, if applicable
# Disabled by default
Database:
# Enable database
isActive: false
# Info is stored by player ID, not username.
# This plugin doesn't edit the database.
# The database credentials and IP are never accessable by us.
url: "127.0.0.1/myDb"
user: "root"
password: "myPassword"
type: "mysql"
inventory:
alerts:
no_started_verif_cheat: false # Don't see if the player isn't analyse for this cheat
# Don't send alerts for inactive cheats
only_cheat_active: true
inv_freeze_active: true
# Disable checking for cheats with certain blocks/items
items:
# Item Name:
# when: Set conditions
# cheats: Which cheat(s) to disable (the id: fly, speed, antiknockback, etc.)
#
# Possible "when" values:
# always : disable whenever the player has it in their hand
# right_click : disable when the player right clicks
# left_click : disable when the player left clicks
# looking : disable when the player is looking at it
# below : disable when the player is standing on it
#
# Disable speed and fly checking when the player is holding a compass:
# COMPASS:
# when: always
# cheats: speed,fly
# Configuration of the permissions subsystem. For more information
# see https://github.com/Elikill58/Negativity/wiki/Permissions
Permissions:
# The checker is used to see if a player has the correct permissions
# By default only 'platform' is available
# 'platform' means Negativity will use supported permissions plugins
checker: platform
check:
# Open another player's inventory
default: "negativity.check"
showAlert:
# See alerts
default: "negativity.alert"
showReport:
# See reports from /report
default: "negativity.seereport"
verif:
# Run /negativity verif
default: "negativity.verif"
manageCheat:
# Manage cheats
default: "negativity.managecheat"
reload:
# Reload the plugin
default: "negativity.reload"
report_wait:
# Bypass report cooldown
default: "negativity.reportwait"
report:
# Use /report (if enabled)
default: "negativity.report"
ban:
# Use /nban (if enabled)
default: "negativity.ban"
unban:
# Use /nunban (if enabled)
default: "negativity.unban"
mod:
# Use /nmod (if enabled)
default: "negativity.mod"
lang:
# Use /nlang (if enabled)
default: "negativity.lang"
max-player-by-ip:
# Bypass the max player by IP
default: "negativity.bypass.max-player-by-ip"
bypass:
# These are used to make players immune to some features
active: false
ban:
# Immune to ban (auto and /nban)
default: "negativity.bypass.ban"
all:
# Immune to all cheats
default: "negativity.bypass.all"
airplace:
default: "negativity.bypass.airplace"
forcefield:
default: "negativity.bypass.forcefield"
fastplace:
default: "negativity.bypass.fastplace"
speed:
default: "negativity.bypass.speed"
autoclick:
default: "negativity.bypass.autoclick"
fly:
default: "negativity.bypass.fly"
antipotion:
default: "negativity.bypass.antipotion"
fasteat:
default: "negativity.bypass.fasteat"
regen:
default: "negativity.bypass.regen"
antiknockback:
default: "negativity.bypass.antiknockback"
jesus:
default: "negativity.bypass.jesus"
nofall:
default: "negativity.bypass.nofall"
blink:
default: "negativity.bypass.blink"
spider:
default: "negativity.bypass.spider"
fastbow:
default: "negativity.bypass.fastbow"
scaffold:
default: "negativity.bypass.scaffold"
step:
default: "negativity.bypass.step"
noslowdown:
default: "negativity.bypass.noslowdown"
fastladder:
default: "negativity.bypass.fastladder"
phase:
default: "negativity.bypass.phase"
autosteal:
default: "negativity.bypass.autosteal"
nuker:
default: "negativity.bypass.nuker"
airjump:
default: "negativity.bypass.airjump"
chat:
default: "negativity.bypass.chat"
noweb:
default: "negativity.bypass.noweb"
critical:
default: "negativity.bypass.critical"
inventorymove:
default: "negativity.bypass.inventorymove"
faststairs:
default: "negativity.bypass.faststairs"
nopitchlimit:
default: "negativity.bypass.nopitchlimit"
timer:
default: "negativity.bypass.timer"
pingspoof:
default: "negativity.bypass.pingspoof"
Translation:
active: false # enable or disable per-player translation with /nlang
lang_available:
- ar_EG
- cs_CZ
- de_DE
- en_US
- es_ES
- fr_FR
- hu_HU
- it_IT
- nl_NL
- no_NO
- pl_PL
- pt_BR
- ro_RO
- ru_RU
- sq_SQ
- sv_SV
- vi_VN
- zh_CN
# Default language for players
default: en_US
# The provider used to get translated messages, useful if you want to customize the way Negativity gets its messages.
# The only one available out-of-the-box is "platform".
provider: platform
alert:
# Run a command when someone triggers an alert
command:
active: false
# How much confidence of a cheat is needed to run command
reliability_need: 80
# Available placeholders:
# %name% : Username of player who cheated
# %uuid% : UUID of player who cheated
# %report_type% : Type of detected cheat (either Warning or Violation)
# %cheat_key% : Cheat ID (e.g. "nofall")
# %cheat_name% : Cheat name (e.g. "No-Fall") : Can be changed in this config
# %reliability% : How confident Negativity is that they are cheating
# %warn% : Amount of warn for this cheat
run:
- "broadcast %name% might be using %cheat_name%!"
# Configuration of the bans subsystem. For more information,
# see https://github.com/Elikill58/Negativity/wiki/Bans
ban:
# Enable auto-banning players
active: false
# Processors manage how bans are stored. Only one processor can be used at the time.
# Available processors :
# - file : Save bans in a folder
# - database : Saves bans in a database. Needs a configured database (see the Database config)
# - command : Runs another plugin's commands to ban or unban
# - bukkit : Uses Bukkit's ban system
# - proxy : Forwards ban execution and revocations to the proxy companion plugin.
# You must enable bans on the proxy plugin's configuration for it to work
#
# The following plugins are also supported :
# - maxbans
# - advancedban
# - litebans
# - dkbans
# Defaults to "file"
processor: "file"
# Commands to execute when using the "command" processor
# You can execute as many commands as you want. Order is respected.
#
# Available placeholders:
# %uuid% : uuid of banned player
# %name% : name of banned player
# %ip% : ip of the banned player
# %reason% : detected cheat
# %alert% : number of alerts for the detected cheat that triggered the ban
# %all_alert% : all alerts for the detected cheat since you added Negativity on your server
command:
ban:
- "ban %uuid% %reason%"
unban:
- "unban %uuid% %reason%"
# Cheats that aren't auto-banned for
cheat_disabled:
- xray
# Confidence needed to be banned
reliability_need: 95
alert_need: 10
# Formula for the length of the ban
# IN MILLISECONDES
time:
# %reliability% : reliability of last alert
# %alert% : number of alerts sent
calculator: "360000000 + (%reliability% * 20 * %alert%)"
def:
# Minimum ban time
ban_time: 2
file:
# Log expired or revoked bans when using the "file" processor
log_bans: true
database:
# Log expired or revoked bans when using the "database" processor
log_bans: true
# Configure player specific info, like their language and alerts count.
accounts:
storage:
# The processor to use
#
# The following are available out-of-the-box:
# - file : stored in files under ./plugins/Negativity/user/
# - database : uses a database
# Defaults to "file"
id: "file"
# Verification is used to monitor cheats
verif:
# Time to remember possible cheat events (20 ticks is usually 1 second, unless the server is lagging)
time: 200
# Enables *not* alerting a player when Negativity thinks they might be cheating
# Alerts for a specific cheat can be forcibly muted by setting "cheats.<cheat>.check_in_verif" to false
disable_alert_on_verif: false
storage:
# The processor to use
#
# The following are available out-of-the-box:
# - file : stored in files under ./plugins/Negativity/verif/
# - database : uses a database
# Defaults to "file"
id: "file"
# Enable cheating in specific regions
region-bypass:
enabled: false
1:
# WorldGuard regions to allow
regions:
- "spawn"
- "wild"
# Worlds to allow
worlds:
# e.g. world, world_nether, world_the_end, or any Multiverse worlds
- "world_the_end"
# Cheats to allow in the above regions and worlds
cheats:
- "fly"
# Per-cheat configuration. For more information about specific cheats
# and their detections see https://github.com/Elikill58/Negativity/wiki/Cheat
cheats:
#
# WARNING: An auto-checking all cheats can be create some lag on your server.
#
# AirPlace is when someone places a block that isn't against another (floating)
airplace:
# Max ping before forgiving the player
ping: 200
# Display name
exact_name: "AirPlace"
# Check for this cheat
isActive: true
# Send an alert if there is this chance (or more) someone is cheating
reliability_alert: 60
# Undo the player's action
# See https://github.com/Elikill58/Negativity/wiki/setBack for custom options
setBack: false
# Kick the player from the server
kick: false
# Alerts sent before kicking
alert_to_kick: 5
# Remember the cheat when calculating things like ban duration
check_in_verif: true
# Forcefield is similar to KillAura - The hacker will auto-attack players near them.
forcefield:
# How many blocks away someone can be hit
reach: 3.3
# Disable spawning an invisible fake player to check for Forcefield
ghost_disabled: true
ping: 200
exact_name: "ForceField"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Jesus is when a hacker walks on water like a block
jesus:
ping: 200
exact_name: "Jesus"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# AntiPotion is when the hacker removes bad potion effects
antipotion:
ping: 200
exact_name: "AntiPotion"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# NoFall is when the hacker disables fall damage
nofall:
# Kill player when confident enough
kill: false
kill-reliability: 90 # reliability to kill player at
ping: 200
exact_name: "NoFall"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# FastEat is to eat something instantly
fasteat:
ping: 200
exact_name: "FastEat"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# FastPlace places blocks quicker than normal
fastplace:
ping: 200
exact_name: "FastPlace"
isActive: true
# Minimum time between block places,
# in milliseconds
time_2_place: 50
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Speed hacks makes you run faster
speed:
ping: 200
exact_name: "Speed"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# AutoClick makes you automatically click, very fast
autoclick:
click_alert: 20
ping: 200
exact_name: "AutoClick"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Fly lets a hacker fly like in Creative Mode
fly:
ping: 200
exact_name: "Fly"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Regen regenerates a hacker's health very quickly
regen:
ping: 200
exact_name: "Regen"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# AntiKnockback removes the knockback effect for a hacker
antiknockback:
ping: 200
exact_name: "AntiKnockback"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Configuration to prevent false flagging. Set to false to prevent all possible incidents
algo: "(0.00000008 * velY * velY) + (0.0001 * velY) - 0.0219"
# Blink enables a hacker to teleport by simulating low ping (i.e. lag)
blink:
ping: 200
exact_name: "Blink"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# FastBow shoots a bow quicker than normal
fastbow:
ping: 200
exact_name: "FastBow"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Spider allows hackers to climb all walls like a ladder
spider:
ping: 200
exact_name: "Spider"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Sneak allows a hacker to sneak, but with normal walking speeds
sneak:
ping: 200
exact_name: "Sneak"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Scaffold places a block under you without you having to look
scaffold:
ping: 200
exact_name: "Scaffold"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Step allows a hacker to jump twice as high
step:
ping: 200
exact_name: "Step"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# NoSlowDown remove slow down effects (like with soul sand)
noslowdown:
ping: 200
exact_name: "NoSlowDown"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# FastLadders lets a hacker climb ladders very quickly
fastladder:
ping: 200
exact_name: "FastLadder"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Phase lets a hacker glitch through a block
phase:
ping: 200
exact_name: "Phase"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# AutoSteal lets a hacker take items from someone
autosteal:
ping: 200
exact_name: "AutoSteal"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# XRay is when you can see ores through walls - detected by ore mined per minute
xray:
ping: 300
exact_name: "XRay"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Nuker/BedBreaker automatically breaks blocks near a hacker
nuker:
ping: 200
exact_name: "Nuker"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# AirJump lets you double jump, triple jump, etc.
airjump:
ping: 200
exact_name: "AirJump"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Chat is insults (i.e. swearing) and spamming
chat:
ping: 300
exact_name: "Chat"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
insults:
- "bitch"
- "asshole"
- "dickhead"
# NoWeb removes low speed from cobwebs
noweb:
ping: 200
exact_name: "NoWeb"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Critical makes all of your attacks critical hits (even while sneaking)
critical:
ping: 200
exact_name: "Critical"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# InventoryMove lets you walk and edit your inventory at the same time
inventorymove:
ping: 200
exact_name: "InventoryMove"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# FastStairs let you walk faster on stairs
faststairs:
ping: 200
exact_name: "FastStairs"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# NoPitchLimit enabled hackers to see behind themselves
nopitchlimit:
ping: 200
exact_name: "NoPitchLimit"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# Timer makes the player game's go faster
timer:
ping: 200
exact_name: "Timer"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
max_variation: 7
# PingSpoof fakes the ping of the player to trick the anti-cheat
pingspoof:
ping: 100000
exact_name: "PingSpoof"
isActive: true
reliability_alert: 60
setBack: false
kick: false
alert_to_kick: 5
check_in_verif: true
# These are some special features
special:
# Kick fake accounts
mcleaks:
kick: true
# Server Crash is when someone is trying to crash the server
server_crash:
name: "Server Crasher"
kick: true
ban: false
# The time of the ban, in milliseconds.
# Default: 2629800000 (1 month)
ban_time: 2629800000
# Invalid Name is when someone trys to crash other players by setting an invalid username
invalid_name:
name: "Invalid Name"
kick: true
ban: false
# The time of the ban, in milliseconds.
# Default: -1 (definitive)
ban_time: -1
# Max player by IP sets a limit to how many plays can connect from the same IP (i.e. internet router or house)
max-player-by-ip:
name: "Max Player/IP"
# number of maximum allowed player on the same IP
# default: 4. It means that the third people will be kicked.
number: 4
# You can config perm at the top of this config
perm-bypass-enabled: false
stats: true