my gui isnt working
Confirmation
- [X] I have read the FAQ.
- [X] I have tested the latest development build of Chest Commands and the bug is still present.
- [X] I have updated Spigot to the latest release for my particular Minecraft version.
- [X] I made sure the bug hasn't already been reported on the issue tracker.
Description
i get a error when i made a bedwars stats menu it gets this error
How to reproduce
i made a gui file like this ###################### #+ +#
MENU SETTINGS
#+ +# ######################
menu-settings: name: 'Stats' rows: 6
commands:
- stats
auto-refresh: 5.0
open-actions:
open-with-item:
left-click: false
right-click: true
###################### #+ +#
ICONS
#+ +# ######################
stats: MATERIAL: MAP POSITION-X: 5 POSITION-Y: 3 NAME: '&eStats' KEEP-OPEN: true LORE: - '' - 'Your Level: %bw1058_player_level%' - 'Progress: %bw1058_player_progress%' - '' - 'Games played: &6%bw1058_stats_gamesplayed%' - 'Beds was destroyed: &6%bw1058_stats_bedsdestroyed%' - '' - 'Final Kills: &a%bw1058_stats_finalkills%' - 'Final Deaths: &a%bw1058_stats_finaldeaths%' - '' - 'Kills: &a%bw1058_stats_kills%' - 'Wins: &a%bw1058_stats_wins%' - 'Losses: &a%bw1058_stats_losses%' - '' - 'First Played on: &a%bw1058_stats_firstplay%'
Server version
Previous version : git-Paper-235 (MC: 1.18.2)
Chest Commands version
ChestCommands version 4.0.3
Additional information
[07:53:40 ERROR]: Could not pass event PlayerCommandPreprocessEvent to ChestCommands v4.0.3
java.lang.NullPointerException: date must not be null
at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
at java.util.Calendar.setTime(Calendar.java:1792) ~[?:?]
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:978) ~[?:?]
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:971) ~[?:?]
at java.text.DateFormat.format(DateFormat.java:378) ~[?:?]
at com.andrei1058.bedwars.support.papi.PAPISupport.onPlaceholderRequest(PAPISupport.java:115) ~[bedwars-plugin-22.3.4.jar:?]
at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:161) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[PlaceholderAPI-2.11.1.jar:?]
at me.filoghost.chestcommands.hook.PlaceholderAPIHook.setPlaceholders(PlaceholderAPIHook.java:37) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.placeholder.PlaceholderManager.replaceDynamicPlaceholders(PlaceholderManager.java:57) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.placeholder.PlaceholderString.getValue(PlaceholderString.java:33) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.placeholder.PlaceholderStringList.lambda$getValue$0(PlaceholderStringList.java:47) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.fcommons.collection.CollectionUtils.transformImmutable(CollectionUtils.java:59) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.placeholder.PlaceholderStringList.getValue(PlaceholderStringList.java:47) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.icon.BaseConfigurableIcon.renderLore(BaseConfigurableIcon.java:262) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.icon.BaseConfigurableIcon.render(BaseConfigurableIcon.java:285) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.icon.InternalConfigurableIcon.render(InternalConfigurableIcon.java:100) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.icon.InternalConfigurableIcon.updateRendering(InternalConfigurableIcon.java:189) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.inventory.DefaultMenuView.refresh(DefaultMenuView.java:38) ~[ChestCommands.jar:?]
at me.filoghost.chestcommands.inventory.DefaultMenuView.