Commit Graph

2049 Commits

Author SHA1 Message Date
asofold
58a7c15966 Check violation vs. the less strict limit. 2014-07-18 02:33:13 +02:00
asofold
4ee4e6f08d Don't count empty ones. 2014-07-18 02:25:38 +02:00
asofold
27d35c1208 Not just block changes. 2014-07-18 02:15:49 +02:00
asofold
db7ac2bd80 Only count moving.morepackets on non-zero distances. 2014-07-18 02:05:26 +02:00
asofold
f79c89b45a MIX UP. 2014-07-18 01:47:55 +02:00
asofold
e3cdd761ec [BLEEDING] Attempt to make moving.morepackets less strict. 2014-07-18 01:45:58 +02:00
asofold
85a104ed75 [BLEEDING] Switch moving.morepackets to use Actionfrequency. 2014-07-18 00:21:19 +02:00
asofold
7cc936878e Simplify/optimize morepackets checks. 2014-07-17 20:30:01 +02:00
asofold
bf0b515889 Add removeAll.
Considering to use this map for otherwise fully synchronized maps, e.g.
with the chat checks.
2014-07-17 14:40:33 +02:00
asofold
b6c146ce64 Remove getKeepAliveTime from MCAccess.
It does not seem to become accessible any time soon, while packet level
access allows to fetch it.
2014-07-17 14:33:38 +02:00
asofold
a5ec614444 Add summary log message about added packet level hooks. 2014-07-16 16:30:26 +02:00
asofold
616e5436a2 Clear registered hooks on disable. + comments + messages. 2014-07-16 16:08:50 +02:00
asofold
7169788554 Simplify FlyingFrequency by using the cow map. 2014-07-16 15:49:23 +02:00
asofold
923f08c308 Add an insertion ordered COW version of a LinkedHashMap. 2014-07-16 15:42:09 +02:00
asofold
96462dab90 Allow ConfigManager.getConfig... from any thread (copy on write).
This allows fast config getting from any thread, without need to know if
it is the main thread.
2014-07-16 14:55:31 +02:00
asofold
59fca0f43e Prefer to synchronize adding players.
Does not seem to be strictly necessary, because the data is comparably
light-weight and the data loss on some time slices would usually be
small.

Should be cleaner, as this is a seldom event (login, logout).
2014-07-16 14:42:18 +02:00
asofold
7b6305de78 Packet checks adjustments and renaming.
* More appropriate names.
SoundDistance
* Plus wither plus dragon.
* Horizontal distance.
2014-07-16 13:50:04 +02:00
asofold
288950edd4 Use predefined packet types, add comments. 2014-07-16 13:29:08 +02:00
asofold
bb8b8fc1f2 Quick adaptions/cleanups for packet level checking. 2014-07-15 23:58:48 +02:00
asofold
cdf79c854f Merge pull request #25 from Scetch/master
Prevent weather sound effect > 512 blocks away.
2014-07-15 23:32:21 +02:00
Scetch
1e6d69b50f Oops. This doesn't need to be there. 2014-07-15 17:17:49 -04:00
Scetch
a367c8f20c Prevent weather sound effect > 512 blocks away. 2014-07-15 17:14:45 -04:00
asofold
d473f19247 It's THEM. 2014-07-14 23:08:15 +02:00
asofold
39e2a86472 [BLEEDING] Extra method for set-back + reset positions differently.
Setting back players on PlayerMoveEvents:
* Reset internal from/to tracking the set-back location.
* Use an extra method for that.
2014-07-14 22:49:37 +02:00
asofold
4ebe911509 Abort ray-tracing if there is no advance. Formatting + numbers.
If there is no advance on any axis, loop should be stopped.
2014-07-13 03:19:28 +02:00
asofold
aba5674f6a Correct log messages. 2014-07-13 01:45:39 +02:00
asofold
b956aab479 Remove the "warning on success" message. 2014-07-13 01:14:38 +02:00
asofold
aa91a39eea Some Formatting. 2014-07-13 01:14:17 +02:00
asofold
e09d024101 Un-fix tempkickillegal issue: Do kick if location could not be restored. 2014-07-13 01:13:50 +02:00
asofold
607407d4fa Fix tempkickillegal setting being ignored. 2014-07-13 00:29:52 +02:00
asofold
04b82ad0a6 [BLEEDING] Peek into ProtocolLib to fight certain packet spam (3).
This lessens or removes most effects of spamming the PacketPlayInFlying
(3, legacy 10), such as "magnet" or "repell" effects.
2014-07-12 22:30:51 +02:00
asofold
56611cd44b [BLEEDING] Set CompatCBDev to CB for MC 1.7.10. 2014-07-12 18:15:45 +02:00
asofold
8f32c822dc Add dedicated compat module for CB 1.7.8|1.7.9. 2014-07-12 17:46:42 +02:00
asofold
6f450b0d71 Totally random. 2014-07-06 23:16:06 +02:00
asofold
3616c7cce5 Randomly move distributionManagement. 2014-07-06 23:04:26 +02:00
asofold
74e6844e00 Check child individual child permissions for checks.blockplace.against. 2014-07-06 21:36:18 +02:00
asofold
0ccaf809a2 Random version changing. 2014-07-05 23:12:21 +02:00
asofold
7f8e5c4b41 Random repository adding. 2014-07-05 22:58:04 +02:00
asofold
8847492ffc Re-add distribution management part for testing. 2014-07-05 22:23:33 +02:00
asofold
5d8f77f309 Change "ncp ban ..." command to use the vanilla command.
This should be better in case the vanilla command allows UUIDs some day.
At least during testing in uuids did not work, so we added a warning
message if uuids are used for banning.

Using player names for actions should be safe anyway.
2014-06-15 02:57:24 +02:00
asofold
754fea92d8 Add some utility methods for names/uuids (taken from TrustCore).
Someone remind me of rendering TrustCore "uploadable" or to just upload
it.
2014-06-15 02:54:50 +02:00
asofold
24aecb58d3 Set dependency for NCPCore to Bukkit 1.7.9-R0.2.
This might allow to add compatibility stuff similar to BridgeHealth,
just for UUIDs.

Shortly tested on 1.7.9, 1.7.2 and 1.5.2 (no joke).
2014-06-15 02:52:41 +02:00
asofold
fc83b884b3 Whoops. 2014-06-15 01:34:22 +02:00
asofold
122e2ac751 Remove unneeded dependency references (CraftBukkit contains Bukkit). 2014-06-14 22:56:37 +02:00
asofold
b25b2be62c Hide some more warnings behind BlockProperties. 2014-06-14 22:29:10 +02:00
asofold
c449414d9a Suppress deprecation warnings in BlockCache.
Assuming this is the most efficient way at present.
Feedback welcome...
2014-06-14 22:05:07 +02:00
asofold
ae9415a012 More use of Material instead of ids... 2014-06-14 20:45:51 +02:00
asofold
c23e5e15a7 Remove unused calls. 2014-06-14 20:42:46 +02:00
asofold
785de7c0f4 Suppress deprecation warnings for BlockProperties.
Access by id may or may not be changed internally, depending on what
happens on the API side.

For performance reasons we might like to do without passing on extra
stuff like Material, or even do String-comparison.

If ids will become more expensive to use than other ways, or if it will
be possible/accepted that ids get reused during runtime, then we will
have to change all internals.
2014-06-14 20:39:32 +02:00
asofold
98f101e9ff Import cleanup. 2014-06-14 20:33:30 +02:00