-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if JSON data still matches what's on the sign
BlockLocker uses hidden JSON data to store the UUIDs of players. Now that Spigot leaves the hidden JSON data intact when updating a sign (see https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/560b65c4f8a15619aaa4a1737c7040f21e725cce#src/main/java/org/bukkit/craftbukkit/block/CraftSign.java ), this data has the potential to become outdated. For example, the /blocklocker <line number> command didn't update the player UUIDs stored on the sign, because the old UUIDs weren't removed anymore. Now the JSON-data is cross-checked against the text on the sign. If the JSON data doesn't match the text, it is now ignored. Fixes #92, #93.
- Loading branch information
Showing
1 changed file
with
45 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters