Commit Graph

485 Commits

Author SHA1 Message Date
asofold
1bb1dd8a89 Add permission for breaking fluids. 2012-10-07 00:17:49 +02:00
asofold
81c924225d Do not check fast-break for creative mode anyway. 2012-10-07 00:05:22 +02:00
asofold
f6d34f36f0 Move "place against liquids" to block-place listener. 2012-10-07 00:00:32 +02:00
asofold
f913beba1f Adjust fight.reach to use optimal reference y. 2012-10-06 19:38:46 +02:00
asofold
308117054a Adjust fight.reach to use optimal reference y. 2012-10-06 19:36:28 +02:00
asofold
660182f351 NoFall: Account for just moved distance for moving onto ground. 2012-10-06 18:40:10 +02:00
asofold
0dec258753 Correct chat/fast actions. 2012-10-06 07:42:43 +02:00
asofold
0b87140998 Adapt fight.reach reach adaption to 0.75 at most, cancel more silently. 2012-10-06 05:15:08 +02:00
asofold
7d0db899f6 Adjust workaround use to reduce false positives. 2012-10-06 03:31:48 +02:00
asofold
8219c8e8df Small adaption for default config (chat). 2012-10-06 02:40:00 +02:00
asofold
390fa3f738 Attempt to prevent exploits of a workaround. 2012-10-06 01:57:06 +02:00
asofold
5dff15002a Attempt to fix nofall issues. 2012-10-06 01:22:08 +02:00
asofold
765b90ffd9 Adjust one string. 2012-10-05 23:12:58 +02:00
asofold
1f10a81448 Add ability configure passable check to ignore certain blocks. 2012-10-05 17:14:41 +02:00
asofold
73d2f79f8a Bleeding/Instable: More aggressive NoFall [no violations], creativefly
with accounting option.
2012-10-05 03:37:10 +02:00
asofold
59063c7497 Fix ArrayIndexOutOfRange in DelayableCommand. 2012-10-05 00:43:38 +02:00
asofold
5baaedce74 Add per check section debug flag support. 2012-10-04 02:06:00 +02:00
asofold
0ebb8b60d3 Passable: Fix glass panes and iron fences. 2012-10-04 01:31:01 +02:00
asofold
979fd0a5e2 Make penalty time more configurable for yawrate checking. 2012-10-03 19:08:13 +02:00
asofold
df22700a15 Use lower case + trim for similarity checks. 2012-10-03 18:31:39 +02:00
asofold
84555c4e51 Add triggers to combined.invulnerable to keep it more minimal. 2012-10-03 17:47:29 +02:00
asofold
7398952c5e Bleeding: Add combined.invulnerable to handle problems with players
relogging.
2012-10-03 17:27:50 +02:00
asofold
efabd0536b Add startupdelay to Logins check. 2012-10-03 14:13:25 +02:00
asofold
b2d6608eaa Correct one string. 2012-10-03 03:01:38 +02:00
asofold
ee7be35fa0 Remove fight.instantheal check. 2012-10-03 02:42:03 +02:00
asofold
07db0630fc Big change: Chat section rework. Add Logins check. Some config
adaptions.
2012-10-03 00:09:46 +02:00
asofold
a07202c1ff Prevent division by zero. 2012-10-02 17:04:24 +02:00
asofold
af8623ee81 Integrate captcha into commands check. 2012-10-02 16:08:41 +02:00
asofold
8b92bd74dc Only clear fly/nofall data if changing form/to creative mode. 2012-10-02 15:51:58 +02:00
asofold
74b3c1c84f Adjust Synchronization with captcha. 2012-10-02 15:32:53 +02:00
asofold
1e423b85d4 Bleeding: No longer ignore insta break for fastbreak. 2012-10-02 04:13:39 +02:00
asofold
9e6325eb9f PlayerLocation: consistency + cleanup. 2012-10-02 01:26:46 +02:00
asofold
5d337b2b25 Bleeding: Split off commands check [unfinished]. 2012-10-01 22:40:56 +02:00
asofold
b34aec55b4 Bleeding: Split off Relog check from nopwnage. 2012-10-01 09:56:49 +02:00
asofold
0574530c45 Bleeding: Add SPLASH_POTION to blockplace.speed. Add yawrate +
improbable
to
blockplace.speed and inventory.instantbow .
2012-10-01 07:39:38 +02:00
asofold
152b68f5b4 Show captcha at login, if active. 2012-10-01 05:50:37 +02:00
asofold
90e32942cb warnPaths: Fix method signature. 2012-10-01 03:52:25 +02:00
asofold
a7e0069595 Hack for cobwebs. Add permission for placing blocks against fluids. 2012-10-01 03:51:56 +02:00
asofold
77c50efce2 Correct order with null check. 2012-10-01 03:30:36 +02:00
asofold
553caeaf87 Correct listener registration order. 2012-10-01 03:25:39 +02:00
asofold
280d352a2f isLoginDenied: use time from argument. 2012-10-01 03:19:34 +02:00
asofold
b00c3b8256 Make some constants static. 2012-10-01 03:06:49 +02:00
asofold
5bceb353b7 Check against GameMode.CREATIVE in general. 2012-10-01 03:01:58 +02:00
asofold
13c4d654db Use char[] for captcha generation. 2012-10-01 02:59:02 +02:00
asofold
983c7173d7 typo. 2012-10-01 02:46:43 +02:00
asofold
c3eebcc9be Add convenience methods for debugging. 2012-10-01 02:22:50 +02:00
asofold
f05a327f4b Quick fix: cake + passable. Rename flag. 2012-09-30 23:10:26 +02:00
asofold
7693f25345 Bleeding: Put captcha into an own Check. Prepare chat.logins,
chat.relog and chat.commands .
2012-09-30 18:33:04 +02:00
asofold
b0be6353e9 Set PlayerLogn priority to normal to allow permissions plugins to set
up.
2012-09-30 16:22:13 +02:00
asofold
66f6d2d072 Completely bind yawrate check to angle check (includes exemption). 2012-09-30 16:12:25 +02:00
asofold
4a26f741df Small adjustments for logging. 2012-09-30 13:54:26 +02:00
asofold
aecf3a6f1f Bleeding: Adjust velocity handling for survivalfly. 2012-09-30 02:24:09 +02:00
asofold
26d47cd0f2 Add block id to fastbreak message. 2012-09-30 02:04:43 +02:00
asofold
d58fb3ea0a Survivalfly + web: horizontal speed, don't allow moving up in web.
Minor cleanup for flying checks (constants to fields, use loal
variables).
2012-09-30 00:59:12 +02:00
asofold
b22c954e58 Remove debugging output 2012-09-29 21:05:08 +02:00
asofold
7962962a40 Add: /ncp remove * [<check type>] 2012-09-29 20:57:44 +02:00
asofold
5b1eb3121e Bind yawrate checking to the angle permission for fight. 2012-09-29 20:09:57 +02:00
asofold
2518bf499d Fix prefixing issues with handleaschat/exclusions. 2012-09-29 20:04:05 +02:00
asofold
d83d07c42a Fix snow breaking time with wrong tool and efficiency. 2012-09-29 17:58:48 +02:00
asofold
1cbc4ed16c Use access methods for all normal logging to console. 2012-09-29 17:12:09 +02:00
asofold
704b4e8089 Revert unneeded adaption (allows too fast breaking). 2012-09-29 15:53:59 +02:00
asofold
040c5e27ab Workarounds for soulsand (passable) and chest/workbench (fastbreak). 2012-09-29 15:47:18 +02:00
asofold
6e8480ab6a Passable: Fix fence gate and other. 2012-09-29 01:29:02 +02:00
asofold
23e6d9b1be Bleeding: Add "passable" check (~vclip). 2012-09-28 03:08:34 +02:00
asofold
791dca6048 Put bunnyhopdelay back in (...). 2012-09-27 16:51:42 +02:00
asofold
17eaf11567 BLEEDING: Remove bunnyhopdelay. 2012-09-27 15:24:27 +02:00
asofold
26b4eb1458 Log reloading the config to console always and if activated to file too. 2012-09-27 15:11:38 +02:00
asofold
7a1308e996 Use distance for flying violations, not squared. 2012-09-27 12:43:01 +02:00
asofold
14da78fa8d Bad method name. 2012-09-26 16:43:13 +02:00
asofold
a1493a8c71 These are final. 2012-09-26 16:41:24 +02:00
asofold
71316e1f13 Set connect+read timeout for metrics. 2012-09-26 16:36:23 +02:00
asofold
994ccc681f Config version check back in, prepare update checking. 2012-09-25 22:08:22 +02:00
asofold
def16174da Correct fight.speed vl processing. 2012-09-24 16:21:26 +02:00
asofold
68c4a5f0b8 Let creativefly bypass perm. dominate over survivalfly, optimize moving
permission checks.
2012-09-24 14:33:25 +02:00
asofold
34a70251aa Ensure improbable check is bound to other checks being enabled for the
player.
2012-09-24 12:55:07 +02:00
asofold
0a2091ea54 Expert setting: savebackconfig 2012-09-22 00:59:38 +02:00
asofold
9b1d2c617a Make ignoring creative and allowFlight configurable for creativefly
check.
2012-09-22 00:08:57 +02:00
asofold
dc18dded88 Move: Only get data and config once and pass as arguments. 2012-09-21 23:56:46 +02:00
asofold
d35617a862 Remove hard coded kick from InventoryListener. 2012-09-21 16:48:40 +02:00
asofold
2cf9f5f9f8 Reset jumpphase and setback for moving in/onto laddrs/vines in any case. 2012-09-21 15:07:59 +02:00
asofold
2aea67b463 Fix type id not getting reset for player location. (Blame minor
optimizations.)
2012-09-21 15:06:30 +02:00
asofold
139567f150 Fix one spot: Setback location for ladder/vine. 2012-09-21 13:11:34 +02:00
asofold
6190f9af95 Use Bukkit where possible. 2012-09-21 03:46:00 +02:00
asofold
4e4556624a Bleeding: Add data expiration management. Also remove execution history
(remove command). Expiration duration is in minutes.
2012-09-20 20:16:00 +02:00
asofold
d046d1d06e Fix breaking time for ender chest. 2012-09-20 15:26:26 +02:00
asofold
450c14b97d Just looking over the code once. 2012-09-20 12:11:49 +02:00
asofold
035eddea3a Make reach distance reduction switchable (fight.reach.reduce). 2012-09-20 01:03:25 +02:00
asofold
6673d5be37 Bind improbable checks to other checks permissions, rather only run if
not
cancelled.
2012-09-20 00:55:50 +02:00
asofold
3524889bd7 ADjust fight.reach to deal distance penalty for far hits. 2012-09-20 00:09:01 +02:00
asofold
36b834df99 Adjust how first damage time for block break is updated. 2012-09-19 13:33:48 +02:00
asofold
764376f41d Add some @GlobalConfig entries. 2012-09-19 11:36:15 +02:00
asofold
f68cb5435d Minor optimizations. 2012-09-19 05:22:11 +02:00
asofold
836f3af19d Refine fighting checks [ongoing] 2012-09-19 02:20:21 +02:00
asofold
bb24ecaa93 Allow feeding yawrate violations to improbable check. Rename methods for
yawRate.
2012-09-18 17:53:30 +02:00
asofold
985a273286 Adjust WrongBlock kick message. 2012-09-18 17:26:15 +02:00
asofold
66fe28dd93 Add yawrate check to fight/combined. Adjust angle check. 2012-09-18 17:25:23 +02:00
asofold
5e2d4fe57f BlockProperties: Set default type to insta break, to avoid potential
compatibility issues.
2012-09-18 16:36:18 +02:00
asofold
e7d536cd39 Bleeding: Cancel damage for a while after turning a lot. (test commit) 2012-09-18 02:55:21 +02:00
asofold
1f07e303cd Synchronize parts of metrics (init, addFailed for async checks). 2012-09-17 21:12:56 +02:00
asofold
a79cd3f6f2 Optimize world config retrieval. 2012-09-17 20:52:13 +02:00
asofold
dc0aa6bf28 Synchronize changing the config file map. USe sync access form chat
checks.
2012-09-17 20:47:32 +02:00
asofold
f13ea3065d Switch order for read timed out in commented out update checking. 2012-09-17 13:56:28 +02:00
asofold
82502ca7cd Remove checkforupdates for the moment. 2012-09-17 00:06:59 +02:00
asofold
3348400268 Adjustments to fastbreak + debug output. 2012-09-16 23:40:19 +02:00
asofold
a478cc529a Add exemption commands and command to list commands, slight cleanup for
usage for commands.
2012-09-16 21:11:45 +02:00
asofold
76ccb4574b NCPExemptionManager: Check players removal also on kick, add unexempt,
isExempted by name. Fix unexempt for ALL. Register listener in onEnable.
2012-09-16 20:34:01 +02:00
asofold
a501b6e2e6 Adjust chat/kicks, revert vl decrease method for nopwnage. 2012-09-15 19:22:25 +02:00
asofold
af51326125 Add kicklist and unkick commands. 2012-09-15 18:16:32 +02:00
asofold
8aa31ff8a9 Adjust default configuration. 2012-09-15 17:49:20 +02:00
asofold
68e4d84a85 Adjust parsing of version. 2012-09-15 17:32:19 +02:00
asofold
2e9ae3aa83 Adjust violation history info to include n, av., max. 2012-09-15 17:23:47 +02:00
asofold
dcf7bacfa5 Ensure the parameters at the point of time of the
violation are used (refactor).
2012-09-15 16:25:14 +02:00
asofold
52fc47bd46 Small adaptions in moving checks. 2012-09-15 16:23:43 +02:00
asofold
90ad8d5189 Make update url clickable. 2012-09-15 10:40:20 +02:00
asofold
fb95ecfd7a Rename BlockUtils to BlockProperties. 2012-09-15 10:09:45 +02:00
asofold
8201bb3f4a Sort out packages further. 2012-09-15 04:34:13 +02:00
asofold
f6ec4545da Set instantheal to disabled by default. 2012-09-14 20:32:37 +02:00
asofold
74edac3d12 Add minimum external access API to BlockUtils. 2012-09-14 16:22:05 +02:00
asofold
5ea796e29b Add GLobalCOnfig annotation to command lists (exclusions, handle as
chat).
2012-09-14 15:34:33 +02:00
asofold
ef335a1632 Move data structure package to utilities. 2012-09-14 14:57:58 +02:00
asofold
97d14c84af Minimal adjustment. Leave some cluttered lines for further testing. 2012-09-14 14:52:45 +02:00
asofold
6d45a88c03 Improve config handling: 1. Fix world configs stored under the wrong
name. 2. Add warnings if paths are used in world files that should only
or can only be set in the global configuration file.
2012-09-14 14:52:15 +02:00
asofold
9ec4cfaa15 Adjust fast breaking and wrong block check, allow '.' for ncp remove
command.
2012-09-13 22:48:22 +02:00
asofold
a34b772f8d Improved info and remove commands to work with offline players. [Mind:
removing from history seems exact, removing data will most often remove
the whole check category data , like blockbreak.]
2012-09-13 15:22:59 +02:00
asofold
347b85c7b7 Always schedule async violations. (Does not hurt.) 2012-09-13 15:07:47 +02:00
asofold
456c3bfbd1 Make ViolationHistory accessible by player name. 2012-09-13 14:14:46 +02:00
asofold
3ed408a3af Add shortterm component to frequency check. 2012-09-13 13:41:13 +02:00
asofold
0c12553c4b Melons + efficiency. 2012-09-13 12:03:23 +02:00
asofold
4501169db1 TickTask: add tick count, randomize method ordering. 2012-09-13 11:03:17 +02:00
asofold
933e308154 Exclude insta breaks from fastbreak check. 2012-09-13 00:52:37 +02:00
asofold
136ef9686a Small adjustments. 2012-09-13 00:40:51 +02:00
asofold
12fd08be68 adjust fastbreak delay to 60. 2012-09-12 20:49:42 +02:00
asofold
910e0dd8e7 Forgot to commit ? 2012-09-12 20:49:11 +02:00
asofold
0c9f4e9ed3 Fix potential issue with world configs. 2012-09-12 20:30:29 +02:00
asofold
19ca256c30 Fix issue with replacing broken blocks. 2012-09-12 20:28:36 +02:00
asofold
c1195c630a Use workaround for glass type finally (might revert effmod later). 2012-09-12 20:00:53 +02:00
asofold
a627ffd169 Add efficiency modifier to some glass type blocks. 2012-09-12 19:46:59 +02:00
asofold
866f4fde6c Clean up fastbreak: Add check for frequency of block breaking to leave
the survival block breaking duration to the fastbreak check. Adaptions
to the configuration. Fix creative / speed.
2012-09-12 08:01:32 +02:00
asofold
7cdfeb663a Quick fix for fastbreak: Efficiency on leaves. 2012-09-12 07:40:59 +02:00
asofold
6371e0f20c Bleeding: Improved fast break check, can be switched with the oldcheck
setting. fastbreak.debug to true + nocheatplus.admin.debug gives output
about breaking time and expected breaking time for balancing purposes.
Improved WrongBlock.
2012-09-11 13:23:05 +02:00
asofold
120d17a23c Set up structure for exact breaking times. 2012-09-10 22:04:48 +02:00
asofold
8d41378688 Make wrong block vl decrease over 2 minutes. 2012-09-10 20:57:40 +02:00
asofold
256fd6b26f Add new method for fastbreak (switchable). 2012-09-10 20:54:19 +02:00
asofold
544e0a06be Adjust Knockback sprint time: Only count in if really sprinting, check
on monitor priority level.
2012-09-10 15:52:16 +02:00
asofold
778461da16 Rework actions execution, simplify + optimize, add metrics count
asynchronously.
2012-09-10 15:33:18 +02:00
asofold
0908b79657 Add command ncp removeplayer, to remove player data. @factories: Should
they actually be called factories?
2012-09-10 14:03:21 +02:00
asofold
de51c493d2 AsyncCheckData should be abstract. 2012-09-10 12:58:27 +02:00
asofold
fb15e2f144 Do activate the improbable check, seems ok without fastbreak added. 2012-09-10 12:48:02 +02:00
asofold
f1358ec1a6 Add simple wrong block check to block break. 2012-09-10 12:39:29 +02:00
asofold
070bcac0da Add example string for tempkick. 2012-09-10 11:08:55 +02:00
asofold
310745cde6 Re-add combined check, deactivated by default, inclusion of fastbreak
check configurable, deactivated by default.
2012-09-10 11:07:07 +02:00
asofold
cd856208d2 Add ncp tempkick command + API do deny logins [missing: persist]. 2012-09-10 10:10:45 +02:00
asofold
4d0b28606d Bleeding: Add unused skeleton of an Improbable check. 2012-09-10 08:52:27 +02:00
asofold
de9119d659 Fix check name for history. 2012-09-09 11:39:50 +02:00
asofold
ae317f4154 Fix TickTask, lighter synchronization. 2012-09-09 07:25:38 +02:00
asofold
f9cfd8bd5b Question. 2012-09-09 07:22:56 +02:00
asofold
0b083f9d30 Fix fastbreak for the moment. 2012-09-09 06:02:43 +02:00
asofold
b5ee2fe985 Chat: request permission update on world changes. 2012-09-09 02:37:31 +02:00
asofold
8fde82b113 Fix: read range for globalchat/similarity. 2012-09-09 02:12:37 +02:00
asofold
9a2852c7e0 Fix cached captcha permissions not checked. 2012-09-08 23:53:05 +02:00
asofold
5633ce9315 Remove delay from default command actions. 2012-09-08 23:48:48 +02:00
asofold
703740ea04 Use the actions field. 2012-09-08 23:39:23 +02:00
asofold
af2b9fb2b5 Bleeding: Fully rework asynchronous actions execution. 2012-09-08 23:34:49 +02:00
asofold
39fb4c4b91 Make tolerance for step check configurable. Adds to ConfigFile. Use
maximum for vDistanceAboveLimit.
2012-09-08 21:48:36 +02:00
asofold
1b9b83efc8 Tweak nofall slightly (performance). 2012-09-08 21:33:37 +02:00
asofold
cc7eb2cbce Bleeding: Set up AsyncCheck structures (TickTask/permissions). [Stage 1
- missing: make actions work async where necessary + schedule rest.]
2012-09-08 20:16:10 +02:00
asofold
1d34d68085 selfhit: Set default log delay to 0. 2012-09-08 15:36:37 +02:00
asofold
ad1e1b2cd9 Only save back config if loading was successful (Ticket 179). Adapt
messages on config failures, log on severe level.
2012-09-08 14:34:21 +02:00
asofold
fa8f1cc4cb gobalchat: Add hidden active flags for global and player (works per
world config). Ensure clear calls reset the added counts.
2012-09-08 14:15:56 +02:00
asofold
128836be65 Remove ban and ip-ban from nopwnage actions (keep in strings). Adjust
some messages.
2012-09-08 09:21:08 +02:00
asofold
f83d3b7c10 Adjust kick commands for chat to use delay. 2012-09-08 09:05:23 +02:00
asofold
f3a9250ee9 captcha: adjust to reset on login. 2012-09-08 08:30:08 +02:00
asofold
0160924567 Hide nomovedtooquickly config settings (temp). 2012-09-07 23:23:00 +02:00
asofold
07eec2ece9 Correct config path of selfhit. 2012-09-07 23:04:04 +02:00
asofold
ac9b6473fc Added self-hit check. 2012-09-07 22:46:13 +02:00
asofold
5419b3ceff globalchat: add minwordsize and maxwordsize to methods. Simplify
constructors.
2012-09-07 11:31:47 +02:00
asofold
ad849d8273 Fix nopwnage VL accumulating wrongly. Add nopwnage.debug flag. 2012-09-07 10:53:09 +02:00
asofold
d4103899a5 Re-structure globalchat: rename config paths, add hidden settings, add
similarity check. Adjust default captcha letters (Ticket 194).
2012-09-07 10:31:07 +02:00
asofold
89a5b3221f globalchat: Add cleanup methods. engine: synchronize over engine, adapt
interfaces for per player stuff. Add per player checks for word
repetition.
Add
prefixtree
package, repair generics.
2012-09-05 08:51:11 +02:00
asofold
ecb6c73356 globalchat: synchronize parts over engine. 2012-09-05 01:45:23 +02:00
asofold
f2b29da6a6 Actually it is CompressedWords, rather. 2012-09-05 00:30:48 +02:00
asofold
17ded8adee Fixed some generic setup. 2012-09-04 12:35:09 +02:00
asofold
161548cbff Fix CompressedChars filling up indefinitely, monitor exact node number. 2012-09-04 09:08:19 +02:00
asofold
b262753f4f Change registration order in enable / disable. 2012-09-04 08:52:03 +02:00
asofold
c89e6c6957 Ensure readers/writers are closed. 2012-09-04 08:42:26 +02:00
asofold
3940f275c5 Reset speed on clearNopwnageData. 2012-09-04 07:10:11 +02:00
asofold
97c7f68ad3 Set default settings for chat to something more reasonable. 2012-09-04 06:54:36 +02:00
asofold
da420ec877 Fix some reloading issues. 2012-09-04 06:48:21 +02:00
asofold
47f78f8b02 globalchat: Do not activate engines be default. 2012-09-04 06:05:35 +02:00
asofold
d7525bd73c Fix issue on reloading. 2012-09-04 06:03:43 +02:00
asofold
e506e7f2d0 globalchat: Disable compressed chars by default, active flags for
engines.
2012-09-04 03:15:31 +02:00
asofold
9ea390ac40 Adjust default speedingspeed to 200. 2012-09-04 02:14:09 +02:00
asofold
5f55935d5c Remove trimming from command lists for chat. 2012-09-03 11:56:06 +02:00
asofold
b997a651fb Adjust nopwnage speed check, remove timeout interval for a queue. 2012-09-03 11:16:51 +02:00
asofold
4144e14bac Add convenience methods to PrefixTree + add SimpleCharPrefixTree. 2012-09-03 10:19:57 +02:00
asofold
27a74a4cfb Make checking for updates configurable. 2012-09-03 10:18:16 +02:00
asofold
a68d603348 Fix some command issues. 2012-09-03 09:55:14 +02:00
asofold
acabe72db1 Add speedingspeed and permission (speeding) to survivalfly. 2012-09-03 09:25:43 +02:00
asofold
7005b141cf Add permission for speeding. 2012-09-03 08:46:56 +02:00
asofold
c759d24e7f Attempt to fix step hack detection in a simple way. 2012-09-03 08:39:54 +02:00