Commit Graph

234 Commits

Author SHA1 Message Date
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