Commit Graph
39 Commits
Author SHA1 Message Date
Shane Freeder 58a24b5aaf handle PacketPlayInKeepAlive async
In 1.12.2, Mojang moved the processing of PacketPlayInKeepAlive off the main
thread, while entirely correct for the server, this causes issues with
plugins which are expecting the PlayerQuitEvent on the main thread.

In order to counteract some bad behavior, we will post handling of the
disconnection to the main thread, but leave the actual processing of the packet
on the main thread.
2017-10-05 02:25:41 +01:00
Shane Freeder d398f6ccf6 Update CraftBukkit 2017-10-03 21:12:34 +01:00
Shane Freeder 2727dfbafc Update craftbukkit 2017-10-01 01:57:01 +01:00
Shane Freeder 4a6a473a13 Update metrics to support java 9
http://openjdk.java.net/jeps/223
Java decided to change their versioning scheme and in doing so modified the
java.version system property to return $major[.$minor][.$secuity][-ea], as
opposed to 1.$major.0_$identifier we can handle pre-9 by checking if the "major"
is equal to "1", otherwise, 9+

of course, it really wouldn't be all that simple if they didn't add a quirk, now would it.
valid strings for the major may potentially include values such as -ea to deannotate a pre release
2017-09-26 05:58:52 +01:00
Shane Freeder 5ce5ef1c9f Update to 1.12.2, May the Tacos be with you 2017-09-18 12:04:01 +01:00
Shane Freeder 9f7b45a945 Update CB, refactor 0229-Fix-this-stupid-bullshit
Refactored 0229-Fix-this-stupid-bullshit in order to prevent merge conflicts
when spigot decides to update the timer and to provide some form of hint in the
console/log on startup.
2017-09-15 15:37:05 +01:00
Shane Freeder 0ccfc595a4 Cache generated EventExecutors (fixes #786)
the first 'major' change in this PR is to cache the generated event
executrs from the ASM class, by doing this we only generate a single
class for every method that we need an executor for, thus reducing the
number of classes that are needed, especially in cases where plugins
re/unregister events all the time.

The second change is to modify the generated classloader map, generated
classloaders are not held against the plugin itself but the classloader
that the event is declared in, the implication here is that we cannot
drop generated classloaders when a plugin disable, and so we use a guava
weak-key'd hashmap, downfall here is that classes won't be GC'd until
guava drops the generated classloader, however the first change should
deal with most of the grunt.
2017-09-06 21:18:36 +01:00
Shane Freeder 89e69d652f Update CB/S 2017-09-09 08:17:12 +01:00
Shane Freeder ada06c9e99 Rebuild patches 2017-09-03 01:09:35 +01:00
Shane Freeder e78847f843 Update B 2017-08-20 11:50:29 +01:00
Shane Freeder 7fc4d26c3f Update CB 2017-08-16 16:47:06 +01:00
Shane Freeder a6eb798352 Update S 2017-08-12 22:32:01 +01:00
Shane Freeder dfd39f99e6 [CI-SKIP] Travis: linux sudo vm's have more ram, also stop travis screwing with the git modules 2017-08-12 00:22:44 +01:00
Shane Freeder 4bf6691021 Update CB 2017-08-11 12:02:53 +01:00
Shane Freeder efe076defb Merge pull request #849 from Brokkonaut/dragon-egg-falling
MC-94186 Fix dragon egg falling in lazy chunks
2017-08-11 02:54:29 +01:00
Shane Freeder fbeadaefff Update CB (#846) 2017-08-09 19:44:28 +01:00
Shane Freeder 23d7d25afe fix construction order in CraftBanner 2017-08-06 16:36:48 +01:00
Shane Freeder 2c4293b0f6 Update B/CB/S 2017-08-05 23:36:47 +01:00
Shane Freeder fe649493e3 Update B/CB 2017-07-28 14:45:16 +01:00
Shane Freeder cdcfbbe285 Add missing coverages for getTileEntity in order to attempt to avoid exeptions when calling getTileEntity (#797) 2017-07-27 04:11:09 +01:00
Shane Freeder dde8cb0bc6 Update C 2017-07-19 23:02:48 +01:00
Shane Freeder 43d46feb48 Update B/CB 2017-07-10 14:04:41 +01:00
Shane Freeder b1c4f49c7a Update C 2017-07-09 10:56:36 +01:00
Shane Freeder 6e57283e32 Fix javadoc warnings 2017-07-03 16:38:49 +01:00
Shane Freeder 451ff56710 Provide a configurable option to disable creeper lingering effect spawns 2017-06-11 21:13:59 +01:00
Shane Freeder 1ee4b36a97 Re: Actually exit the JVM after stopping the server when /restart is ran 2017-06-09 01:46:54 +01:00
Shane Freeder 36c0415d72 Do not relocate fastutil 2017-06-08 19:07:00 +01:00
Shane Freeder 8bb457e352 Update Paper to MC 1.12 2017-06-08 15:16:51 +01:00
Shane Freeder 9cf2e3b3dc Update to 1.12-pre6 2017-05-31 09:04:52 +01:00
Shane Freeder 1695252805 Actually exit the JVM after stopping the server when /restart is ran 2017-05-18 21:15:47 +01:00
Shane Freeder 0377b7b862 Workaround a jansi bug with Windows
Update Paperclip too while we're here
2017-05-17 17:51:42 -05:00
Shane Freeder f3bc708389 Allow the watchdog to try sanely stopping the server 2017-05-14 14:49:56 +01:00
Shane Freeder 4200b785dc Remove Ignore invalid Marker Icon ID's in maps
Spigot has patched this issue inside MapIcon, meaning that we no longer need to maintain this patch; Spigots patch also fixes #668 in that it will verify the length of the array, as well as protect against a negative type value being fetched from the array. Only real change is that Spigots patch returns a MapIcon.Type.PLAYER, instead of the RED_MARKER as originally PR'd by Aikar.
2017-04-22 15:32:06 +01:00
Shane Freeder 24f6670a17 Use lastIndexOf in Metrics class to futureproof
Because who's going to remember to change that line...
2017-04-22 02:37:58 -05:00
Shane Freeder a4036ed3cb Call stopRiding() on a Players death
Currently, when a player dies they are not automatically ejected from the entity they are riding, which allows
for the ridden entity to affect the players location on respawn (we're still riding it for a part of a tick), as well as allows a dupe to occur with the ridden entity teleporting to the new world with the player
2017-04-18 15:08:27 +01:00
Shane Freeder 4a48c0504f Ensure that the world of a dead entity is not changed in a portal 2017-03-19 01:33:26 +00:00
Shane Freeder e71f0a9776 fix shell match to account for /usr/local for homebrew installs of zsh on macOS 2017-03-17 23:37:16 +00:00
Shane Freeder 33b8a43e4a Only set the location of the newly spawned entity 2017-03-17 13:17:52 +00:00
Shane Freeder 4a940edbe8 Fix a duplicate alive entity on second world 2017-03-16 22:31:53 -05:00