Skip to content

Commit

Permalink
Naosita
Browse files Browse the repository at this point in the history
  • Loading branch information
syoooooooooyu committed Oct 29, 2024
1 parent 4344e36 commit 8cb3c13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ public AchievementItem(AchievementData data){
@Override
public ItemProvider getItemProvider() {
if(data == null) {
return new ItemBuilder(Material.LIGHT_GRAY_STAINED_GLASS_PANE);
return new ItemBuilder(Material.LIGHT_GRAY_STAINED_GLASS_PANE)
.setDisplayName("§c§l§n読み込みエラー")
.addLoreLines(
"運営に連絡してください"
);
}
ItemBuilder builder = new ItemBuilder(data.getMaterial())
.setDisplayName(data.getItemName());
Expand All @@ -33,6 +37,6 @@ public ItemProvider getItemProvider() {

@Override
public void handleClick(@NotNull ClickType clickType, @NotNull Player player, @NotNull InventoryClickEvent inventoryClickEvent) {
//クリックで実績解除報酬をプレゼント!とかあったらいいなと思った午前2時
// TODO: 実績解除報酬を追加する
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public ProgressBarItem(boolean isAchieved, String stage, String name) {
public ItemProvider getItemProvider() {
Material material;
if(Objects.equals(stage, AchievementDataManager.Achievement_NORMAL)){
material = isAchieved ? Material.LIGHT_BLUE_STAINED_GLASS_PANE:Material.LIGHT_GRAY_STAINED_GLASS_PANE;
material = isAchieved ? Material.LIGHT_BLUE_STAINED_GLASS_PANE : Material.LIGHT_GRAY_STAINED_GLASS_PANE;
}else{
material = isAchieved ? Material.BLUE_STAINED_GLASS_PANE:Material.LIGHT_BLUE_STAINED_GLASS_PANE;
material = isAchieved ? Material.BLUE_STAINED_GLASS_PANE : Material.LIGHT_BLUE_STAINED_GLASS_PANE;
}
return new ItemBuilder(material).setDisplayName(name);
}
Expand Down

0 comments on commit 8cb3c13

Please sign in to comment.