From c47db404b2001d73a2c21a0cfe4935556c5d1cbe Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Sat, 30 Sep 2023 21:01:19 +0200 Subject: [PATCH] Handle mapping exception --- modules/checks/checks.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/checks/checks.config.ts b/modules/checks/checks.config.ts index b493d93..c232d1b 100644 --- a/modules/checks/checks.config.ts +++ b/modules/checks/checks.config.ts @@ -39,6 +39,15 @@ const checksConfig: ChecksConfig = { 'Your plugin may be loading before SkinsRestorer. To load your plugin after SkinsRestorer, add `softdepend: [ "SkinsRestorer" ]` to your plugin.yml file.' ], link: 'https://skinsrestorer.net/docs/development/api#add-skinsrestorer-as-a-dependency' + }, + { + checks: [/NoMappingException/g], + title: 'Missing mapping in SkinsRestorer', + content: 'This error occurs when the current build does not support the current Minecraft version. Every new version of Minecraft requires a new mapping to be added to SkinsRestorer because of Spigot\'s obfuscation.', + tips: [ + "Check announcements for updates for new versions of SkinsRestorer. If there is no update, please be patient.", + 'If PaperMC has released a new version, try switching from Spigot to Paper. We recommend PaperMC over Spigot because we don\'t use mappings for Paper.' + ], } ] }