Kristian S. Stangeland
27104c7350
Accept zero as a packet ID in the packet command.
2012-11-03 06:51:37 +01:00
Kristian S. Stangeland
263d085590
Always create vanilla packets in the packet constructor.
2012-11-03 06:48:58 +01:00
Kristian S. Stangeland
f16581cdf4
Massive update.
2012-11-03 06:41:29 +01:00
Kristian S. Stangeland
413eb283a4
Fix handling of configuration.
2012-11-03 00:54:03 +01:00
Kristian S. Stangeland
7952da99c9
Added configuration and commands.
...
The two commands added are as follows:
protocol:
Reload the configuration, check for updates and download the
most recent version.
packet:
Add or remove a simple packet inspector. Can even display the
content of each packet.
2012-11-03 00:38:57 +01:00
Kristian S. Stangeland
3d0dce7e8d
Make the update class easier to work with.
2012-11-02 18:55:23 +01:00
Kristian S. Stangeland
4328072f49
Created a default maven resources folder.
2012-11-02 17:47:33 +01:00
Kristian S. Stangeland
22aab024c2
Add a couple of permissions and commands.
2012-11-02 17:35:41 +01:00
Kristian S. Stangeland
18ec9bc973
Adding h31ix's auto update system.
2012-11-02 17:22:42 +01:00
Kristian S. Stangeland
2c00b570aa
Increase default packet timeout to 30 minutes.
2012-11-02 16:58:56 +01:00
Kristian S. Stangeland
5ac15f11dc
Drop expired packets in the processing chain.
2012-11-02 01:18:38 +01:00
Kristian S. Stangeland
cda235af7e
Increment the default async timeout to 2 minutes.
2012-11-02 01:03:12 +01:00
Kristian S. Stangeland
51184dd209
Ensure getEntityModifier is thread safe. FIXES Ticket-6.
...
Don't use the world's getPlayers-method, as it's enumerating a
collection that's not thread safe. This is important as
getEntityModifier may be called by a client packet listener (which is
async).
2012-11-02 00:35:35 +01:00
Kristian S. Stangeland
aa9616d6b0
Don't check for closed sockets. If it talks like a duck, ect.
2012-10-31 00:52:02 +01:00
Kristian S. Stangeland
ae08abe821
Remove PrimitiveUtils - it's already present in Bukkit's Guava library.
2012-10-29 22:15:25 +01:00
Kristian S. Stangeland
d54cc35445
Updated to 1.5.1-SNAPSHOT for development of the next version.
2012-10-29 22:05:55 +01:00
Kristian S. Stangeland
0dc2bfef0c
Handle exceptions in injected code.
...
This is very important, otherwise the server may crash unnecessarily.
2012-10-29 17:20:04 +01:00
Kristian S. Stangeland
f9c0f212c1
Put UnsupportedListener at the package level.
2012-10-29 16:57:07 +01:00
Kristian S. Stangeland
cbf4def71b
Prevented map chunk listeners from crashing the server.
...
If the NetServerHandler injector fails and we revert to the network
field injector instead, any map chunk listener will crash the server
due to complications with Bukkit's ChunkCompressionThread.
We avoid this by disabling map chunk listening entirely.
2012-10-29 16:54:53 +01:00
Kristian S. Stangeland
8636215b98
Add a couple of extra error handlers.
2012-10-29 04:21:12 +01:00
Kristian S. Stangeland
2239c1ea32
Add a better error reporter.
2012-10-29 04:17:53 +01:00
Kristian S. Stangeland
5e036185b8
Removed DEBUG message.
2012-10-29 02:39:05 +01:00
Kristian S. Stangeland
03da0e1974
Increment to 1.5.0 Release
2012-10-29 02:37:10 +01:00
Kristian S. Stangeland
dfba924561
Clean up every static field, preempting potential ClassLoader leaks.
...
Note that this method is using some fairly ugly hacks and must be
maintained/updated manually whenever a new class is added or removed.
2012-10-29 02:25:29 +01:00
Kristian S. Stangeland
bdc41221db
Fixed a serious misuse causing the creation of too many new classes.
...
The different injectors using CGLib was using a custom CallbackFilter
to optimize the resulting generated class. Unfortunately, the custom
filter didn't properly implement equals() and hashCode(), and so every
time a player logged, a new injector class had to be generated.
This was fixed by making the injectors share a single CallbackFilter.
In addition, I've begun adding cleanup code that will reset all static
fields once the plugin has unloaded.
2012-10-29 01:42:22 +01:00
Kristian S. Stangeland
eaf0b73c00
Increment version to 1.4.4-SNAPSHOT (skipping release of 1.4.3)
2012-10-28 06:10:31 +01:00
Kristian S. Stangeland
cb2c7b4e0a
Use a class cache when constructing the packet interceptor.
2012-10-28 06:09:29 +01:00
Kristian S. Stangeland
4e9b5009c8
Don't print messages to the console without a plugin prefix.
...
It's bad practice.
2012-10-23 00:54:41 +02:00
Kristian S. Stangeland
7536815e58
Set as SNAPSHOT in the plugin-file as well.
2012-10-23 00:41:53 +02:00
Kristian S. Stangeland
96ad954cf7
Prevent the PlayerQuitEvent from being fired twice. FIXES Ticket-2.
2012-10-23 00:37:35 +02:00
Kristian S. Stangeland
0aac8ebf0a
Increment to 1.4.3 snapshot.
2012-10-21 22:40:26 +02:00
Kristian S. Stangeland
a60dc3d778
Make the client packet reader thread-safe.
2012-10-21 22:39:56 +02:00
Kristian S. Stangeland
01c481dc93
Release of 1.4.2
2012-10-21 20:42:29 +02:00
Kristian S. Stangeland
a51ad1f50f
Properly remove previous hook, even if socket is NULL. FIXES Ticket-1.
2012-10-21 20:31:20 +02:00
Kristian S. Stangeland
c08106a923
Increment to 1.4.2 snapshot.
2012-10-21 16:33:52 +02:00
Kristian S. Stangeland
63c468eff0
Packet constructor can now handle primitive parameter types.
2012-10-21 16:33:41 +02:00
Kristian S. Stangeland
43c0b5d8f1
Don't save NULL injectors in a ConcurrentHashMap.
2012-10-21 12:11:59 +02:00
Kristian S. Stangeland
331fc94190
Sending or receiving packets now work without listeners.
2012-10-19 16:27:49 +02:00
Kristian S. Stangeland
caed0dcb11
Removed the spammy "Entity does not exist" error.
2012-10-19 00:54:03 +02:00
Kristian S. Stangeland
90f2caa5e8
Incremented to 1.4.1
2012-10-17 09:54:28 +02:00
Kristian S. Stangeland
69a5675161
Fixed a bug causing a StackOverflowException on packet construction.
2012-10-17 09:53:59 +02:00
Kristian S. Stangeland
f8a8a645eb
Added JavaDoc again. What the ... feels like everything is falling
...
apart.
2012-10-17 08:16:18 +02:00
Kristian S. Stangeland
32ed35d409
Adding GamePhase too.
2012-10-17 08:11:11 +02:00
Kristian S. Stangeland
242ddd5f40
Updated JavaDoc for 1.4.0
2012-10-17 08:07:20 +02:00
Kristian S. Stangeland
b9ed36641f
Merge branch 'master' into gh-pages
...
Conflicts:
ProtocolLib/.classpath
ProtocolLib/.settings/org.eclipse.core.resources.prefs
2012-10-17 08:01:30 +02:00
Kristian S. Stangeland
0622322ef4
Merged.
2012-10-17 07:58:24 +02:00
Kristian S. Stangeland
d5028b584d
Put the provided CGLib dependency in the com.comphenix namespace.
2012-10-17 06:57:05 +02:00
Kristian S. Stangeland
2b6a4570ab
Added a couple of extra constructors.
2012-10-17 05:58:47 +02:00
Kristian S. Stangeland
4717cca2ec
Increment to 1.4.0.
2012-10-17 05:32:46 +02:00
Kristian S. Stangeland
dd5303ea88
Use a boolean lookup table instead of a ConcurrentHashMap.
2012-10-17 04:13:25 +02:00