Commit Graph

54 Commits

Author SHA1 Message Date
md_5
49c2537fe2 Fix memory leak in PlayerList 2017-07-17 09:55:47 +10:00
md_5
9de5cb59a0 SPIGOT-3377: Fix subspace bubble advancement 2017-06-26 10:16:54 +10:00
md_5
e13d119686 Update to Minecraft 1.12-pre6 2017-05-30 21:55:13 +10:00
md_5
1004352990 Update to Minecraft 1.12-pre5 2017-05-19 21:00:13 +10:00
md_5
45102fcf28 Misc advancement / recipe reload fixes including SPIGOT-3240 2017-05-16 21:22:07 +10:00
md_5
5195487ec6 Update to Minecraft 1.12-pre2 2017-05-14 12:00:00 +10:00
Pokechu22
a2af8f0a73 SPIGOT-3207: Fix hiding players in a BukkitRunnable after joining
This happened because "joining" wasn't cleared until the player was ticked.  Runnables (presumably) ran _after_ the player list packet was sent, but before the player was ticked; thus, the player list packet was sent, but not cleared.  The fix is to replace joining with hasSentListPacket, which is set immediately before sending any player list packets (thus, if hidePlayer is called after, it sees that the list packet has been sent and sends a new one to reset it).  With this fix, the player is added to the list and then removed shortly afterwards.

The reason why running /hideall in the example wouldn't fix the invisibility is because the server already thinks the player's been removed from the list (as they're hidden), and thus doesn't want to send another hide packet.  This is correct behavior assuming that they get hidden correctly the first time, which they now do.
2017-04-28 15:27:57 +10:00
md_5
7b044defc0 Remove players from vehicle when changing world via NMS methods. 2017-04-21 14:56:41 +10:00
Pokechu22
4d3bf20155 Re-enable the vanilla debug MethodProfiler and /debug command
This is highly useful for profiling vanilla code, and in some cases plugin code.  It is somewhat expensive, though, which is why it was initially disabled.

I chose to use a system property instead of a configuration setting because 1) the MethodProfiler is exclusive to CraftBukkit and not part of the general API (the timings system is the general API equivalent), and 2) using a static final boolean property _may_ allow the JITter to optimize out the methods when disabled (though I'm not sure of it).

There are several changes to fix cases where the profiler code was broken slightly by other craftbukkit changes.  All of cases have been fixed, except for the block entity ticking one, due to the cost of the getSimpleName call.  For that, a ticking entry is used instead, so that time spent actually ticking the block entities can be compared with time processing the list.

This (effectively) reverts 7dde6cc566.
2017-01-18 17:42:35 -08:00
md_5
8ea0c87f51 Update to Minecraft 1.11.1 2016-12-21 07:00:00 +11:00
md_5
d7cce99f01 Fix possible leaks in vanish API 2016-11-28 10:02:40 +11:00
md_5
c25ddf063a Update to Minecraft 1.11 2016-11-17 12:41:03 +11:00
md_5
2e39de698d SPIGOT-1903, MC-98153: Portal Location Sync Issues 2016-10-23 14:00:35 +11:00
md_5
4db0855e3e SPIGOT-2622: Ensure all players are safely disconnected on shutdown 2016-08-23 14:02:48 +10:00
md_5
2239ff0f97 SPIGOT-2501: Remove period from default quit message 2016-07-07 10:43:49 +10:00
md_5
287ef78890 SPIGOT-2461: Call player tick specifically 2016-06-28 11:44:48 +10:00
md_5
ecf4b4238a SPIGOT-924: Compute attributes one last time after quitting 2016-06-25 20:38:13 +10:00
md_5
a8a4bedd2a Update to Minecraft 1.10 2016-06-09 11:43:49 +10:00
md_5
042911fef4 SPIGOT-2311: Cancelling PlayerPortalEvent causes invulnerability until relog 2016-05-25 18:25:49 +10:00
md_5
c5e9a169fa Minecraft 1.9.4 2016-05-10 21:47:39 +10:00
Thinkofname
f01861f80b SPIGOT-2115: Fix entities being added to the world multiple times when teleported 2016-04-02 01:12:03 +01:00
Zach Brown
712213dacc Fix player dimension change invulnerability never getting unset when certain dimensions are disabled 2016-03-24 08:48:04 +11:00
md_5
23a94053b0 Remove redundant syncInventory on world change 2016-03-06 16:25:50 +11:00
md_5
972d33dd44 SPIGOT-1573: Fix command blocks after respawning 2016-03-06 14:35:33 +11:00
md_5
aa008dff0f Update to Minecraft 1.9 2016-03-01 09:32:45 +11:00
Thinkofdeath
75593ab621 SPIGOT-1308: Fix typo in PlayerList#sendAll 2016-01-22 11:13:34 +00:00
md_5
af00fd2a20 SPIGOT-1058: Fix lost player list capping to 60.
Went missing in the 1.8 update.
2015-07-18 12:39:45 +10:00
Thinkofdeath
53433de98d SPIGOT-954: Don't send block animations or gamemode updates to players can't see the player 2015-06-07 21:04:28 +01:00
md_5
a65e45d889 [SPIGOT-946] Begin making use of access transforms to simplify patching. 2015-06-06 19:46:42 +10:00
md_5
d63abf6cf1 Cut fluff from patch headers. 2015-05-25 20:37:24 +10:00
Thinkofdeath
a486600749 Update to 1.8.4 2015-05-17 10:32:59 +01:00
Thinkofdeath
0af2738ae2 Fire PlayerTeleport event on portal travel 2015-03-21 20:36:38 +00:00
Thinkofdeath
ad2f806097 Only double switch if the dimension is the same 2015-03-08 10:58:10 +00:00
Thinkofdeath
d03ffbf54b Readd the double dimension switch 2015-03-08 10:28:12 +00:00
Thinkofdeath
d8a9c7be42 Update to Minecraft 1.8.3 2015-03-04 09:48:58 +00:00
Thinkofdeath
3fc97ff11a Remove the double dimension switch as the issue seems fixed, if it breaks something blame SupaHam 2015-02-18 21:30:58 +00:00
Thinkofdeath
7bdb8f9f21 Handle new players correctly 2015-02-04 20:33:06 +00:00
Thinkofdeath
bdd52c9892 Improve vanilla's rename detection by using bukkit's lastKnownName nbt tag 2015-02-04 19:29:07 +00:00
Thinkofdeath
f98775c939 Re-enable the vanilla feature of changing the join message if a player has changed name since their last join
This uses the UserCache (like vanilla) and therefore is limited to whether
they are still in the cache by the next join
2015-02-03 23:38:21 +00:00
Thinkofdeath
d5ede3bd6d Rework the vanilla link fix so that hover/click events aren't lost 2014-12-13 10:27:26 +00:00
Thinkofdeath
5f2a9eadde SPIGOT-199: Default to white instead of black for chat messages 2014-12-13 09:37:47 +00:00
Thinkofdeath
95169d4765 Use CraftChatMessage.fromComponent so that colors remain in sent messages 2014-12-12 21:46:12 +00:00
md_5
7017af7e6d [Vanilla Fix] Process links in broadcasted messages. 2014-12-12 18:20:42 +11:00
Thinkofdeath
f48410a39c Fix per a world world borders
Well... mostly anyway
2014-12-10 19:17:17 +00:00
Thinkofdeath
fbda3a7c99 Fix worldborders showing from the wrong world 2014-12-06 22:26:49 +00:00
Thinkofdeath
c4129c259b Disconnect old players before firing PlayerLoginEvent and fire a
PlayerQuitEvent straight after a PlayerKickEvent
2014-12-06 20:53:57 +00:00
Thinkofdeath
a7287cb4c6 Force the player to be saved when disconnecting duplicates
Allows the current player to grab the updated file
2014-12-06 11:16:18 +00:00
Thinkofdeath
8110f51b50 Minor formatting fixes 2014-12-03 11:08:35 +00:00
Thinkofdeath
0429c76df6 Fix a missed case for weather transitions on join 2014-12-02 16:38:16 +00:00
Thinkofdeath
90ac03522a Revert "Remove patch headers"
This reverts commit d6e3dff7d8.
2014-11-28 23:02:15 +00:00