Commit Graph

236 Commits

Author SHA1 Message Date
Evenprime
6a7e7d239f Try to make speedhack ignore "cancelled" move events. 2011-08-21 14:37:21 +02:00
Evenprime
0284f5be3f More stuff for infinitedurability check: cancel using of items, choose
if to log or not. Only log once every 5 seconds.
2011-08-20 22:46:24 +02:00
Evenprime
c207f6ce94 Fix the fix for cancelled move events. Rather use the real player
location than the faulty "from" location as a new setback point.
2011-08-20 22:10:13 +02:00
Evenprime
bc35207828 Detect and kick players that activate the infinite durability hack 2011-08-20 21:33:47 +02:00
Evenprime
624e04393f Fixed behaviour of ladders that don't fully connect to the ground 2011-08-20 20:00:43 +02:00
Evenprime
d23f38ebd1 Fixed water on top of player behaviour + Fixed behaviour in case of
cancelled move-events
2011-08-20 15:51:55 +02:00
Evenprime
6033ee47e5 Fixed fences and halfblocks behaviour + make "enforceteleport" true by
default
2011-08-19 20:39:40 +02:00
Evenprime
f13c35ed59 Fixed movement check to reduce false positives/increase accuracy
(again)
2011-08-17 17:01:24 +02:00
Evenprime
3d338d5a65 Fixed a NPE with Nether portals in case that nether=false and
therefore the "to" location is null
2011-08-16 23:23:19 +02:00
Evenprime
0afa1d90f7 Display message(s) of the day before loading the rest of the plugin. 2011-08-09 18:39:27 +02:00
Evenprime
7e0721da98 Removed no longer needed workarounds + lots of code formatting 2011-08-09 15:58:05 +02:00
Evenprime
33e9c46716 Updated for CB #1046. Use new PlayerVelocity event + adapt to new
player move events + use new method to find out if "allow-flight" was
set.
2011-08-09 08:32:37 +02:00
Evenprime
91c77a1aab Removed redundant code, made waterelevators option work again 2011-08-08 20:51:20 +02:00
Evenprime
5485f1e090 Fix bug related to beds and make flying/jumping check a bit more
precise.
2011-08-08 18:25:19 +02:00
Evenprime
c08e8f0edf Fixed loophole that would allow players to bypass NoCheat for one move
when leaving vehicles.
2011-07-26 19:43:21 +02:00
Evenprime
6bdec962b2 Fix for strange bug preventing people (sometimes) from walking down
over ledges/stairs.
Changed behaviour if players are allowed to fly but seem to fly too
fast.
2011-07-23 19:42:38 +02:00
Evenprime
cd99a78718 Added new Permissions support, and defined permissions in plugin.yml
Added Tips-and-Tricks on startup
2011-07-18 17:18:26 +02:00
Evenprime
c438eee164 Option to set movement speed limits 2011-07-17 17:16:08 +02:00
Evenprime
ee1ae892eb Prevent the creation of new tasks while disabling the plugin 2011-07-17 07:45:38 +02:00
Evenprime
c5ec73b1f4 Fixed compatibility with Superjump plugin (and reduced false positives
in other cases)
2011-07-16 15:10:48 +02:00
Evenprime
68591702cb Another potential fix for spawn problems 2011-07-15 21:37:48 +02:00
Evenprime
978afb76cf Added option to set time between summaries 2011-07-14 06:53:44 +02:00
Evenprime
243cea5102 Fixed respawning (again) 2011-07-13 01:15:10 +02:00
Evenprime
ad78a91aab Fixed some problematic cases with teleports
Replaced flight-check completely with newer version
Fixed descriptions.txt file not getting automatically generated as
promised
2011-07-11 15:34:32 +02:00
Evenprime
62592a3580 Fixed moving check to be much stricter on sprinting mods and similar 2011-07-10 11:23:55 +02:00
Evenprime
25ab6a6659 Added option to limit reach for block destruction + configuration file
will get default values for missing boolean options instead of always
false.
2011-07-09 18:32:07 +02:00
Evenprime
be9a728eda Custom commands can now execute plugin commands too + made nukeCheck
a bit more reliable and faster
2011-07-09 16:14:20 +02:00
Evenprime
67c8ca13d1 Experimental "nuke" protection 2011-07-08 20:14:54 +02:00
Evenprime
8729400be5 Fixed Respawning 2011-07-05 16:29:19 +02:00
Evenprime
9406961f05 Fixed a rare exception in moving check if a teleport destination
isn't in the same world as the player.
2011-07-04 00:27:57 +02:00
Evenprime
272f2d410c Fixed teleports (for real this time) by completely rewriting how they
are handled.
2011-07-03 13:06:17 +02:00
Evenprime
c3b6148245 Adapted to CB 950+: Fixed teleports, reduced false positives while
moving/jumping around randomly.
2011-07-01 10:51:25 +02:00
Evenprime
a4bb515ee0 Potential fix(es) for flying after respawning 2011-06-30 13:30:00 +02:00
Evenprime
61d89d78d8 Removed Bedteleport check, workaround for bogusitems pickup check
(bukkit has a nasty bug here), adapted moving and speedhack check for
new system.
2011-06-24 14:10:54 +02:00
Evenprime
669f730fd4 Fix for vehicles 2011-06-24 13:41:48 +02:00
Evenprime
b68fa0cc34 Version bump to 1.05 2011-06-19 13:18:14 +02:00
Evenprime
2fa4beb656 Show warning about disfunctional Permissions plugin (at most) every 60
seconds instead of just once.
Shutdown ALL async tasks properly (missed one)
Added new keyword "[distance]" for moving violation messages
2011-06-15 16:02:20 +02:00
Evenprime
bfae43effc A little bit improved handling of velocity-changing plugins
Potential fix for respawn-events with changed respawn-location
2011-06-13 20:55:55 +02:00
Evenprime
84c8e98054 Potential fix for World<->Nether teleports
Potential fix for Vehicle destruction problems
2011-06-12 11:35:03 +02:00
Evenprime
2c8de34864 Removed Itemdupe check (no longer needed)
Readded water ladder support (optional by config file)
2011-06-06 20:58:57 +02:00
Evenprime
a039edcfaf Use soft dependencies to request loading of Permissions and CraftIRC
before NoCheat
2011-06-06 19:57:59 +02:00
Evenprime
30622e9235 New permission "fastswim" and config option "allowfastswim" to
accompany the new moving-check feature.
2011-06-06 18:44:42 +02:00
Evenprime
e565e07c6a - fixed loading of configuration if a String value is missing
- don't count placing air in air in airbuild check
2011-05-25 22:12:45 +02:00
Evenprime
c61584efb6 Updated Moving-check:
- fixed potential exploit to partially bypass nofly protection in
certain cases
- removed some legacy workarounds that are probably no longer needed
- teleport players after violations closer to the ground, if the
original target location is high above ground
- fixed bug occuring while reading config file if String parameters
are missing in the file
2011-05-25 22:01:42 +02:00
Evenprime
22d73209a8 Fixed speedhack check and minor other stuff 2011-05-17 18:12:42 +02:00
Evenprime
1fe7aaa1ae missed a uncatched exception 2011-05-16 16:00:17 +02:00
Evenprime
5a72df08f7 Version 1.00 - fixed some remaining errors after the merge 2011-05-16 15:01:44 +02:00
Evenprime
8705328021 Added warning in case allow-flight is set to false in
server.properties.
2011-05-16 13:36:54 +02:00
Evenprime
b656644b29 Fix for a bug with Minecarts /and probably other vehicles) that only
happens if players destroy their cart instead of leaving it.
2011-05-01 23:42:26 +02:00
Evenprime
11e18e0423 Fixed bug that caused part of the moving check to be executed twice. 2011-05-01 02:00:42 +02:00
Evenprime
e404a65b0f Code cleanup and big performance improvement of "moving" check 2011-04-30 23:36:02 +02:00
Evenprime
ff2f9244a6 Fixed bug that would cause part of the moving check to not work at all 2011-04-30 07:06:05 +02:00
Evenprime
bc45bac045 Implemented "fakesneak" check - detecting players that "sneak too
fast" + again some code moving for better readability
2011-04-29 18:12:18 +02:00
Evenprime
6a5b9f2a20 Split itemdupe check into itemdupe and bogusitems checks + logging
instead of just System.out.println
2011-04-27 11:17:51 +02:00
Evenprime
85a52c5fbf Improved itemdupe check + reliable fix for the underlying problem 2011-04-26 21:04:06 +02:00
Evenprime
d0ba809f2a Rewritten speedhack check to detect much earlier and only if the
server doesn't lag + measure server lag every half second
2011-04-26 16:11:45 +02:00
Evenprime
cce01cca1a Allow using permission nocheat.itemdupe to bypass the new check. 2011-04-25 17:51:46 +02:00
Evenprime
385c807c10 A fix for a new itemduplication bug involving Workbenches, but may
also fix other such bugs due to its generic nature.
2011-04-25 14:03:17 +02:00
Evenprime
eb3ddabbc3 Keep orientation of teleported player when teleporting 2011-04-17 14:41:58 +02:00
Evenprime
f75a7ecaa1 Better compatibility with Essentials "jail" plus big performance
improvements
2011-04-15 19:57:28 +02:00
Evenprime
a3a8e64127 First rudimentary implementation of a new "sneakrun" check - still
needs refinement
2011-04-13 20:04:24 +02:00
Evenprime
910f5e8d84 Version bump 2011-04-11 16:48:58 +02:00
Evenprime
467fb90ad1 Shutdown logging to file in a clean way if the plugin gets disabled 2011-04-11 16:45:30 +02:00
Evenprime
7390acdd39 Removed "precisevelocity" option because it is no longer needed +
added option to allow flying generally + much more reliable way to
determine a players velocity before Minecraft taints the values
2011-04-11 16:12:13 +02:00
Evenprime
004748dbd3 Fixed concurrentModificationException 2011-04-10 22:08:05 +02:00
Evenprime
3082133e40 Option to decide between two variants for supporting velocity
(standard and "less precise" for compatibility with other plugins +
cleanup function running at regular intervals + permission to allow
flying
2011-04-10 15:20:41 +02:00
Evenprime
8e04bdece9 Fixed recursion within error handling of Permissions plugin 2011-04-08 09:43:47 +02:00
Evenprime
9ef5282905 Plugin rename from "NoCheatPlugin" to "NoCheat" and configurable
speedhack check log message + v0.8
2011-04-04 20:44:14 +02:00
Evenprime
f8eff5ee25 Renamed to NoCheat + configurable moving check messages 2011-04-04 20:20:03 +02:00
Evenprime
3f7f537fc0 v0.7.8: Fixed config file creation/initialization + Walking on Fence
no longer causes false positives
2011-04-03 22:43:31 +02:00
Evenprime
c47c2d98e8 Code Refactoring plus preparations for custom events 2011-04-03 20:36:06 +02:00
Evenprime
085cad8ee8 Preparations for implementation of Custom Actions + better lag
resistance for the Moving-check in combination with serverside
velocity changes for the player
2011-04-01 22:02:58 +02:00
Evenprime
4535efd2eb A bit code cleanup and new method to remove data for no longer online
players.
2011-03-30 12:50:59 +02:00
Evenprime
a9c85d231e Workaround for changed PLAYER_MOVE event logic + catch and
handle Permissions exceptions + Version 0.7.7
2011-03-30 07:33:30 +02:00
Evenprime
8b8e5c2267 Preparations for new Bukkit version 2011-03-29 13:32:05 +02:00
Evenprime
3e92d0b9a2 Potential fix for problems with Borderguard Lite 2011-03-28 15:27:44 +02:00
Evenprime
fdd8bfdf6d Fixed Water ladders facing towards positive z-axis 2011-03-28 14:11:40 +02:00
Evenprime
d93438db24 Ignore vehicles and movement with positive Y-Velocity in Speedhack
check + reset speedhack event counter in case of teleports + version
bump
2011-03-26 17:20:27 +01:00
Evenprime
77f347e182 Refactoring: seperate listeners for different checks + instancing
instead of static for almost anything
2011-03-25 16:47:37 +01:00
Evenprime
6a6cb9e247 Potential bugfix for false positives while landing during move event +
Moving check now (somewhat) respects vertical velocity of the player.
2011-03-21 18:28:49 +01:00
Evenprime
49f8b6cb5e Airbuild check logging now more flexible and less spamming with heavy
violations.
2011-03-21 18:11:21 +01:00
Evenprime
8b7c6f289a Version bump to 0.7.3 2011-03-21 16:09:13 +01:00
Evenprime
e4af83b425 explicitly ignore vehicles with movingCheck (skypirates) and up the
threshold for jumping by 1, meaning the jumping arc can be a bit
longer than before (but not higher at total).
2011-03-21 15:32:18 +01:00
Evenprime
c655086b4e (Hacky) Fix for detecting and handling teleporting between worlds with
the /world command from "Essentials"
2011-03-20 15:17:39 +01:00
Evenprime
53c9dd50f1 Potential fix for teleporting by other plugins + also log worlds with
coordinates.
2011-03-16 20:34:24 +01:00
Evenprime
3075e79d83 Version bump to 0.7 2011-03-15 17:38:47 +01:00
Evenprime
18ccc4c668 I give up. Determining if a player got pushed horizontally by an
enemy is unreliable/impossible. This is the easy way to mitigate
the problem...
2011-03-15 17:29:33 +01:00
Evenprime
6fd8c775c5 New movement check model + fixed logging to console
New move model works with absolute limits instead of relative limits
for height checks.
2011-03-15 16:25:11 +01:00
Evenprime
c5c67c4f7f Version bump to 0.6.9 2011-03-14 16:16:49 +01:00
Evenprime
43f362e3d6 Another fix for water elevators. 2011-03-14 15:59:48 +01:00
Evenprime
5ba7ce4991 Fixed a small bug causing the log message summary to be displayed
earlier than I intended.
2011-03-13 18:17:31 +01:00
Evenprime
a85084d54a Version bump to 0.6.8 + changes to moving logging: Show log summary
after a certain minimum time of no violations instead of a certain
minimum number of events with no violations.
2011-03-13 14:41:20 +01:00
Evenprime
379fd75068 Added support for logging to irc with CraftIRC plugin + small fixes to
logging.
2011-03-13 14:27:21 +01:00
Evenprime
c4cbff5bef Set minimum "freemoves" to 1 and made neccessary codechanges to
support that.
2011-03-12 17:12:26 +01:00
Evenprime
d05bd2be04 Replaced airbuild-check with something simpler + set minimum freemove
limit to 1.
2011-03-11 13:00:38 +01:00
Evenprime
6cca892298 Fixed potential nullpointer exception(s)
Not sure if these tecnically could actually happen, but its probably
better to fix a nonissue than to not to fix an issue.
2011-03-11 09:00:20 +01:00
Evenprime
e388d44719 Fixed some minor loopholes that would allow players to
fly/speedhack after getting legitimately teleported somewhere. They
would've still been logged, but the "reset" functionality could be
broken in these cases.
2011-03-11 07:57:23 +01:00
Evenprime
36953f4f08 Potential fix for Multiworld support:
- If a player "moves" between worlds he won't be checked
- If a player gets teleported by something else than my plugin the
setback locations for moving and speedhack checks get discarded.
2011-03-11 07:39:04 +01:00
Evenprime
5df7af20b3 Final changes to moving-check + version bump 2011-03-09 18:32:42 +01:00
Evenprime
ad9d14dee1 added damage listener to reset players jumpingphase when hit. 2011-03-09 13:16:17 +01:00
Evenprime
75122fb1af Removed dupebydeath-check because it is no longer needed starting with
build #520
2011-03-09 13:00:55 +01:00
Evenprime
3bcb55d2b2 Finally a clean solution for getting stuck on ledges + resetting
player to his last valid location on the ground instead of somewhere
in midair + even less verbose logging (only show logs if the violating
player made 40 legitimate moves in a row. If he keeps doing
violations, just keep counting incidents).
2011-03-08 19:12:45 +01:00
Evenprime
4a09449d2c Version 0.6.4, Commands and code cleanup 2011-03-05 15:58:19 +01:00
Evenprime
45b4f11452 Code cleanup 2011-03-04 20:38:54 +01:00
Evenprime
2e711e4f44 New optional bugfix for teleporting out of beds + removed now useless
code + changed some default values
2011-03-04 19:37:20 +01:00
Evenprime
8c11e72095 Fixed sleeping + fixed hidden water ladders + version bump
Players going to sleep can now stand further away from the
bed without triggering a violation.
Quick fix for hidden water ladders.
2011-03-03 20:14:09 +01:00
Evenprime
ac44b17c31 Fixed bugs introduced by refactoring + version bump to 0.6.1 2011-03-01 18:40:26 +01:00
Evenprime
78c264d726 Copy+Paste errors fixed + renaming of files to match module names 2011-03-01 17:52:36 +01:00
Evenprime
e83984d2ce Further changes for more modifiability of various checks/bugfixes 2011-03-01 17:28:52 +01:00
Evenprime
11bba9e6ae Lots of renames and moving stuff around to be better organized 2011-03-01 15:17:12 +01:00
Evenprime
2bca8f5ead minor bug with speedhack message fixed 2011-02-28 17:10:12 +01:00
Evenprime
ea414167e0 New check "dupebydeath" + big changes to "speedhack" check 2011-02-28 16:57:15 +01:00
Evenprime
eae6bdc967 mostly a revert to values from 0.5.7 2011-02-27 18:50:21 +01:00
Evenprime
2bf722a5f9 Much lower limits for horizontal movement in moving check 2011-02-27 15:46:10 +01:00
Evenprime
8ea62ae52a Fixed wrong violation when "teleporting" into a bed 2011-02-26 19:38:54 +01:00
Evenprime
80aa08d279 Version 0.5.6 - another minor tweak to categorizing what kind of
violation has happened
2011-02-25 18:46:41 +01:00
Evenprime
c5b2fcb1f2 Further tweaking of initial values 2011-02-25 18:27:06 +01:00
Evenprime
7a976aaf98 Compatible with MC server 1.3 and Permissions 2.0 + 2.1 2011-02-24 19:24:19 +01:00
Evenprime
cf6895139d Version bump to 0.5.4 2011-02-22 18:41:13 +01:00
Evenprime
02628becaf Option to "log" to moderators + more code comments + info about active
checks at startup
2011-02-22 17:30:00 +01:00
Evenprime
a0cd0995c9 Bump to v0.5.3 + reverted constructor to be compatible with older
bukkit versions again.
2011-02-22 15:19:04 +01:00
Evenprime
62dfce532d Fixed logging + new anticheat mechanism
Logging of moving violations (previously reset coordinates of event
before logging, therefore the logged information was not useful at
all).

Added check for building. Building against thin air is not permitted
in the client singleplayer game, so why should it be on a server?
2011-02-21 19:23:05 +01:00
Evenprime
dc83bdb17c Version 0.5.2 - minor changes before release 2011-02-20 11:58:15 +01:00
Evenprime
2daeabc157 Reworked movingcheck to make it easier later-on to modify/adapt.
Now instead of resetting the player after every minor illegal move, he
gets 2 moves in a row. If one of them is legal, we allow it. This is
to give stuck players the chance to escape themselves.

16 minor illegal moves in a row count now as one "normal" illegal
move.
2011-02-20 10:01:53 +01:00
Evenprime
b31f476149 Partly commit of reorganization of plugin structure. 2011-02-19 19:47:57 +01:00
Evenprime
9ebc186490 version bump 2011-02-19 15:01:23 +01:00
Evenprime
9e01d7aedf Changed standard location for configuration and log file. 2011-02-18 20:43:09 +01:00
Evenprime
461097af56 Yet another fix for a "player getting stuck in wall" bug.
I forgot to handle the case where a player is stuck in a wall without
something below (e.g. the infamous minecart ride against a ceiling).
2011-02-18 18:00:47 +01:00
Evenprime
7340933587 Fixed behaviour inside of walls (e.g. after teleports, falling
sand/gravel)
2011-02-18 16:15:57 +01:00
Evenprime
125628cdd8 Fixed Permissions - Fixed bug with players with identical names -
Fixed Minecart bug
2011-02-17 21:48:03 +01:00
Evenprime
c223358e7d Permissions support + fix regression at half blocks and stairs 2011-02-17 18:13:05 +01:00
Evenprime
bf07aa16d7 Complete rewrite of the "onGround" check. Now it is much more
reliable.

OPs are now no longer filtered. (I use player.isOp() to check for
OP-status until I have a better system.

Increased threshold for speedhack from 50 to 60 to reduce false
positives. This value will at some point be configurable by the server
admin.
2011-02-17 16:07:56 +01:00
Evenprime
79c8fd6060 Rename + Speedhack-detection + bugfix
Renamed Project into NoCheatPlugin, because the old name doesn't fit
it anymore.
Also added a first draft of Speedhack detection. Will log suspicious
behaviour.
Fixed another bug with ladders, if a player jumps onto them and holds
itself only with his hands (metaphorically speaking).
2011-02-16 23:16:09 +01:00
Evenprime
20a67d606d Fixed a literal corner case.
When walking diagonally over a pit, Minecraft elevates a little in the
case that you are going to fall down on one side. This special move is
now treated as valid.
2011-02-16 19:52:34 +01:00
Evenprime
1598d487d5 Bumped version number to 0.2
This release should cause (almost) no more false positives on ladders,
stairs and half-blocks.
2011-02-16 15:31:59 +01:00
Evenprime
db5b1d051a Initial Commit to GIT Repository. 2011-02-16 15:15:35 +01:00