Commit graph

1006 commits

Author SHA1 Message Date
Thinkofdeath
463a1eb595 Filter attribute modifiers which cause the attribute to go out of its range 2014-07-31 17:49:09 +01:00
Thinkofdeath
8d45fe7f77 Merge the max health attribute patch into the previous one 2014-07-31 16:56:43 +01:00
Maxim Van de Wynckel
25b673fd7e Skip online mode UUID lookups when in offline mode and not using Bungee. 2014-07-30 17:08:36 +10:00
Thinkofdeath
6a6eff3319 Handle cases where the api fails to return a profile 2014-07-29 14:58:29 +01:00
Thinkofdeath
3452c620df Add an option for a global cache for any request on Mojang's api to handle plugins that don't use UserCache (or any cache) 2014-07-29 10:13:19 +01:00
Thinkofdeath
d3b9fa0d1f Set the minimum max health attribute value to 0.1 2014-07-28 23:16:22 +01:00
md_5
2bf4481e15 Update attribute maxes again once loaded 2014-07-28 17:29:45 +10:00
md_5
1e98f1161f Fix unit tests 2014-07-28 17:03:52 +10:00
md_5
fb3a9d38dd Allow Attribute Capping.
Apply some sensible defaults and allow server owners to customize the maximum values of selected common attributes.
2014-07-28 16:56:04 +10:00
md_5
408944e9f5 Apply NBTReadLimiter to more things. 2014-07-27 21:16:47 +10:00
md_5
abb775108d Move hopper patch to top for #180 2014-07-27 09:53:16 +10:00
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
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
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
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
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
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
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