Skip to content

Commit

Permalink
Add "PlaceholderAPI.PlayerNotFound" string config
Browse files Browse the repository at this point in the history
  • Loading branch information
A5H73Y committed Jan 26, 2024
1 parent e90f2f5 commit 4c0e749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class ParkourPlaceholders extends PlaceholderExpansion {
private static final String COURSE_ACTIVE = TranslationUtils.getTranslation("PlaceholderAPI.CourseActive", false);
private static final String COURSE_INACTIVE = TranslationUtils.getTranslation("PlaceholderAPI.CourseInactive", false);
private static final String NO_COOLDOWN_REMAINING = TranslationUtils.getTranslation("PlaceholderAPI.NoPrizeCooldown", false);
private static final String PLAYER_NOT_FOUND = TranslationUtils.getTranslation("PlaceholderAPI.PlayerNotFound", false);

private static final String COMPLETED = "completed";
private static final String POSITION = "position";
Expand Down Expand Up @@ -184,7 +185,7 @@ private String getPlayerPlaceholderValue(OfflinePlayer offlinePlayer, String...
}

if (!PlayerConfig.hasPlayerConfig(offlinePlayer)) {
return "Player not found";
return PLAYER_NOT_FOUND;
}

PlayerConfig playerConfig = PlayerConfig.getConfig(offlinePlayer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public StringsConfig(File file) {
this.setDefault("PlaceholderAPI.CourseInactive", "Inactive");
this.setDefault("PlaceholderAPI.CheckpointHologram", "Checkpoint &b%VALUE%");
this.setDefault("PlaceholderAPI.NoPrizeCooldown", "Prize Available");
this.setDefault("PlaceholderAPI.PlayerNotFound", "Player not found");

this.setDefault("GUI.JoinCourses.Heading", "Parkour Courses");
this.setDefault("GUI.JoinCourses.Setup.Line1", " ");
Expand Down

0 comments on commit 4c0e749

Please sign in to comment.