The plugin throws an error during the PlayerDeathEvent, specifically related to a malformed number formatting pattern for the DecimalFormat class in the deathEvent method. The pattern ###,##0.00 is causing an IllegalArgumentException.
Actual Behavior
An error is thrown, and the event cannot proceed, interrupting the intended behavior of the plugin: java.lang.IllegalArgumentException: Malformed pattern '###,##0.00' This results in the plugin failing to process death
penalties as expected.
Additional Information
The error occurred in DeathEvent.java at line 46, where the DecimalFormat is initialized.
Logs show: ```
java.lang.IllegalArgumentException: Malformed pattern '###,##0.00'
at java.base/java.text.DecimalFormat.applyPattern(DecimalFormat.java:3620)
at ExpensiveDeaths.jar/net.silverstonemc.expensivedeaths.DeathEvent.deathEvent(DeathEvent.java:46)
Description of the bug
The plugin throws an error during the PlayerDeathEvent, specifically related to a malformed number formatting pattern for the DecimalFormat class in the
deathEvent
method. The pattern###,##0.00
is causing an IllegalArgumentException.Link to latest.log file
https://paste.helpch.at/tihokejoqu.makefile
Steps to reproduce the problem
Expected behavior
The plugin should format numbers correctly using a valid pattern without throwing an error, applying the appropriate penalties to players upon death.
Output of
/version
This server is running Paper version 1.21.1-99-master@1bc02e6 (2024-09-25T02:41:02Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
Output of
/version ExpensiveDeaths
ExpensiveDeaths version 1.5.3
ExpensiveDeaths config.yml
Additional info
Actual Behavior An error is thrown, and the event cannot proceed, interrupting the intended behavior of the plugin:
java.lang.IllegalArgumentException: Malformed pattern '###,##0.00'
This results in the plugin failing to process death penalties as expected.Additional Information The error occurred in DeathEvent.java at line 46, where the DecimalFormat is initialized. Logs show: ``` java.lang.IllegalArgumentException: Malformed pattern '###,##0.00' at java.base/java.text.DecimalFormat.applyPattern(DecimalFormat.java:3620) at ExpensiveDeaths.jar/net.silverstonemc.expensivedeaths.DeathEvent.deathEvent(DeathEvent.java:46)