Commit Graph

2070 Commits

Author SHA1 Message Date
asofold
fb30a84f5e No reason for private here. 2013-07-18 01:44:06 +02:00
asofold
3826807c56 Commented that out during testing. 2013-07-18 01:42:29 +02:00
asofold
13cb783c72 Add an annotation for registration order with INotifyReload.
SetupOrder allows to define a priority, so you can register
 ActionFactoryFactory instances before any checks get them.
 
 Default priorities are NCP core at -100, DataManager -80, rest at 0.
2013-07-18 01:42:07 +02:00
asofold
2913baa6c7 [Bleeding] Change to lazy ActionFactory setting.
Allows to set a new ActionFactoryFactory without the ConfigManager.init 
already trying to parse actions, thus implementing special actions 
should be easier. Still three calls might be necessary to be on the 
safe side:
1. ConfigManager.setActionFactoryFactory(new factory)
2. ConfigManaher.setAllActionFactories()
3. DataManager.clearConfigs()

Not entirely convinced if concurrency issues might arise with reload or 
even on startup (chat).
2013-07-18 01:19:47 +02:00
asofold
b49df04120 Comments.
Hint at per-velocity friction factor. Could be used to add short term 
velocity that does not decrease. However it can't replace extra-buffer
due to special invalidation conditions.
2013-07-17 23:22:38 +02:00
asofold
13add02392 Handle the resetting of the jump-amplifier in MovingListener. 2013-07-17 22:18:15 +02:00
asofold
12bd184517 More cleanup for survivalfly.
Move the after-failure permission-, velocity- and 
extra-buffer-checks into an extra method.

Move special checks like web/liquid to extra methods.

Alter checking order slightly.

Other cleanups (comments, declaration order, grouping).

Shuffle methods.

Finished? No.
2013-07-17 20:10:42 +02:00
asofold
f82a0c084a Reset sprinting if the player is not set sprinting.
Only give the sprintinggrace time concerning the food level.
Should fix more sprintback issues, potentially.
2013-07-17 17:33:27 +02:00
asofold
63b2cd3156 Change default for BUILD_SERIES to '?'. 2013-07-17 12:18:54 +02:00
asofold
f46618c619 Prefix series with s in order to not ever confuse with SNAPSHOT/RC. 2013-07-17 12:17:33 +02:00
asofold
793291b71b Build parameters: Add BUILD_SERIES. Add default values.
BUILD_SERIES = UNKNOWN
BUILD_NUMBER = ?
2013-07-17 11:35:45 +02:00
asofold
71ffa298f5 Ineffective workaround. 2013-07-17 01:06:13 +02:00
asofold
9accfc3831 Allow using up horizontal velocity for sprintback. 2013-07-17 00:58:47 +02:00
asofold
6e2844745c Confine "sprintback" alerts to speeds greater than walking.
This reduces false positives with throwing enderpearls at nearby
entities or for horizontal velocity.

Missing: Use up horizontal velocity if sprintback is triggered and
queued velocity is present.
2013-07-17 00:29:56 +02:00
asofold
e97a9297aa Attempt to work around another ender-pearl + survivalfly issue.
Jump (+run) and throw an ender pearl at a nearby entity. 
Survivalfly might trigger with limitjump, since the MediumLiftOff gets 
reset on teleporting (would appreciate MC adding sequence numbers to 
moving packets :p).
2013-07-17 00:23:05 +02:00
asofold
adf9bcb9be Adjust a compatibility method for speed and probably compatibility. 2013-07-16 19:56:06 +02:00
asofold
27a063abe8 Minor cleanups. 2013-07-16 19:37:40 +02:00
asofold
2b4a1f20d3 More to vehicle internals.
Set-back handling:
* Make the VehicleSetBack a class in the moving package.
* For set-backs use the debug flag from the time of checking.

Debugging:
* Alter debug output for moves slightly (differing locations).
* Add debug output for vehicle moves with players involved.

Note on 1.6:
* Not even PlayerMove is fired for pigs and horses, so no tracking.
2013-07-16 19:28:47 +02:00
asofold
f556422cd7 Add info about returned object for BridgeHealth recovery failure. 2013-07-16 15:26:07 +02:00
asofold
c7b85f9faa Flying permissions: survivalfly is now child of creativefly. 2013-07-16 00:24:20 +02:00
asofold
172b103521 [BLIND] CreativeFly: Account for walk- and fly-speed. 2013-07-16 00:05:50 +02:00
asofold
80f58d94ce Also check for player.isFlying. 2013-07-15 23:59:51 +02:00
asofold
240bff5b62 [BLEEDING] SurvivalFly: Account for per-player walk-speed. 2013-07-15 23:50:42 +02:00
asofold
e35f1f7c9c Switch do mods instead of speeds for sf. 2013-07-15 23:24:51 +02:00
asofold
c382082c40 Add "sprinting" to moving output. 2013-07-15 22:33:22 +02:00
asofold
f17378b3e0 More cleanup for health API changes. 2013-07-15 12:31:37 +02:00
asofold
489c60f07f Bad last minute ordering. 2013-07-15 02:21:20 +02:00
asofold
268c51b729 Refine conditions for passable.
* Do not check if moving inside of a block that is ignored by passable.
* ray-tracing: Always check vclip up AND down.
2013-07-15 02:15:20 +02:00
asofold
75e21797e1 Minor cleanup. 2013-07-15 01:49:19 +02:00
asofold
4e9e0bd7c1 Fix CreativeFly ignoring possible passable set-backs. 2013-07-15 01:21:45 +02:00
asofold
83187fa549 Bind BridgeHealth API incompatibility warnings to logging.debug. 2013-07-15 00:24:46 +02:00
asofold
cf1c89d646 [BLEEDING] Change message sending queue from per-player to global.
Adds an API to queue messages (thread safe).
2013-07-14 22:04:42 +02:00
asofold
821dc34d7a Schedule sending the chat.text warning message.
Thread safety not guaranteed by API.
2013-07-14 20:29:21 +02:00
asofold
00836ac9d7 Change event priorities (join/world-change) + delay some admin messages. 2013-07-14 20:12:19 +02:00
asofold
f55e0d5742 Alter config version handling + make notification configurable.
Versions are saved in a subsection instead of the comment-header.
2013-07-14 19:19:07 +02:00
asofold
54273687b0 Some comments and javdocs. 2013-07-14 17:30:46 +02:00
asofold
98c64003a2 Add flyspeed and walkspeed to debug output for moving (debug level>0). 2013-07-14 12:50:04 +02:00
asofold
742e6e309c Quick fix for carpets: Allow standing inside/on.
This is somewhat incomplete, because players can pass through.
2013-07-13 21:40:34 +02:00
asofold
d8d5992569 Update some javadocs. 2013-07-13 12:31:07 +02:00
asofold
c00117a0ad Check some method signatures with MCAccess implementations.
Minimum safeguard: Check the getMinX etc. methods for proper signatures,
to avoid use with mods that have incomplete CraftBukkit mappings.
2013-07-13 09:52:06 +02:00
asofold
c30105d6b7 Fix passable alerts with fence gates.
This workaround allows the block transition from above a 1.5 high block
into the block, for the case both from and to have been inside of the
bounds of the block. This should fix the annoying bug with jumping
inside of an open fence gate, closing it while just above 1.0 height,
so that passable would alert for moving back from air into the block.
2013-07-12 19:53:40 +02:00
asofold
d7ca742c57 [BLEEDING] Fixes for passable/rt preventing moving out of blocks.
Passable/ray-tracing might disallow players moving out of blocks which
they are stuck in on some occasions.
In order to allow moving out of a block, ray tracing is repeated
with the first block ignored for some cases.
2013-07-12 19:27:27 +02:00
asofold
ee0ca14cef Provide a tag for passable violations [not in strings]. 2013-07-12 18:02:57 +02:00
asofold
81b528f90b Allow "step-up" even if in web. 2013-07-12 17:28:07 +02:00
asofold
85c7e70447 [DEVELOPMENT] Set version to 3.10.1-SNAPSHOT. 2013-07-12 17:13:16 +02:00
asofold
455f97960c Set version to 3.10.0-RC for release on BukkitDev. 2013-07-11 14:40:13 +02:00
asofold
130f43d005 Comment out DistributionManagement. 2013-07-11 14:28:18 +02:00
asofold
6f232e5dde Shuffle checks in fight listener 2013-07-11 01:51:36 +02:00
asofold
7c77764697 Too random? Where to put build etc ? 2013-07-11 01:51:17 +02:00
asofold
f942721ebc More random changes. 2013-07-11 01:37:06 +02:00