Commit Graph

218 Commits

Author SHA1 Message Date
Owen 7f60924390 Configuration API (#12301)
This implements a solution that preemptively exits the tick loop if we have already marked the connection as disconnecting. This avoids changing the result of Connection#isConnected in order to avoid other possibly unintentional changes. Fundamentally it should be investigated if closing the connection async is really still needed.

This also additionally removes the login disconnecting logic for server stopping, as this was also a possible issue in the config stage but also shouldn't be an issue as connections are closed on server stop very early.

Additionally, do not check for isConnecting() on VERIFYING, as that seemed to be an old diff originally trying to resolve this code, however isConnected is not updated at this point so it pretty much was useless.
2025-06-30 11:49:15 +02:00
Md5Lukas 3efaf477c4 Add API for client-side signs (#11903) 2025-05-24 21:16:23 +02:00
brickmonster fa360aa836 Add some missing annotations and an incorrect one (#12204) 2025-05-18 18:31:49 -04:00
Lulu13022002 9e873f50d3 Fix inconsistencies between offline/online spawn position getter (#11960) 2025-04-29 14:57:36 +02:00
David 952338b33e [ci skip] Add missing exception docs to Player#listPlayer (#12488) 2025-04-28 15:00:02 +02:00
Nassim Jahnke f00727c57e 1.21.5
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev>
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com>
Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com>
Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
2025-04-12 17:27:00 +02:00
Shane Bee 8e69d981fa Player - Expose player score (#12243) 2025-03-08 11:38:50 -08:00
David 6cfa2f7f31 [ci skip] Add missing nullability annotation to sendEquipmentChange method (#12112)
Marked ItemStack parameter as `@Nullable` to explicitly indicate it can be null. This improves clarity, avoids nullability problems, and aligns with the method's documented behavior for handling null values.
2025-02-14 18:39:44 +01:00
Jason Penilla 61312fdb59 Switch to jspecify annotations for Player (#12042)
Fixes compilation issues for plugins from recent API addition with double-annotated parameter (JetBrains annotations are type-use and parameter, so nonnull array of nonnull elements ends up with duplicates)
2025-02-08 20:57:35 +01:00
masmc05 3af5e77132 Add Player#give (#11995) 2025-01-26 21:19:00 +01:00
Creeam 336ea9dfeb Check for empty when sending equipment changes (#12008) 2025-01-25 20:04:47 +01:00
Jake Potrebic ca8709b30f Fix more incorrect array nullability annotations (#11836) 2024-12-27 22:24:16 +01:00
Pedro d568e175ee Port basic lookAt methods from Player to Entity (#11775) 2024-12-24 23:00:07 +01:00
Jake Potrebic 4cd3060ff8 Improve entity effect API 2024-09-27 17:12:50 -07:00
nostalfinals daebdc24e7 Added API to get player ha proxy address 2024-04-08 23:24:38 +08:00
Flo0 c6e1625d87 API for checking sent chunks 2024-04-08 16:22:07 +02:00
Lukas Planz 26ad0bb45b Add experience points API 2023-09-05 20:33:52 +02:00
booky10 2fccf1c185 Add player idle duration API
Implements API for getting and resetting a player's idle duration.
2023-10-14 03:11:11 +02:00
Corey Shupe 3273a33a46 Add Listing API for Player 2023-01-11 16:40:31 -05:00
Jake Potrebic 1ce71b513e Fix BanList API 2023-07-04 11:27:18 -07:00
Lama06 7e5c1f612a Win Screen API 2023-01-21 13:45:22 +01:00
TreyRuffy 2d4a6d3f7d Flying Fall Damage API 2022-05-27 02:25:38 -06:00
dawon 850e3c2ea1 Add Sneaking API for Entities 2022-10-19 23:36:42 +02:00
dawon 9ef7128806 Add Player Warden Warning API 2022-10-15 00:46:32 +02:00
SoSeDiK ad084f6684 Elder Guardian appearance API 2022-10-11 20:38:47 +03:00
Owen1212055 e88a306a8c Custom Chat Completion Suggestions API 2022-07-30 11:23:11 -04:00
Owen1212055 4eafd09fd9 More Teleport API 2021-09-05 00:36:05 -04:00
Brody Beckwith da77e72dce Multi Block Change API 2022-01-14 00:40:42 -05:00
Jake Potrebic 93e2ecfd49 Add PlayerKickEvent causes 2021-05-15 20:30:34 -07:00
Mariell Hoversholm 41efb5322e Add sendOpLevel API 2020-12-29 15:02:57 +01:00
Trigary a3a9180c51 Player elytra boost API 2020-04-14 12:06:14 +02:00
DigitalRegent 5df47beccf Brand support 2020-04-06 20:30:09 +02:00
MiniDigger | Martin 6143a7a97b Add Player Client Options API 2020-01-20 21:38:34 +01: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
BillyGalbreath 9ccfc565ff Expose attack cooldown methods for Player 2018-09-04 15:01:54 -05:00
Aikar 92482f8e92 Add Ban Methods to Player Objects
Allows a more logical API for banning players.

player.banPlayer("Breaking the rules");
2018-04-28 10:28:50 -04:00
Mark Vainomaa a97f03a018 Add openSign method to HumanEntity 2018-04-01 02:28:43 +03:00
Aikar 4447307899 Player.setPlayerProfile API
This can be useful for changing name or skins after a player has logged in.
2018-03-18 12:28:55 -04:00
Aikar 8bfc474fb4 Ability to apply mending to XP API
This allows plugins that give players the ability to apply the experience
points to the Item Mending formula, which will repair an item instead
of giving the player experience points.

Both an API To standalone mend, and apply mending logic to .giveExp has been added.
2017-12-20 17:38:07 -05:00
Minecrell 5de53af38b Expose client protocol version and virtual host
Add a NetworkClient interface that provides access to:
  - The socket address
  - The protocol version
  - The virtual host (the hostname/port the client used to connect
    to the server)
2017-10-10 18:44:42 +02:00
Zach Brown 0c37d20354 Fix upstream javadocs 2017-06-10 16:59:40 -05:00
Aikar e5e56e1ee1 Add String based Action Bar API 2016-12-20 15:55:55 -05:00
Jedediah Smith ecfabc25c7 Complete resource pack API 2015-04-04 22:59:54 -04:00
Techcable b8f6338201 Player Tab List and Title APIs
Co-authored-by: Fruxz <cedricspitzer@outlook.de>
2016-02-29 20:02:40 -06:00
Zach Brown b007bb8264 Graduate bungeecord chat API from spigot subclasses
Change Javadoc to be accurate
2016-02-29 19:54:32 -06:00
Byteflux 5fe2709f4c Add view distance API
Add per player no-tick, tick, and send view distances.

Also add send/no-tick view distance to World.
2016-02-29 18:05:37 -06:00
Jedediah Smith 978feffa80 Player affects spawning API 2016-02-29 17:22:34 -06:00
Aikar d4d8262f6e Timings v2
TODO: Add #isStopping to FullServerTickHandler#stopTiming in patch 191
expose isRunning
2016-02-29 18:48:17 -06:00
Riley Park 15081a5912 Adventure
Co-authored-by: zml <zml@stellardrift.ca>
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
2021-01-29 17:21:55 +01:00
Bukkit/Spigot 28e80d52a4 BungeeCord Chat API
By: md_5 <git@md-5.net>
2014-12-13 02:59:14 +01:00