Commit Graph

97 Commits

Author SHA1 Message Date
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
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
0c506576d3 New check "inventory.drop", some more saveguards for checks etc. in
case of errors.
2011-12-23 16:56:32 +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
37876a946b Get rid of godmode-emergency-fix and version detection code (no
longer needed)
2011-12-13 15:39:48 +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
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
1f9a2643e8 Let system decide about line endings in config files 2011-11-27 14:42:06 +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
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
d502f66472 Potential fix for all those "player can no longer do X" problems 2011-11-18 02:34:33 +01:00
Evenprime
cb2c3ceba6 Some renaming and code moving to be more consistent 2011-11-16 02:06:06 +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
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
b6d6ea58f4 Implemented NoSwing checks for blockbreak, blockplace and fight 2011-10-30 18:56:29 +01: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
15e5367175 Make removal of unused playerdata more predictable and independent of
JOIN/LEAVE events.
2011-10-23 16:05:18 +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
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
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
2c27063b75 Some refactoring to lessen class dependencies, reduce number of
parameters and duplicate code
2011-10-16 19:57:05 +02:00
Evenprime
a0024d0737 Refactoring, code cleanup, moved executionHistories to "data" 2011-10-14 18:44:56 +02:00
Evenprime
033fad0f54 Only remove part of the data for players immediatly after they logout,
and keep the rest for 1 minute in case they come back.
2011-10-14 15:56:24 +02:00
Evenprime
bcf0b89915 Basic fight.direction check to identify "kill-aura"/"forcefield" hacks 2011-10-13 14:55:48 +02:00
Evenprime
ae86381ade New command "nocheat performance" to display performance stats
Minor code cleanup
2011-10-11 18:21:39 +02:00
Evenprime
747e5bcdce Another round of code cleaning, simplification
Fixed nocheat reload command to give feedback and clear critical data
Remove stored data when a player disconnects
2011-10-10 19:27:45 +02:00
Evenprime
4309c70a39 reset data objects too when using "nocheat reload" 2011-10-10 02:49:41 +02:00
Evenprime
7186f26504 give positive feedback if the "reload" command was used 2011-10-10 02:37:40 +02:00
Evenprime
e93f501271 Removed player interact infinite durability check, as the exploit is
now fixed by bukkit itself.
2011-10-10 02:20:20 +02:00
Evenprime
a8342b0681 Complete rewrite of internal configuration and action execution system
for performance
removed noclip check,  itemdrop check andgui editor
2011-10-10 02:00:47 +02:00
Evenprime
e67a1f2c0c Fixed spamcheck + also count commands 2011-10-02 17:07:29 +02:00
Evenprime
3895ff029f Add command "/nocheat permlist" to display the effective permissions
of a certain player.
2011-09-26 20:07:59 +02:00
Evenprime
4569546b3a - Updated permissions descriptions to simpler format
- more info from "onliquid" check
- fixed bug in "chat.spam" check
2011-09-22 19:44:08 +02:00
Evenprime
e63d90e4cd Modified nofall check. Let the game decide if and when to do the
damage, we just set the "fallDistance".
2011-09-20 18:41:15 +02:00
Evenprime
41a09ea5ae + Refactoring of movement check to be more clear about what it does
+ Workarounds for bug in Minecraft related to jumping while sprinting
+ potential workarounds for plugins that cancel
  teleportation-related events on "monitor" level
+ fix a bug that would allow a player to fly at the same level of
height infinitely
+ Deactivate blockbreak.reach check for players in creative mode
2011-09-17 15:28:19 +02:00
Evenprime
248a4867a6 + rudimentary support for sprinting players 2011-09-15 13:28:58 +02:00
Evenprime
d280bc4f7d + option to turn world-check-list on startup on or off 2011-09-15 13:03:53 +02:00
Evenprime
0264eb97d5 Display which checks are active in which world on startup 2011-09-11 20:17:51 +02:00
Evenprime
1480ebb3db New check "chat.spam" with configuration and permissions 2011-09-11 19:07:38 +02:00
Evenprime
fbd078209c Prevent dupe exploit in combination with .drop protection 2011-09-07 17:37:47 +02:00
Evenprime
5b56fc7302 - Some code cleanup
- measure serverside lag in a seperate thread, once per second
- (Server) lag resistant "more packets" check
- minor adjustments to default config settings
- fixed a bug that would deactivate the durability check if the
morepackets check got deactivated
2011-09-03 19:05:59 +02:00
Evenprime
0283ded357 - Respect -p parameter of craftbukkit (plugin directory)
- "logfile" config option is now relative to the Nocheat/ folder,
instead of relative to the craftBukkit folder.
- new check blockplace.reach: limit distance at which blocks may be
placed
- new check blockplace.liquid: don't allow block placing onto liquids
- new permission nodes and config options for the new checks
2011-09-02 19:33:32 +02:00
Evenprime
848d2b3623 Added infinite durability hack check
Deactivated parts of the NoClip check, until I can work on it
2011-09-01 14:08:48 +02:00