Commit Graph

93 Commits

Author SHA1 Message Date
Terin Stock
2e382ae160 fix: explicitly set sign lines
Minecraft allows for plugins to retrieve the text of a newly created or
modified sign through the `SignChangeEvent.getLines()` method. In
vanilla, the lines returned can be mutated, however a
`SignChangeEvent.setLine(idx, text)` method exists.

PaperMC has internally switched most user-facing text to using the
Adventure Text components, to better support text styling and optimize
serializations. For backwards compatibility with most plugins, PaperMC
retains deprecated `getLines` and `setLine` methods by providing a
legacy serialization view of the Aventure components, however mutations
of the returned list are ignored.

This changeset calls `setLine` after all event listeners ran, allowing
PaperMC to preserve the sign mutations.
2021-08-29 21:53:54 -07:00
BrainStone
b7c88f9911
New materials don't even have an ID anymore
Handle that case as well.

Honestly the best solution would be to just get rid of getBlockIDAt as it's only used in two places where it could be trivially replaced
2021-07-18 03:27:59 +02:00
BrainStone
f6c45adc5f
Added a fallback for the case when numerical IDs have been removed from Bukkit
This fixes webbukkit/dynmap#3418.

The idea is to catch the case when numeric IDs have been removed from the code base and to then just use a fallback. Also doing it this way ensures maxium longevity, as `Material#getID` will be among the last ones removed, while other methods to get the numerical ID will get likely get removed earlier
2021-07-18 03:19:56 +02:00
Aniket
97c250fea8 Fix typo in configuration.txt 2021-07-13 19:53:24 +01:00
Mike Primm
c3ef1c6839 Handle deprecated materials 2021-07-11 11:54:03 -05:00
Kosma Moczek
310a635b87 spigot: fix resource handling on Gradle 7 2021-06-27 15:28:05 +02:00
Kosma Moczek
cf121956c3 build.gradle: rename compile -> implementation 2021-06-27 13:51:12 +02:00
Mike Primm
049bbeda83 Add api-version 1.13 2021-06-26 13:54:59 -05:00
Kian Kasad
788a78bbe0
Use updated method of getting SkinsRestorer API 2021-06-20 09:22:07 -07:00
Kian Kasad
04c494f127
Update SkinsRestorer dependency to v14.1.0-SNAPSHOT 2021-06-20 09:16:59 -07:00
Mike Primm
e72ce6ed8b Initial building/running Spigot 1.17 code... still very incomplete 2021-06-11 21:59:04 -05:00
stepech
0ae5694ae6
Update SkinsRestorer hook to v14 API 2021-03-04 20:49:47 +01:00
Mike Primm
d584771549 Add config comments for postgresql 2021-02-07 23:14:09 -06:00
Ben Lönnqvist
3f821a902d
added option webp-l to use lossless webp #3191 2021-01-08 23:45:30 +02:00
Thomas Janssen
c7fa125bdc Fixed issue where the BukkitVersionHelperSpigot116 would be incorrectly loaded for newer versions. 2020-11-05 09:52:33 +01:00
Thomas Janssen
426346f48a Removed personal comments from Helper 2020-11-04 08:24:05 +01:00
Thomas Janssen
8ad0cff1b5 Updated bukkit/spigot build for minecraft 1.16.4 2020-11-03 21:49:40 +01:00
Mike Primm
87b57d5639 Add defaults to configuration.txt for webp 2020-10-25 18:59:22 -05:00
Mike Primm
2568670455 Add Spigot 1.16.3 support 2020-09-10 22:18:51 -05:00
Mike Primm
123d005adf Add fix for Vault permission provider 2020-08-16 01:16:29 -05:00
Mike Primm
c867735c1a Add 1.16.2 support for Spigot 2020-08-12 21:40:06 -05:00
Mike Primm
24b2a00d23 Add /dmap worldgetlimits, worldaddlimit, worldremovelimit commands 2020-07-04 18:02:30 -05:00
Mike Primm
6efaa8187b Update configuration.txt for block-alias example 2020-06-27 17:59:53 -05:00
Mike Primm
51ebdc6f31 Initial 1.16.1 support - get it running 2020-06-25 19:29:03 -05:00
Mike Primm
295d799b50 Add enterReplacesExits setting for greeting/farewell 2020-05-30 20:29:16 -05:00
Mike Primm
c6d0d25ae0 Add enter/exit settings in configuration.txt 2020-05-25 20:15:40 -05:00
Mike Primm
5e15187e46 Finish support for greeting/farewall text on area markers 2020-05-25 13:55:36 -05:00
Mike Primm
04aafb54da Switch format default for clean config files to jpg-q90 2020-05-16 19:24:36 -05:00
mikeprimm
f151cdc84f
Merge pull request #2896 from owlnull/v3.0
Add skins support via SkinsRestorer plugin
2020-05-16 16:18:17 -05:00
Mike Primm
6fcfa7c3e6 Get build clean with retired components 2020-05-16 16:17:32 -05:00
Mike Primm
b7dc453879 Drop unsupported versions (1.13.0, 1.13.1, 1.14.0) 2020-05-16 13:29:39 -05:00
Mike Primm
15cf132ada show-mc 2020-05-02 17:50:22 -05:00
owlnull
c7cb56bc1d Fix plugin crash caused by SkinsRestorer integration
SkinsRestorer integration now just shows warning instead of plugin crash when SkinsRestorer not installed and integration enabled
2020-04-28 15:10:25 +05:00
owlnull
ef2a45ab2a Made dependency SkinsRestorer compileOnly 2020-04-26 13:09:12 +05:00
owlnull
1ffa0e24ff Fix NullPointerException in SkinsRestorerSkinUrlProvider.getSkinUrl during joins player without skin 2020-04-23 07:23:12 +05:00
owlnull
578c66e2fe Add skins support via SkinsRestorer plugin 2020-04-23 06:39:54 +05:00
mikeprimm
781238dad9
Update plugin.yml 2020-04-12 19:41:18 -05:00
mikeprimm
9e70e2ce53
Merge pull request #2769 from PEXPlugins/feature/vaultperms
Add Vault compatibility and fix PEX v2 usage
2020-04-12 19:40:25 -05:00
mikeprimm
57bd7db63c
Update plugin.yml 2020-04-12 19:40:14 -05:00
mikeprimm
11dd0cff5b
Update plugin.yml 2020-04-12 19:38:20 -05:00
mikeprimm
7f7ab08fe5
Merge pull request #2841 from paulstraw/feature/worldborderlabel
Add `worldborderlabel` configuration.txt setting
2020-04-12 19:31:06 -05:00
mikeprimm
d3d711b038
Add Reddit URL 2020-04-12 19:26:00 -05:00
Paul Straw
3937ece59a Adds worldborderlabel configuration.txt setting 2020-04-02 22:01:30 -07:00
Zach Levis
23e1bd2c59 spigot: Add Vault permissions provider
This allows performing permissions checks using any plugin that
implements the Vault interfaces without having to provide direct
support, including for offline players.
2020-01-26 20:45:29 -08:00
Zach Levis
aee27a10d4 spigot: For PEX provider, check class presence
Previously, just the plugin name was checked, which meant that Dynmap
would crash on servers running PEX 2 rather than falling back to another
provider such as superperms or op
2020-01-26 20:44:54 -08:00
Mike Primm
10529e1049 Update for 1.15.2 Spigot 2020-01-22 11:06:09 -06:00
mikeprimm
96aa816227
Merge pull request #2710 from MitchTalmadge/v3.0
Use Material instead of Block ID in SignChangeEvent and BlockEvent (Fixes #2699)
2019-12-20 20:38:03 -06:00
Mike Primm
178681d284 Revert api-version change - problems with 1.15.1 2019-12-20 20:26:18 -06:00
Mitch Talmadge
a3cb46e286 Change 'int blkid' to 'String material' for block and sign-change events. 2019-12-19 21:36:09 -07:00
Mike Primm
ad621306e8 Update for Spigot 1.15.1 2019-12-17 19:06:12 -06:00