Skip to content

Commit

Permalink
Added missing helppage for /resetskin, added message to inform the pl…
Browse files Browse the repository at this point in the history
…ayer when the language file is invalid -> They need to remove the folder after an update
  • Loading branch information
TobiasDeBruijn committed Jul 1, 2021
1 parent ed4989c commit 4ce5036
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
sender.sendMessage("- " + cg + "/getcode <url>" + cw + " " + LangHandler.model.skinFixerGetCodeHelp);
sender.sendMessage("- " + cg + "/skinfixer help" + cw + " " + LangHandler.model.skinFixerShowHelp);
sender.sendMessage("- " + cg + "/skinfixer version" + cw + " " + LangHandler.model.skinFixerVersionHelp);

sender.sendMessage("- " + cg + "/resetskin" + cw + " " + LangHandler.model.skinFixerVersionHelp);

return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ private LanguageModel loadModel(File modelFile) {

if(!validationResult.getA() ) {
SkinFixer.logWarn(String.format("LanguageModel '%s' failed validation: %s", modelFile.getAbsolutePath(), validationResult.getB()));
SkinFixer.logWarn("Did you recently update SkinFixer and forgot to remove your 'langs' folder?");
Bukkit.getPluginManager().disablePlugin(this.plugin);
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class LanguageModel {
@Required
public String skinFixerVersionHelp;
@Required
public String skinFixerResetSkinHelp;
@Required
//Variable: %VERSION%
public String skinFixerVersion;

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ skinFixerNoOptionProvided: No option provided. See /skinfixer help for help!
skinFixerSetSkinHelp: Set your skin from a code.
skinFixerGetCodeHelp: Generate a code from a Skin url. URL must be the skinfie itself.
skinFixerShowHelp: Shows this page.
skinFixerResetSkinHelp: Reset your skin, if you have a premium account your real skin will be applied when you log in again.
skinFixerVersionHelp: Returns the version of SkinFixer you are using
skinFixerVersion: You are using SkinFixer version %VERSION%

Expand Down

0 comments on commit 4ce5036

Please sign in to comment.