Commit Graph

374 Commits

Author SHA1 Message Date
Evenprime
7930bcb81d Further changes to logging and actions 2012-01-29 16:13:22 +01:00
Evenprime
6d9675cb6a Class renamed to be more descriptive 2012-01-25 23:25:25 +01:00
Evenprime
b6154df02a Rewritten logging system, get rid of "LogLevels", allow free choice of
log destinations (chat, console, file) instead.
2012-01-25 23:18:12 +01:00
Evenprime
8488056130 Updated to new RB and event system. 2012-01-25 17:04:07 +01:00
Evenprime
810ae38fc7 Only one permission for all commands, new check "chat.color". 2012-01-17 15:45:58 +01:00
Evenprime
5511a92bdf Make our CommandSender look like a ConsoleCommandSender, because some
plugins insist on that.
2012-01-11 02:49:22 +01:00
Evenprime
b3ebec3580 Redstone repeaters are considered half-blocks now. 2012-01-08 19:00:23 +01:00
Evenprime
768a9fb9a1 Revert a change made concerning consolecommands. They are now (again)
executed immediatly.
2012-01-08 18:46:45 +01:00
Evenprime
4a9bc95aad Drop check - kick players for dropping too many items in a short
timeframe + Support permission changes better in playermove checks
2012-01-05 14:04:15 +01:00
Evenprime
e8d8341d3b Fix players getting drawn back to a really old location if
they get, then lose the "moving" permission. Silently catch
all exceptions in command execution that can't be handled anyway.
2012-01-04 20:44:13 +01:00
Evenprime
b10a02d424 Catch random, unexplainable NPE in Inventory listeners when shutting
down
2012-01-04 14:26:13 +01:00
Evenprime
83789e27c0 Execute commands delayed synchronous 2012-01-04 14:25:44 +01:00
Evenprime
655dae0d85 Even better compatibility with LumberJack without losing security 2012-01-01 19:05:19 +01:00
Evenprime
7018858537 Support the "rocket" command and similar stuff better 2012-01-01 18:18:34 +01:00
Evenprime
f3df291f85 Increase minimal delay between two jumps from 3 to 9 ticks 2012-01-01 17:56:37 +01:00
Evenprime
5d56a8c66c Ignore Blockbreak events if the block clearly wasn't broken by a
player manually
2012-01-01 15:15:20 +01:00
Evenprime
5818a32fc0 Remove fight.selfhit check as it causes sometimes problems and is no
longer really needed
2011-12-29 16:43:21 +01:00
Evenprime
1eefa59640 Make sure the player is in a world, and if not, fall back to default
configuration.
2011-12-28 19:28:54 +01:00
Evenprime
c3a429ca10 Fix NPE on teleports. Show NoCheat commands to everybody who at least
has permission for one of the commands.
2011-12-24 01:31:41 +01:00
Evenprime
9735f3fac1 Deactivate dropCheck for now, as it faces an unsolvable problem 2011-12-23 22:14:44 +01:00
Evenprime
bc9869a68f Restructured how data and config per check is created and stored,
bundle checkspecific stuff in packets, use our own "CommandSender"
instead of Bukkits consolecommandsender for issuing commands
2011-12-23 19:41:24 +01:00
Evenprime
eb87a37d5b some moving of source files 2011-12-23 17:21:35 +01:00
Evenprime
add6316c04 Fix double vs. int conversion problem 2011-12-23 17:13:00 +01:00
Evenprime
dc3887b599 Lower default flightheight limit 2011-12-23 17:04:01 +01:00
Evenprime
0c506576d3 New check "inventory.drop", some more saveguards for checks etc. in
case of errors.
2011-12-23 16:56:32 +01:00
Evenprime
dc03c84025 Set an absolute maximum flight height for players. 2011-12-23 14:57:13 +01:00
Evenprime
91f730d731 Prevent SpamCheck from going into "lockdown" if the system time
changes somehow.
2011-12-23 14:44:45 +01:00
Evenprime
2874b41e88 Hide NoCheat from players by responding to failed commands with the
default command not found message
2011-12-22 09:00:17 +01:00
Evenprime
66c93513bd Ignore attack event that comes after an "DamageType.CUSTOM" events
Ignore EnderDragons and giants in "fight.direction" check
2011-12-15 16:34:11 +01:00
Evenprime
614db88d54 Fix another outdated config.txt entry, fix nofall check dealing damage
to players that switch from "creative" to normal, fix players being
unable to climb out of trapdoors with ladders.
2011-12-14 23:57:26 +01:00
Evenprime
7477180de8 Corrected description of fight.direction.actions and
blockbreak.direction.actions
2011-12-14 23:23:12 +01:00
Evenprime
f5e97b7d92 Fix fences 2011-12-14 21:06:21 +01:00
Evenprime
031d757265 Updated block properties for movement check (solid, liquid, etc.) +
fix fight checks to really ignore anything besides ENTITY_ATTACK
damage types.
2011-12-14 20:51:35 +01:00
Evenprime
37876a946b Get rid of godmode-emergency-fix and version detection code (no
longer needed)
2011-12-13 15:39:48 +01:00
Evenprime
7742d5bcfa Make sprinting foodlevel dependant 2011-12-11 19:14:40 +01:00
Evenprime
0e7f9d4f1c Reduce default level of "selfhit" check from severe to warning. 2011-12-11 18:37:57 +01:00
Evenprime
5900ba2275 Get rid of the switch statements over enums altogether, just to be
sure.
2011-12-05 22:19:45 +01:00
Evenprime
bb636d774f Rename "WildCard" to "ParameterName" 2011-12-05 22:01:32 +01:00
Evenprime
e7f05617cc Moved "Wildcard" to its own enum class to potentially avoid
"IllegalAccessErrors" on some setups/VMs etc.
2011-12-05 22:00:26 +01:00
Evenprime
675a6a85d8 Make sure to restrict the "inventory" screen closing to interworld
teleports.
2011-12-04 23:31:38 +01:00
Evenprime
2f5a726494 No longer check arrows and other projectiles, even if aimed at other
players - More verbose data for "playerinfo" command - fix
potential dupe bug
2011-12-04 17:40:40 +01:00
Evenprime
8dbfc3893c New command to read collected player data 2011-12-02 17:42:41 +01:00
Evenprime
015f369e0a Make playernames case insensitive when used as a key 2011-12-02 16:58:44 +01:00
Evenprime
b5390cbd91 Make NoCheat identify new MC 1.0.1 versions. First attempt at a data
collection interface for other plugins.
2011-12-02 16:14:12 +01:00
Evenprime
1dd6ccb786 Emergency fix for a bug in vanilla minecraft and bukkit that prevents
people from really dying.
2011-11-28 15:47:27 +01:00
Evenprime
7173b8661c Consider lilipads to be solid and therefore people should be able to
walk on them
2011-11-28 14:12:53 +01:00
Evenprime
345b835e5d Temporary fix for handling of player death in minecraft until bukkit
gets patched
2011-11-28 14:12:05 +01:00
Evenprime
a3479b0f58 Removed "godmode" check, as it is FUBAR in MC 1.0.0, may return later
in different form. Added "emptyChat" check, looking for empty chat
messages.
2011-11-27 16:43:54 +01:00
Evenprime
5ce7bc04cd Creat a "DummyAction", if actions.txt does not contain a definition of
a custom action. Fixed newlines in "explainations" section of config
file.
2011-11-27 15:05:07 +01:00
Evenprime
1f9a2643e8 Let system decide about line endings in config files 2011-11-27 14:42:06 +01:00
Evenprime
f3663d07aa Use player.getHealth() instead of player.isDead() because the latter
is broken in MC 1.0.0
2011-11-24 22:06:26 +01:00
Evenprime
35f30e3b53 Fixed default distance limits for "Reach" checks to new, bigger
values + removed a debug output line that I forgot to remove before
2011-11-23 23:00:09 +01:00
Evenprime
48d6c141ca Only show version warning if an unsupported CraftBukkit version is
used + real MC 1.0.0 support without losing MC 1.8.1 Beta support.
2011-11-23 19:23:16 +01:00
Evenprime
36b97f246a Workaround for problems with MC 1.0 (broken check gets deactivated
automatically now) + v 2.16d
2011-11-23 14:51:42 +01:00
Evenprime
0459235c43 A bit of refactoring, maybe fixed the "can't edit config file" bug,
handle MC 1.0 versions better.
2011-11-23 14:37:20 +01:00
Evenprime
79d545f5e3 Now we use Maven - plugin description/website added to
plugin.yml - a bit of missing whitespace formatting
2011-11-19 00:41:57 +01:00
Evenprime
d502f66472 Potential fix for all those "player can no longer do X" problems 2011-11-18 02:34:33 +01:00
Evenprime
8401d26d6d Fix players in minecarts and reach in creativemode 2011-11-18 00:45:19 +01:00
Evenprime
6063b319a7 clean up some additional data 2011-11-16 16:18:19 +01:00
Evenprime
5cf84693b9 Minor security fix for player management and timerelated problems 2011-11-16 15:28:34 +01:00
Evenprime
2c621e14c1 Added two saveguards designed a special situation related to system
time changes in the wrong moment. Minor modification to sprinting for
debugging purposes.
2011-11-16 15:13:07 +01:00
Evenprime
cb2c3ceba6 Some renaming and code moving to be more consistent 2011-11-16 02:06:06 +01:00
Evenprime
e853eac486 Fix two common mistakes by other plugins (cancelling move
events and cancelling toggle sprint events)
2011-11-15 17:05:06 +01:00
Evenprime
5a02e78888 Removed debug output and some unnecessary code 2011-11-15 14:59:27 +01:00
Evenprime
fb5225fac5 Simpler access to isSprinting() and getGameMode() 2011-11-15 14:42:02 +01:00
Evenprime
c5806da644 Reintroduced discarding of player data after 1 minute of inactivity 2011-11-14 00:16:46 +01:00
Evenprime
3c44445d9b Less sensitive godmode check, bugfixes for log messages, better check
names
2011-11-14 00:00:06 +01:00
Evenprime
cfd8661f3f Make sure we only listen to direct attacks and no other types of
damage
2011-11-13 22:13:24 +01:00
Evenprime
17dac93056 Bugfixes and code style changes 2011-11-08 17:12:07 +01:00
Evenprime
40f187b55c Reintroduced Performance measurement and fixed casting bug in
moveEventHandling
2011-11-08 16:15:16 +01:00
Evenprime
3ce696ee1f Nicer handling of events 2011-11-08 15:30:23 +01:00
Evenprime
ae8cacb97b Massive rewrite part 1: Inheritance between checks, less entanglement
between
components, introduce "NoCheatPlayer" class for easier access to data
and configuration
2011-11-06 21:08:22 +01:00
Evenprime
f04be42eb2 Removed "onliquid" check 2011-11-06 11:27:06 +01:00
Evenprime
fa1f7cfc06 Godmode check changes to tick counting (more permissive now)
Permission sorting in output of "nocheat permlist" improved (again)
2011-11-02 19:26:26 +01:00
Evenprime
666a52bf73 Minor changes to default settings of new blockplace.direction check 2011-10-30 20:41:11 +01:00
Evenprime
04ec82eef6 Fix cancelling of bukkit task, moving around some things, use
"SimpleLocation" instead of Block in blockplaced checks.
2011-10-30 20:35:59 +01:00
Evenprime
99a197607b Removed blockplace.noswing check, because it causes problems
Added blockplace.direction check
2011-10-30 20:15:03 +01:00
Evenprime
71b53892c4 Added missing output for "active checks per world" 2011-10-30 19:03:00 +01:00
Evenprime
ad6b7b49a1 Sort permissions for permlist command alphabetically 2011-10-30 18:59:25 +01:00
Evenprime
b6d6ea58f4 Implemented NoSwing checks for blockbreak, blockplace and fight 2011-10-30 18:56:29 +01:00
Evenprime
a1286cb966 Minor safety improvement for godmode check 2011-10-30 17:29:45 +01:00
Evenprime
70d5bc48f2 Dead people are ignored by the godmode check 2011-10-26 16:39:00 +02:00
Evenprime
de16694698 Remove "timedEventManager" task when disabled, avoid using
"server.getOnlinePlayers()" because it's a performance hog.
Updated plugin.yml
2011-10-25 18:58:35 +02:00
Evenprime
d31525ba3a new check "timed.godmode" with config etc. 2011-10-25 17:32:10 +02:00
Evenprime
67b5505d04 Prevent amplification of violation level for moving check(s) in case
of only logging violations instead of cancelling them.
2011-10-23 21:20:17 +02:00
Evenprime
15e5367175 Make removal of unused playerdata more predictable and independent of
JOIN/LEAVE events.
2011-10-23 16:05:18 +02:00
Evenprime
a6ae2d1e90 Don't allow people to hit themself with close-combat weapons/punches
Some changes to default config (again).
2011-10-22 17:03:45 +02:00
Evenprime
3a0413b082 more little improvements and changed default configuration 2011-10-21 21:22:45 +02:00
Evenprime
0687d6c78c Lots of minor optimizations to avoid creation of new objects if not
necessary and stop referencing bukkit objects beyond the scope of
events.
2011-10-21 20:14:21 +02:00
Evenprime
0225c73a51 Respect the "MobEffect" speed increase for players (for compatibility
with Heroes plugin).
2011-10-21 16:03:20 +02:00
Evenprime
e9aceb4fef Changed some default settings 2011-10-20 16:45:41 +02:00
Evenprime
247e5d082b Prevent sprinting if food level is below 6. More descriptive error
message for runfly check
2011-10-20 15:20:17 +02:00
Evenprime
2b4eccf4a1 Move stuff out of NoCheat.java into seperate classes 2011-10-19 18:12:35 +02:00
Evenprime
ca2da0d6b4 Lag detection in seperate thread, bugfix for blockbreak direction
check and code refactoring to reduce complexity
2011-10-19 17:34:59 +02:00
Evenprime
d917242683 spamcheck message/command whitelist 2011-10-18 15:58:14 +02:00
Evenprime
3fc80cbad2 minor change 2011-10-18 15:01:42 +02:00
Evenprime
08ef299290 Colors! And getting kicked for extensive (command) spamming by default
now
2011-10-17 21:22:26 +02:00
Evenprime
c87f99262e Expanded the idea of having timeouts to the blockbreak direction
check.
2011-10-17 20:18:54 +02:00
Evenprime
2c27063b75 Some refactoring to lessen class dependencies, reduce number of
parameters and duplicate code
2011-10-16 19:57:05 +02:00
Evenprime
14642564b6 Fixed typo in config "alkingspeedlimit"->"walkingspeedlimit" 2011-10-15 16:05:36 +02:00