aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--lib/gson-2.8.7.jarbin240400 -> 0 bytes
-rw-r--r--lib/spigot-api-1.16.5-R0.1-20210524.223338-87.jarbin1307220 -> 0 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandSource.java4
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerData.java2
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerListener.java2
-rw-r--r--src/net/brysonsteck/Resurrection/startup/ParseSettings.java4
7 files changed, 5 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index d7e1575..f065a60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,4 @@
out/production/
Resurrection.iml
data/resurrection bukkit.png
-
+lib/
diff --git a/lib/gson-2.8.7.jar b/lib/gson-2.8.7.jar
deleted file mode 100644
index 215e823..0000000
--- a/lib/gson-2.8.7.jar
+++ /dev/null
Binary files differ
diff --git a/lib/spigot-api-1.16.5-R0.1-20210524.223338-87.jar b/lib/spigot-api-1.16.5-R0.1-20210524.223338-87.jar
deleted file mode 100644
index 75fba07..0000000
--- a/lib/spigot-api-1.16.5-R0.1-20210524.223338-87.jar
+++ /dev/null
Binary files differ
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandSource.java b/src/net/brysonsteck/Resurrection/commands/CommandSource.java
index 5ac7666..31481e8 100644
--- a/src/net/brysonsteck/Resurrection/commands/CommandSource.java
+++ b/src/net/brysonsteck/Resurrection/commands/CommandSource.java
@@ -1,14 +1,12 @@
package net.brysonsteck.Resurrection.commands;
-import net.brysonsteck.Resurrection.Resurrection;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
-import org.bukkit.plugin.java.JavaPlugin;
-import org.bukkit.scheduler.BukkitRunnable;
+
public class CommandSource implements CommandExecutor {
boolean DEBUG;
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerData.java b/src/net/brysonsteck/Resurrection/player/PlayerData.java
index d663c8e..89df20f 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerData.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerData.java
@@ -61,10 +61,10 @@ public class PlayerData {
playerHash.put("timeLeft", playerData[2]);
this.playerData.put(playerData[0], playerHash);
if (DEBUG) {
- TimeCheck timeCheck = new TimeCheck(Long.parseLong(playerData[2]));
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + "[Res. DEBUG]: player: " + playerData[0].replaceFirst(";","") + " | dead: " + playerData[1] + " | ms to resurrect at: " + playerData[2]);
}
}
+ reader.close();
} catch (IOException e) {
if (DEBUG) {
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + "[Res. DEBUG]: Error occurred while trying to read player data. Resurrection is shutting down");
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
index 6971f84..9a445e4 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
@@ -15,8 +15,6 @@ import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scheduler.BukkitRunnable;
-import java.util.Hashtable;
-
public class PlayerListener implements Listener {
boolean stillDead;
diff --git a/src/net/brysonsteck/Resurrection/startup/ParseSettings.java b/src/net/brysonsteck/Resurrection/startup/ParseSettings.java
index d76b657..75d24a6 100644
--- a/src/net/brysonsteck/Resurrection/startup/ParseSettings.java
+++ b/src/net/brysonsteck/Resurrection/startup/ParseSettings.java
@@ -6,7 +6,6 @@ import org.bukkit.plugin.java.JavaPlugin;
import java.io.*;
import java.util.Hashtable;
-import java.util.Locale;
public class ParseSettings {
Hashtable<String, String> settings = new Hashtable<>();
@@ -42,6 +41,7 @@ public class ParseSettings {
settings.put(setting[0], setting[1]);
}
}
+ reader.close();
if (!verifySettings()) {
System.out.println("[Resurrection] There is a syntax issue inside the Settings file:");
if (!settingsComplete) {
@@ -81,7 +81,7 @@ public class ParseSettings {
// is resurrection_time a long?
try {
- long time = Long.parseLong(settings.get("resurrection_time"));
+ Long.parseLong(settings.get("resurrection_time"));
} catch (NumberFormatException | NullPointerException e) {
failedSetting = "resurrection_time";
return false;