Commit Graph

91 Commits

Author SHA1 Message Date
Jake Potrebic ee1a4b288c System prop for default config comment parsing
Allows for certain legacy plugins to continue to work without changing
by setting `Paper.parseYamlCommentsByDefault` to false
2021-12-30 16:35:56 -08: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 0023e5549a #1082: Add "since" to Deprecation annotations
By: DerFrZocker <derrieple@gmail.com>
2024-11-25 07:52:33 +11:00
Bukkit/Spigot f73b5cbdb3 SPIGOT-7906: Increase YAML nesting limit to 100
By: blablubbabc <lukas@wirsindwir.de>
2024-09-24 07:47:30 +10:00
Bukkit/Spigot 90df6eb97a #915: Add support for virtual entities
By: Jishuna <joshl5324@gmail.com>
2023-11-19 19:03:25 +13:00
Bukkit/Spigot 7c9037dfee SPIGOT-6885: Add test and easier to debug code for reference in yaml configuration comments
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2023-04-16 10:26:10 +10:00
Bukkit/Spigot b76cbe36c5 Update to Minecraft 1.19.4
By: md_5 <git@md-5.net>
2023-03-15 03:30:00 +11:00
Bukkit/Spigot cbb1dd46c0 Remove obsolete workaround for SnakeYAML 100 comment limit
By: md_5 <git@md-5.net>
2022-10-09 11:45:05 +11:00
Bukkit/Spigot cc4b84e4fb SPIGOT-7161: SnakeYaml 1.32 changed the default file size limit
By: md_5 <git@md-5.net>
2022-10-09 11:40:29 +11:00
Bukkit/Spigot ec575f5252 Update to Minecraft 1.19
By: md_5 <git@md-5.net>
2022-06-08 02:00:00 +10:00
Bukkit/Spigot 0854352e80 SPIGOT-6949: Configuration sections that are nested within Maps or Lists are not properly serialized.
This broke with the configuration changes in
ed8a152b3a.

This commit reverts one of the changes of this other commit so that
nested configuration sections are serialized as Maps again.

Although the types of these nested configuration sections are not
preserved when reloading a configuration (they turn into Maps), their
contents should at least be preserved, as it has been the case in
earlier Bukkit versions.

By: blablubbabc <lukas@wirsindwir.de>
2022-04-22 19:38:45 +10:00
Bukkit/Spigot 9003a55038 SPIGOT-6886: Restore previous behaviour of loading unusual config keys
By: blablubbabc <lukas@wirsindwir.de>
2022-01-09 10:04:49 +11:00
Bukkit/Spigot 215952d23f Fix saving configs which are only a header
By: md_5 <git@md-5.net>
2022-01-08 09:39:38 +11:00
Bukkit/Spigot 7aec97546b Add workaround for SnakeYAML 100 comment limit
By: md_5 <git@md-5.net>
2022-01-04 09:25:20 +11:00
Bukkit/Spigot 4fd0026eb5 #703: Fix/test yaml anchors and merge
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2022-01-02 21:08:01 +01:00
Bukkit/Spigot fc98731c16 #702: fromNodeTree is now private, this does not belong to the API
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-29 07:52:44 +11:00
Bukkit/Spigot b911613abe #701: Option to configure the max width of a line in the config
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-27 09:47:14 +11:00
Bukkit/Spigot 0503e4faed SPIGOT-6866: Fixed spaces a between comment indicator and actual comment
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-23 23:07:00 +01:00
Bukkit/Spigot 46d8d2cd11 Restore protected members to YamlConfiguration
By: md_5 <git@md-5.net>
2021-12-23 11:33:21 +11:00
Bukkit/Spigot ed8a152b3a SPIGOT-3247: Comment support for YAML files
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-21 08:35:19 +11:00
Bukkit/Spigot 308cc50afa #687: Fix NPE from previous commits
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-06 07:22:16 +11:00
Bukkit/Spigot ab0429fddc #686: Fix contains for default section generating real sections
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-04 22:05:54 +01:00
Bukkit/Spigot 3ddde21487 SPIGOT-6830: Fix addDefaults with Configuration overrides child Sections in the defaults
By: Wolf2323 <gabrielpatrikurban@gmail.com>
2021-12-04 21:38:45 +01:00
Bukkit/Spigot 2b580de08b #604: Add Contract annotation to ConfigurationSection
By: DerFrZocker <derrieple@gmail.com>
2021-04-27 11:34:32 +10:00
Bukkit/Spigot d34f1cd453 SPIGOT-6274: Reloading configuration does not clear previous values
By: blablubbabc <lukas@wirsindwir.de>
2021-01-13 08:35:37 +11:00
Bukkit/Spigot c73564ed4b SPIGOT-6313: Revert "SPIGOT-6274: Reloading configuration does not clear previous values"
This reverts commit 885c2247d1.

By: md_5 <git@md-5.net>
2021-01-12 11:34:31 +11:00
Bukkit/Spigot 885c2247d1 SPIGOT-6274: Reloading configuration does not clear previous values
By: md_5 <git@md-5.net>
2021-01-12 09:37:26 +11:00
Bukkit/Spigot 139ca6a269 SPIGOT-6234: enum classes don't serialize properly when implementing ConfigurationSerializable
By: md_5 <git@md-5.net>
2020-11-17 12:56:36 +11:00
Bukkit/Spigot 42799043b2 SPIGOT-5881: SnakeYaml 1.26 limits non-scalar (null) nodes while 1.25 does not
By: md_5 <git@md-5.net>
2020-06-29 09:06:29 +10:00
Bukkit/Spigot 0c53c95293 Add additional checkstyle checks
By: md_5 <git@md-5.net>
2020-01-24 17:37:30 +11:00
Bukkit/Spigot d16413b877 Javadoc improvements per checkstyle
By: md_5 <git@md-5.net>
2019-12-22 09:56:28 +11:00
Bukkit/Spigot 5b756e3926 Add getLocation to configuration API
By: Garrett Koleda <gmatrixgames@gmail.com>
2019-09-21 02:16:13 +00:00
Bukkit/Spigot 82854b7bd7 Add Override annotations where appropriate
By: md_5 <git@md-5.net>
2019-04-28 11:37:52 +10:00
Bukkit/Spigot e9ae9842f0 Apply and enforce import ordering rules
By: md_5 <git@md-5.net>
2019-04-23 14:33:57 +10:00
Bukkit/Spigot c240b58f66 Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
2019-04-23 14:00:20 +10:00
Bukkit/Spigot 4526a9f21e Add getObject methods to ConfigurationSection
By: stonar96 <minecraft.stonar96@gmail.com>
2019-03-19 23:19:09 +01:00
Bukkit/Spigot 416c865476 SPIGOT-2540: Add nullability annotations to entire Bukkit API
By: Darkyenus <darkyenus@gmail.com>
2019-03-13 17:42:57 +11:00
Bukkit/Spigot 6a8d62ff22 SPIGOT-4558: Preserve user order in the face of copied defaults in configurations
By: md_5 <git@md-5.net>
2018-12-31 17:10:56 +11:00
Bukkit/Spigot 66cea125d6 Minor cosmetic cleanups to imports etc
Please see https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/389/overview

By: Parker Hawke <hawkeboyz2@hotmail.com>
2018-10-27 14:55:52 -04:00
Bukkit/Spigot 55523cfcfc Add ray tracing and bounding box API
By: blablubbabc <lukas@wirsindwir.de>
2018-10-26 19:59:36 +11:00
Bukkit/Spigot 2496f119f4 Expand on ConfigurationSerializable methods in ConfigurationSection
By: Senmori <thesenmori@gmail.com>
2018-03-15 20:53:18 +11:00
Bukkit/Spigot 1c5031ca41 AttributeModifier not registered in ConfigurationSerialization
By: md_5 <git@md-5.net>
2017-11-15 09:45:55 +11:00
Bukkit/Spigot e3d4acc303 Assorted whitespace fixes
By: md_5 <git@md-5.net>
2017-08-06 09:08:05 +10:00
Bukkit/Spigot 32f414ff58 Remove some more long deprecated methods (3+ years)
By: md_5 <git@md-5.net>
2017-05-14 12:00:00 +10:00
Bukkit/Spigot a64729191f SPIGOT-2180: Empty ConfigurationSections created when removing value at end of path
By: Lukas Hennig <lukas@wirsindwir.de>
2016-04-16 16:08:35 +02:00
Bukkit/Spigot 640346e011 Add method to check configuration path existence, ignoring defaults.
By: FakeNeth <cneth97@gmail.com>
2016-04-05 18:24:05 -04:00
Bukkit/Spigot ad7fee9850 BUILDTOOLS-203: Fix invalid javadoc
By: md_5 <git@md-5.net>
2016-03-04 16:16:59 +11:00
Bukkit/Spigot 9cd422d56a Use UTF-8 as default encoding
Since March 2014 Bukkit has been converting and preparing plugins for UTF-8 compliance. With this change in place, all plugins will now load their configuration files as UTF-8, which is a supported encoding on any valid JVM implementation. This should pose no issues on any server which has run Bukkit after 2014, and the only possible breaking path is when an embedded file is of a non UTF-8 compatible encoding (which it should not be anyway).

By: Matt <mattbdev@outlook.com>
2016-03-01 08:30:03 +11:00
Bukkit/Spigot 2fa0da6fd3 Make Location ConfigurationSerializable.
By: Jofkos <JofkosDE@gmail.com>
2014-12-26 22:43:59 +01:00
Bukkit/Spigot 8c956cb6ff Register the Pattern class to ConfigurationSerialization
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2014-12-04 10:29:42 +00:00