mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-19 15:09:24 +00:00
added actionbar tip
This commit is contained in:
@@ -563,6 +563,7 @@ public class BukkitGameManager implements GameManager {
|
||||
private final String font = section.getString("subtitle.font");
|
||||
private final String barImage = section.getString("subtitle.bar");
|
||||
private final String tip = section.getString("tip");
|
||||
private final String actionbarTip = section.getString("actionbar-tip");
|
||||
|
||||
@Override
|
||||
public BiFunction<CustomFishingHook, GameSetting, AbstractGamingPlayer> gamingPlayerProvider() {
|
||||
@@ -599,6 +600,9 @@ public class BukkitGameManager implements GameManager {
|
||||
endGame();
|
||||
return;
|
||||
}
|
||||
if (actionbarTip != null) {
|
||||
SparrowHeart.getInstance().sendActionBar(getPlayer(), AdventureHelper.miniMessageToJson(actionbarTip));
|
||||
}
|
||||
showUI();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ mechanics:
|
||||
actions:
|
||||
actionbar_action:
|
||||
type: actionbar
|
||||
value: '<#FFD700>[New Record]</#FFD700> <#FFFFF0>You caught a(n) {nick} measuring <#FFA500>{size_formatted}cm</#FFA500> long!</#FFFFF0>'
|
||||
value: '<#FFD700>[New Record]</#FFD700> <#FFFFF0>You caught a(n) {nick} measuring <#FFA500>{size_formatted}cm</#FFA500> long!</#FFFFF0> <#C0C0C0>(Previous record: {previous_record_formatted}cm)</#C0C0C0>'
|
||||
sound_action:
|
||||
type: sound
|
||||
value:
|
||||
|
||||
@@ -1500,6 +1500,7 @@ tension_game_easy:
|
||||
title: '{progress}'
|
||||
# Tip would show on the title to guide the player how to play
|
||||
tip: '<gray>Press <red><key:key.sneak> <gray>to start'
|
||||
actionbar-tip: '<gray>Press <red><key:key.sneak> <gray>to pull the fish'
|
||||
subtitle:
|
||||
font: 'customfishing:default'
|
||||
bar: '뀑'
|
||||
@@ -1539,6 +1540,7 @@ tension_game_normal:
|
||||
title: '{progress}'
|
||||
# Tip would show on the title to guide the player how to play
|
||||
tip: '<gray>Press <red><key:key.sneak> <gray>to start'
|
||||
actionbar-tip: '<gray>Press <red><key:key.sneak> <gray>to pull the fish'
|
||||
subtitle:
|
||||
font: 'customfishing:default'
|
||||
bar: '뀑'
|
||||
@@ -1578,6 +1580,7 @@ tension_game_hard:
|
||||
title: '{progress}'
|
||||
# Tip would show on the title to guide the player how to play
|
||||
tip: '<gray>Press <red><key:key.sneak> <gray>to start'
|
||||
actionbar-tip: '<gray>Press <red><key:key.sneak> <gray>to pull the fish'
|
||||
subtitle:
|
||||
font: 'customfishing:default'
|
||||
bar: '뀑'
|
||||
|
||||
Reference in New Issue
Block a user