Commit Graph

19008 Commits

Author SHA1 Message Date
Spigot cc6e8ab703 Faster UUID for entities
It is overkill to create a new SecureRandom on each entity create and then use it to make a new Entity ID for every entity instance created. Instead we will just use a pseudo random UUID based off the random instance we already have.

By: md_5 <md_5@live.com.au>
2013-03-17 19:02:58 +11:00
Spigot f4da5482df Deploy server again. wot eva
By: md_5 <md_5@live.com.au>
2013-03-17 12:27:11 +11:00
Spigot 3a7173aa1b Automatically update upstream versions. Bukkit-1.4.7-R1.0-11-g78bf7a9, CraftBukkit-1.4.7-R1.0-31-g4ff57b2
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 18:36:31 -05:00
Spigot 62e902bbcc Automatically update upstream versions. Bukkit-1.4.7-R1.0-11-g78bf7a9, CraftBukkit-1.4.7-R1.0-30-g55b5fb7
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 18:21:29 -05:00
Spigot 81d0524331 Automatically update upstream versions. Bukkit-1.4.7-R1.0-11-g78bf7a9, CraftBukkit-1.4.7-R1.0-29-ge46c007
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 17:31:32 -05:00
Spigot fee63691d5 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-29-ge46c007
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 17:16:32 -05:00
Spigot d9002e97ca Update Netty to 4.0.0-Beta3 + reapply patches for new index info.
By: md_5 <md_5@live.com.au>
2013-03-17 09:14:16 +11:00
Spigot 36dd1f54b3 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-28-g35194cb
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 17:01:30 -05:00
Spigot e146880bce Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-26-gc70dc7f
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 14:56:31 -05:00
Spigot 2a0e800253 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-25-g7b6d10e
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 13:51:30 -05:00
Spigot dccfbd2f01 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-24-g39576c5
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 13:31:36 -05:00
Spigot 6c4acd9b86 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-23-g80d8c9a
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 13:21:34 -05:00
Spigot 320fa58fd5 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-22-g91d3c5e
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 10:31:31 -05:00
Spigot 00efbf14ee Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-21-g85ce07a
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 09:51:30 -05:00
Spigot 70d134170a Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-20-gcac2f27
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 09:01:31 -05:00
Spigot 91d0d9cb3b Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-19-gb5d0b75
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 08:36:30 -05:00
Spigot b949532022 Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-18-g536aa38
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 08:11:32 -05:00
Spigot a43f67431c Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-17-g5bb49e4
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 07:41:32 -05:00
Spigot f9b3a1f67b Automatically update upstream versions. Bukkit-1.4.7-R1.0-10-g3645b38, CraftBukkit-1.4.7-R1.0-16-g2f32ee4
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-16 02:51:38 -05:00
Spigot 1218987001 Fix isDamaged check for backwards compat
By: md_5 <md_5@live.com.au>
2013-03-16 11:57:39 +11:00
Spigot 5e01ba90c1 Update Spigot to version 1.5. By using this build you agree to the following terms: (read next line)
1) You will not hold SpigotMC responsible for any losses or damages incurred to you by using this build
2) You will report ALL bugs to SpigotMC and not other parties

Thanks for all the support and all parties who made this update possible; especially the awesome Spigot community. Sorry for the delay, but we had to fix some crucial bugs.

Regressions in this commit:
@mikeprimm's smarter chunk ticking patch has been removed as it prevents proper redstone and other block ticking logic.

By: md_5 <md_5@live.com.au>
2013-03-16 10:17:00 +11:00
Spigot 78b59cb9ef Cleanup patch
By: md_5 <md_5@live.com.au>
2013-03-16 10:11:01 +11:00
Spigot 8cd6af53fe Finish up the patches for 1.5. Now to test.
By: md_5 <md_5@live.com.au>
2013-03-16 09:08:53 +11:00
Spigot 12afb9956e Update Spigot API patches for 1.5
By: md_5 <md_5@live.com.au>
2013-03-16 08:39:54 +11:00
Spigot f831bcfce2 Phase 1 of MC 1.5 update. No this is not meant to compile, don't get your hopes up :p
By: md_5 <md_5@live.com.au>
2013-03-16 08:35:56 +11:00
Spigot 8b867225be Automatically update upstream versions. Bukkit-1.4.7-R1.0-9-gf9917ef, CraftBukkit-1.4.7-R1.0-15-g8e7c097
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-15 14:31:33 -05:00
Spigot 8fbce380ba Automatically update upstream versions. Bukkit-1.4.7-R1.0-8-g9b0ecdf, CraftBukkit-1.4.7-R1.0-14-gd3d98a1
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-15 13:41:40 -05:00
Spigot 16eac56e06 Remove ANSI patch from @jrtc27 for now, breaks log strip colours.
By: md_5 <md_5@live.com.au>
2013-03-15 20:49:12 +11:00
Spigot 3c598b3871 Strip colours from logs when enabled.
By: md_5 <md_5@live.com.au>
2013-03-15 20:46:16 +11:00
Spigot 8e682dd68e Remove extra event debug. Doesn't help + issue is already identified
By: md_5 <md_5@live.com.au>
2013-03-15 07:20:41 +11:00
Spigot 34ae30f823 Try harder to print debug.
By: md_5 <md_5@live.com.au>
2013-03-14 20:52:32 +11:00
Spigot 4338e3bed9 Add debug code for event exceptions.
By: md_5 <md_5@live.com.au>
2013-03-14 20:37:44 +11:00
Spigot 63ba9e08e4 Fix stripping colours in console logs.
By: md_5 <md_5@live.com.au>
2013-03-14 19:15:38 +11:00
Spigot 39f0cb433f Rename ambiguous methods.
By: md_5 <md_5@live.com.au>
2013-03-14 16:32:15 +11:00
Spigot d21bdd7de7 Reapply Container.java CraftBukkit patches, but with 1.5 logic. This fixes crafting and other issues.
By: md_5 <md_5@live.com.au>
2013-03-14 16:25:03 +11:00
Spigot 371c0e343c Restart even if restart script is not found
By: Runemoro <runemoro@live.ca>
2013-03-13 18:28:49 +11:00
Spigot 2eac2bcaab Automatically update upstream versions. Bukkit-1.4.7-R1.0-7-g6ea9162, CraftBukkit-1.4.7-R1.0-13-g437c575
By: EcoCityCraft <admin@ecocitycraft.com>
2013-03-12 03:16:05 -05:00
Spigot 8c7c0995db Undo all that encryption faff - NioBuffers arent for the job.
By: md_5 <md_5@live.com.au>
2013-03-12 17:26:16 +11:00
Aikar f9af4df79e PlayerDeathEvent#getItemsToKeep
Exposes a mutable array on items a player should keep on death

Example Usage: https://gist.github.com/aikar/5bb202de6057a051a950ce1f29feb0b4
2013-03-11 20:04:34 -04:00
Aikar 06e00bdd20 Server Tick Events
Fires event at start and end of a server tick
2019-03-27 21:58:55 -04:00
Aikar 2825ece820 Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause
a ton of noise to plugin developers.

Use ApiStatus.Internal instead of Deprecated for actual internal API
that continues to have use (internally).

These do not help plugin developers if they bring moise noise than value.
2019-03-24 18:39:01 -04:00
Aikar ded424db46 Fixes and additions to the spawn reason API
Expose an entities spawn reason on the entity.
Pre existing entities will return NATURAL if it was a non
persistenting Living Entity, SPAWNER for spawners,
or DEFAULT since data was not stored.

Additionally, add missing spawn reasons.

Co-authored-by: Aurora <aurora@relanet.eu>
Co-authored-by: Jakub Zacek <dawon@dawon.eu>
2019-03-24 00:21:23 -04:00
MisterVector 452f8cf88b Add PlayerPostRespawnEvent 2018-10-26 21:33:13 -07:00
Mark Vainomaa 86603709de Add GS4 Query event 2019-03-17 21:46:27 +02:00
Mark Vainomaa 13d4e540cf Add WhitelistToggleEvent 2019-03-13 20:04:43 +02:00
Aikar 719f0a0a7e BlockDestroyEvent
Adds an event for when the server is going to destroy a current block,
potentially causing it to drop. This event can be cancelled to avoid
the block destruction, such as preventing signs from popping when
floating in the air.

This can replace many uses of BlockPhysicsEvent
2019-02-06 00:19:33 -05:00
Aikar fda116f002 Add ItemStack Recipe API helper methods
Allows using ExactChoice Recipes with easier methods

Redirects some of upstream's APIs to these new methods to avoid
usage of magic values and the deprecated RecipeChoice#getItemStack
2014-01-28 19:13:57 -05:00
Zach Brown 9b814929a7 Add APIs to replace OfflinePlayer#getLastPlayed
Currently OfflinePlayer#getLastPlayed could more accurately be described
as "OfflinePlayer#getLastTimeTheirDataWasSaved".

The API doc says it should return the last time the server "witnessed"
the player, whilst also saying it should return the last time they
logged in. The current implementation does neither.

Given this interesting contradiction in the API documentation and the
current defacto implementation, I've elected to deprecate (with no
intent to remove) and replace it with two new methods, clearly named and
documented as to their purpose.
2019-01-02 00:31:12 -06:00
Spottedleaf 1302332a7e Add PlayerConnectionCloseEvent
This event is invoked when a player has disconnected. It is guaranteed that,
if the server is in online-mode, that the provided uuid and username have been
validated.

The event is invoked for players who have not yet logged into the world, whereas
PlayerQuitEvent is only invoked on players who have logged into the world.

The event is invoked for players who have already logged into the world,
although whether or not the player exists in the world at the time of
firing is undefined. (That is, whether the plugin can retrieve a Player object
using the event parameters is undefined). However, it is guaranteed that this
event is invoked AFTER PlayerQuitEvent, if the player has already logged into
the world.

This event is guaranteed to never fire unless AsyncPlayerPreLoginEvent has
been called beforehand, and this event may not be called in parallel with
AsyncPlayerPreLoginEvent for the same connection.

Cancelling the AsyncPlayerPreLoginEvent guarantees the corresponding
PlayerConnectionCloseEvent is never called.

The event may be invoked asynchronously or synchronously. As it stands,
it is never invoked asynchronously. However, plugins should check
Event#isAsynchronous to be future-proof.

On purpose, the deprecated PlayerPreLoginEvent event is left out of the
API spec for this event. Plugins should not be using that event, and
how PlayerPreLoginEvent interacts with PlayerConnectionCloseEvent
is undefined.
2018-10-07 12:05:06 -07:00
DoNotSpamPls ad83a72cf5 Change the reserved channel check to be sensible 2018-10-23 19:32:55 +03:00