From 4af9e11bf4abae7f866b62af0877b4ce8bd94365 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Thu, 19 Aug 2021 21:12:47 -0600 Subject: completed setting parser --- src/net/brysonsteck/Resurrection/player/PlayerData.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net/brysonsteck/Resurrection/player/PlayerData.java') 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)); } } -- cgit v1.2.3