Commit graph

1255 commits

Author SHA1 Message Date
md_5
e207ea23cd Fix PlayerItemDamageEvent 2014-07-27 09:46:52 +10:00
Minecrell
348eae75f4 Log debug levels to the log file.
Allows plugin to log messages that aren't important when looking at the
console, but can be useful when reporting errors.
2014-07-27 09:43:58 +10:00
Thinkofdeath
273c64bbad Add missing particle to particle API 2014-07-26 21:51:17 +01:00
Thinkofdeath
b5dd202af1 Move getDouble into the Spigot Configuration patch 2014-07-26 18:03:45 +01:00
drXor
33d758773e Fetch complete profile for skull items, similarly to TileEntitySkull.
Caveat: When using skull meta, the user must refresh the inventory,
because that can't be done form the context in which the lookup is done.
2014-07-26 17:53:18 +01:00
drXor
5c32e1cb48 Undeprecate Player#updateInventory()V 2014-07-26 12:24:01 +01:00
Jonas Konrad
99a0a640e8 Make "moved too quickly" limit configurable 2014-07-26 12:22:49 +01:00
Thinkofdeath
7768676ae2 Modify the block placement limit to allow for the odd random packet or two
When the connection between a minecraft client and a server
(e.g. me and the spigot test server) is bad sometimes two placement
packets will arrive at the same time. When the extra one gets canceled
any blocks placed against it get rejected by the server causing the
whole chain to disappear. This fixes this by allowing more packets
to occur whilst making the window wider (since the client seems to be
capped at about one placement every 100ms on a normal connection)
2014-07-24 21:43:06 +01:00
Thinkofdeath
5c48793ecf Don't use Bukkit.getLogger as the CraftServer isn't loaded at this point 2014-07-24 15:27:08 +01:00
riking
67b502b6f8 No need to wait for the conversation to finish 2014-07-23 16:13:13 +10:00
md_5
27f8aa22bd Allow tab complete for /whitelist add, I guess it can *occasionally* make sense to add online players. 2014-07-22 21:14:52 +10:00
md_5
0e1fcfbe70 Only suggest ops to deop and remove whitelist add case entirely.
/whitelist add <onlinePlayer> makes no sense!
2014-07-22 21:12:29 +10:00
md_5
f3b7952c73 Fix slow tab complete for some commands.
Use online players instead of offline players, which is very slow.
2014-07-22 21:01:48 +10:00
Evan A. Haskell
b271cdbfa0 Fix Null Tile Entity Worlds 2014-07-22 18:56:56 +10:00
Jonas Konrad
f7ab380e16 Make "moved wrongly" limit configurable 2014-07-22 18:52:41 +10:00
md_5
f1ba1f6c07 Remove defensive copy in Entity Activation Range
This code was added in 1c84a5dd8c to alleviate some crashes. Since then we have improved our thread safety and detection of unsafe thread behaviour and as such there is no need to incur thhis performance hit anymore.
2014-07-22 18:49:36 +10:00
Thinkofdeath
f0e9304ca2 Move the "Fix player Skulls for 1.7.2 Clients" into the "Old / New Version Support." patch 2014-07-20 20:15:38 +01:00
Thinkofdeath
7dd02f30e4 Move fillProfileProperties to within the cache loader to prevent a possible race condition 2014-07-20 20:10:57 +01:00
Thinkofdeath
2ff238b9d4 Upstream merge 2014-07-20 00:27:03 +01:00
Thinkofdeath
482e9c9775 Fix IP banning 2014-07-19 22:14:07 +01:00
Thinkofdeath
17d4f25f4e Replace the temporary fix 2014-07-19 20:26:42 +01:00
Thinkofdeath
3a17625874 Prevent a crash involving attributes 2014-07-19 20:01:10 +01:00
Thinkofdeath
7a8460abb7 Filter item's nbt on send to prevent client crashes 2014-07-19 19:11:42 +01:00
Thinkofdeath
c9b6a59bbd Don't spawn bonus ocelots when plugins spawn ocelots 2014-07-19 12:51:34 +01:00
Aikar
cb25b2262d Use New Bukkit areNeighborsLoaded for checkIfActive 2014-07-19 15:46:27 +10:00
drXor
068075806e Fix enchanting tables wiping meta when stacked items are placed in them 2014-07-19 15:42:49 +10:00
Thinkofdeath
2ca12642bb Cache skull skin blobs instead of looking them up each time 2014-07-16 20:42:25 +01:00
Thinkofdeath
00122792ce Rework the block place limit to be based on the packet's arrival time instead of the server's current tick.
This should help with low tps servers/high latency connections
2014-07-16 10:30:28 +01:00
md_5
54909dd874 Ease ClassLoader Deadlocks Where Possible
When on Java 7 we can register the classloader as parallel capable to prevent deadlocks caused by certain scenarios. Due to the nature of PluginClassLoader this isn't completely safe, but we can make it safer by switching to concurrency focused collections. Either way this is far better than crashing the server.
2014-07-16 17:24:29 +10:00
Dmck2b
f3e4b53e57 Fix misnamed function causing oddities in mountables 2014-07-14 23:54:20 +01:00
md_5
f4711f11be Don't overwrite invalid spigot.yml 2014-07-12 11:30:01 +10:00
Thinkofdeath
ff6c58d83d Fix null pointer when a skeleton shoots an item frame 2014-07-11 14:05:25 +01:00
Thinkofdeath
5fd2b7421a Reduce the limit on block placement/interactions 2014-07-11 12:02:34 +01:00
md_5
da62d81c74 Fix some damage related bugs. 2014-07-11 12:41:26 +10:00
md_5
c56d296b43 Use Mikeprimm's nibble array improvements rather than CraftBukkit's.
They are functionally the same, however his are tried & tested and don't have bugs such as the one mentioned here: http://www.spigotmc.org/threads/empty-ghost-chunks-remove-huge-parts-of-underground-world.23290/
2014-07-11 10:08:55 +10:00
md_5
0dbeede023 How are we ever supposed to achieve anything useful if plugins insist on hooking into obscure, versioned code.
If you must use a plugin which relies on unsafe versioned code, please pick a library such as ProtocolLib by @aadnk which other plugins can depend on, instead of having each plugin implement their own risky behaviour.
2014-07-10 09:00:02 +10:00
md_5
4ee8b486b1 Update Netty version. 2014-07-09 12:09:38 +10:00
md_5
cfb3a28da5 Add CommandLine EULA Flag
This flag contains the same message as eula.txt (albeit with proper grammar for 3rd person plural). By setting this flag you are agreeing to the terms listed in the message printed upon setting this flag, which are no different from those agreed to by any other method.

This feature only exists for hosting companies and people who manage servers in bulk who wish to agree to the terms by setting a flag in a script.
2014-07-09 10:36:06 +10:00
md_5
281f26f7c1 Fix late bind 2014-07-09 10:26:52 +10:00
md_5
01a14f4b5a Update Spigot to Minecraft 1.7.10 2014-07-09 10:23:19 +10:00
md_5
52096c7c07 Fix Slow "Loading Libraries" 2014-07-08 20:28:00 +10:00
md_5
cf05b1a2ee Tabs.... 2014-07-08 20:26:21 +10:00
md_5
4df3391e7e Build against the Spigot copy of minecraft-server 2014-07-08 20:25:06 +10:00
md_5
8df6b3777f Revert Changes to Player Movement
Once and for all.

Thanks to Thinkofdeath & the users who put up with these changes, it was for a good cause, however at this point in time we do not feel it is possible to correct the large number of exploits present in player movement without the cooperation of Mojang. We will be seeking their cooperation, however in the mean time it is recommended that users install an anticheat plugin such as NoCheat+ to ensure some level of protection.

This will fix some strange behaviour users have been seeing in relation to player movements.
2014-07-08 18:16:17 +10:00
Suddenly
84ba0a28f0 Safer JSON Loading, Friendlier Errors 2014-07-08 09:44:30 +10:00
Aikar
9d913c29c7 Overhaul Timings System
* Now Tracks Commands
* Resolved Performance issue with Bukkit HandlerList method. Now all timings simply uses the Spigot System
* Performance Improvement simply not using TimedRegisteredListener too
* Bug with SyncChunkLoad tracking resolved. Now properly tracks many aspects of sync chunk load.
* Reset/On/Off accuracy - should no longer have any issues turning it on/off during runtime, so this has been re-enabled.
* Paste command on RCON now works
* Now tracks everything related to plugins too, so you can easily see total plugin cost
* Now tracks Tasks better and where they came from
* Now tracks plugins event handlers to the Listener/Method name too.
* Merged some Bukkit Patches so all timings changes are in 1 patch.
* Moved back to a CLQ for CustomTimingsHandler for thread safety for when tasks are created Async but then executed sync.
2014-07-08 09:32:57 +10:00
Suddenly
3650097544 Add More Information to session.lock Errors 2014-07-08 09:08:02 +10:00
md_5
71b92f69fd This is why we don't touch the big shiny green button @thinkofdeath 2014-07-08 09:04:57 +10:00
thinkofdeath
58e4de9c2d Merge pull request #188 from geNAZt/master
Fix Skulls for 1.7.2 to 1.7.5
2014-07-08 00:03:30 +01:00
md_5
a14dd364da Disable ResourceLeakDetector
Hopefully no plugins are somehow leaking buffers, but disabling the ResourceLeakDetector is a good thing for performance of the Netty IO subsytem (it's been disabled in BungeeCord for a while now).
2014-07-08 09:02:21 +10:00