diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-08-19 21:12:47 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-08-19 21:12:47 -0600 |
commit | 4af9e11bf4abae7f866b62af0877b4ce8bd94365 (patch) | |
tree | 8349a50f8c97f9cc634cf68fbcb66f4cf0f10090 /src/net/brysonsteck/Resurrection/player | |
parent | 4cf58d64b58506334da594405f81d6e936aa6c3b (diff) | |
download | resurrection-4af9e11bf4abae7f866b62af0877b4ce8bd94365.tar resurrection-4af9e11bf4abae7f866b62af0877b4ce8bd94365.tar.gz resurrection-4af9e11bf4abae7f866b62af0877b4ce8bd94365.tar.bz2 |
completed setting parser
Diffstat (limited to 'src/net/brysonsteck/Resurrection/player')
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerData.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerData.java b/src/net/brysonsteck/Resurrection/player/PlayerData.java index 582d940..eea7c3a 100644 --- a/src/net/brysonsteck/Resurrection/player/PlayerData.java +++ b/src/net/brysonsteck/Resurrection/player/PlayerData.java @@ -1,6 +1,10 @@ package net.brysonsteck.Resurrection.player; +import net.brysonsteck.Resurrection.Resurrection; +import org.bukkit.Bukkit; +import org.bukkit.plugin.java.JavaPlugin; + import java.io.*; import java.util.Hashtable; @@ -38,7 +42,10 @@ public class PlayerData { this.playerData.put(playerData[0], playerHash); } } catch (IOException e) { + System.out.println("[Resurrection] There was an issue reading the player data file."); e.printStackTrace(); + System.out.println("[Resurrection] This file is crucial to Resurrection. Since the file could not be read, the plugin will now stop."); + Bukkit.getPluginManager().disablePlugin(JavaPlugin.getProvidingPlugin(Resurrection.class)); } } |