Kristian S. Stangeland
051a4eda87
Add the ability to intercept the write method of packets.
...
This is done by constructing a proxy around the class after every
event handler has been invoked, intercepting the write method. Each
PacketOutputHandler registered by the packet event listeners is
invoked in turn, modifying a byte array of the data that will be
written to the network stream.
The byte array is initially filled with the serialized version of the
packet in the packet event.
2013-07-17 03:52:27 +02:00
Kristian S. Stangeland
45f36f9ad6
Use reflection to clone certain packets (44 - update attributes).
...
These packets contain objects (AttributeSnapshot and
AttributeModifiable) isn't supported by the current cloning system.
2013-07-11 21:51:51 +02:00
Kristian S. Stangeland
468d013032
Remove JavaDoc - that should be in gh-pages.
2013-07-11 20:58:16 +02:00
Kristian S. Stangeland
cd0f8a6fa5
Merge branch '1.6.2'
2013-07-11 00:12:45 +02:00
Kristian S. Stangeland
f2125623f6
Correct the fallback method for retrieving WatchableObjects.
2013-07-11 00:04:42 +02:00
Kristian S. Stangeland
1000378b78
Update packet container serialization for Minecraft 1.6.2.
2013-07-10 23:41:49 +02:00
Kristian S. Stangeland
c590e4a825
Update the stream serializer for Minecraft 1.6.2
2013-07-10 23:33:25 +02:00
Kristian S. Stangeland
a4eb219a9a
Update unit tests to CraftBukkit 1.6.2
2013-07-10 22:45:20 +02:00
Kristian S. Stangeland
6fe7fe46f3
Use a builder pattern instead of a constructor with 8 parameters.
...
Also make use of the fact that Spigot may have initialized its
server connection (in the latest version).
2013-07-07 14:03:07 +02:00
Kristian S. Stangeland
fb7f80b646
Fix typo before it's too late.
2013-07-07 11:26:10 +02:00
Kristian S. Stangeland
00ff832e07
Adding the two new packets for 1.6.1.
2013-07-06 16:32:42 +02:00
Kristian S. Stangeland
47a5382709
Properly handle reloads on Spigot.
...
The code is getting uglier and uglier ...
2013-07-06 08:06:29 +02:00
Kristian S. Stangeland
a4f81e5e9f
Update asynchronous manager and handle static senders in reports.
2013-07-06 07:51:02 +02:00
Kristian S. Stangeland
6847283fb3
Added the Comphenix Maven repository.
2013-07-06 00:25:59 +02:00
Kristian S. Stangeland
5e35f46b96
Added support for Spigot with Netty disabled.
...
I've also added BukkitExecutors to ProtocolLib, which any plugin that
depend on ProtocolLib may now use.
2013-07-06 00:24:11 +02:00
Kristian S. Stangeland
81e158d74a
Increment to 2.4.8-SNAPSHOT for development towards the next version.
2013-07-05 06:23:40 +02:00
Kristian S. Stangeland
1159b4541e
Increment to 2.4.7 for Minecraft 1.6.1 support.
2013-07-05 06:14:57 +02:00
Kristian S. Stangeland
49eb39e45f
Improve packet class lookup performance by mainaining a inverse map.
2013-07-04 01:12:39 +02:00
Kristian S. Stangeland
0ec2a705da
Mark 1.6.1 as tested. Things seems to work now.
2013-07-02 17:42:51 +02:00
Kristian S. Stangeland
5e5243e3fb
Update ProtocolLib for 1.6.1.
...
A lot of methods changed from accepting DataInputStream to DataInput,
which messed with the part that dynamically finds the "readPacket"
method. Changed to accepting any method whose signature contains a
parameter derived from DataInput.
2013-07-02 17:41:43 +02:00
Kristian S. Stangeland
0b3fe5470a
Added a plugin verifier test.
...
Attempting to solve a problem discovered by Silthus, but I need
more information.
2013-06-27 03:05:53 +02:00
Kristian S. Stangeland
ef4476a72e
Print a warning message instead of crashing.
...
We shouldn't prevent a plugin from adding packet listeners just because
the plugin verifier failed.
2013-06-23 21:56:53 +02:00
Kristian S. Stangeland
8d0e8139de
Add support for the Lilypad Bukkit Connector. FIXES Ticket-101
2013-06-23 21:38:35 +02:00
Kristian S. Stangeland
256581d4ed
Incrementing to 2.4.6-SNAPSHOT
2013-06-23 21:35:00 +02:00
Kristian S. Stangeland
56b81281a8
Merge branch 'master' into gh-pages
2013-06-21 01:12:07 +02:00
Kristian S. Stangeland
f7aa146a94
Increment to 2.4.5
2013-06-21 00:46:16 +02:00
Kristian S. Stangeland
a797dba594
Fixed a memory leak on Spigot that would retain unloaded worlds.
2013-06-20 01:06:50 +02:00
Kristian S. Stangeland
2cce1bca0a
Certain packets must be cloned. Document this.
2013-06-19 23:19:46 +02:00
Kristian S. Stangeland
8f2935e241
Minimize the number of unnecessary references.
2013-06-19 02:07:12 +02:00
Kristian S. Stangeland
e7954a0f79
Load JavaScript engine on demand.
2013-06-17 13:16:29 +02:00
Kristian S. Stangeland
169842f265
Ignore logged out players.
2013-06-14 03:52:31 +02:00
Kristian S. Stangeland
627c500de1
Added some debug information when a network manager lacks an address.
2013-06-01 01:32:24 +02:00
Kristian S. Stangeland
aa5e1beb7f
Added the ability to suppress arbitrary warnings and errors.
2013-06-01 00:17:08 +02:00
Kristian S. Stangeland
77346f8438
Fixed incorrect detection of "custom" net handlers.
...
This should ensure that users on MCPC no longer recieves the
REPORT_DETECTED_CUSTOM_SERVER_HANDLER warning just for using MCPC.
2013-05-31 22:57:00 +02:00
Kristian S. Stangeland
bbe766cf23
Bumping to 2.4.4-SNAPSHOT for development towards the next version
2013-05-31 22:51:36 +02:00
Kristian S. Stangeland
542105601b
Updating JavaDoc for 2.4.3
2013-05-14 01:29:12 +02:00
Kristian S. Stangeland
7e20abdd37
Merge branch 'master' into gh-pages
...
Conflicts:
ItemDisguise/.settings/org.eclipse.core.resources.prefs
2013-05-14 01:24:47 +02:00
Kristian S. Stangeland
9b8d61b2b0
Added small settings file in ItemDisguise
2013-05-14 01:19:22 +02:00
Kristian S. Stangeland
b613e8f01e
Bumping to 2.4.3
2013-05-14 01:17:03 +02:00
Kristian S. Stangeland
02b5dec304
Permit cross edges when validating dependencies. FIXES 91.
2013-05-13 03:49:48 +02:00
Kristian S. Stangeland
6af440789c
Invert the actual packet instance instead of a new instance.
...
In NetworkFieldInjector, we use a "inverted" packet class to undo the
data received counter when a packet has been cancelled.
Previously, we would generate a proxy class that inherits from the
class of the packet (Packet3Chat, etc.) along with its size() method
(which is called and added to the counter, cancelling the other packet),
but this doesn't work for packets that are dynamically sized such as
Packet255KickDisconnect. Instead, we now pass the actual instance to
the proxy class through a weak hash map.
2013-05-07 23:11:41 +02:00
Kristian S. Stangeland
a2b04e055a
Make it possible to cancel packets for asynchronous processing.
2013-05-06 18:57:19 +02:00
Kristian S. Stangeland
8d814d2d9c
Implement "isOnline" for temporary players.
...
This corrects the issue seen on http://pastebin.com/C4D8jsja
2013-05-06 18:37:08 +02:00
Kristian S. Stangeland
0fc6396974
ProtocolLib seems to work fine for 1.5.2 too.
2013-05-05 23:55:02 +02:00
Kristian S. Stangeland
c813811721
No point verifying the load order for ProtocolLib.
...
Also removed a debug message.
2013-04-30 03:17:59 +02:00
Kristian S. Stangeland
8970cd915a
Move the last update time stamp to a separate file. FIXES TICKET 86.
2013-04-29 16:39:37 +02:00
Kristian S. Stangeland
8964246e22
Makes more sense to put this in the reflect lookup.
2013-04-28 17:27:58 +02:00
Kristian
bec05967d3
Mark field as volatile.
2013-04-27 02:48:39 +02:00
Kristian
cecf80250c
Don't print pointless warnings on Spigot.
2013-04-27 02:24:49 +02:00
Kristian
93da193428
Improve JavaDoc.
2013-04-27 01:03:20 +02:00