Skip to content

Commit

Permalink
7.0.2 - NPE on chatcolor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Aug 7, 2023
1 parent 3d7b988 commit 1ce9e23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>sh.reece</groupId>
<artifactId>servertools</artifactId>
<version>7.0.1</version>
<version>7.0.2</version>

<name>servertools</name>
<url>https://reece.sh</url>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/sh/reece/tools/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ public void unloadAll() {
Bukkit.getServer().getScheduler().cancelTasks(plugin);
ChangeSlots.saveNewChangeSlotsPlayers();
dailyrewards.saveCooldownsToFile();
chatcolor.saveChatColorToFile();
if(chatcolor != null) {
chatcolor.saveChatColorToFile();
}
if(holograms != null) {
holograms.removeAllStands();
}
Expand Down

0 comments on commit 1ce9e23

Please sign in to comment.