aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands/CommandAbout.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-09-13 17:14:31 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-09-13 17:14:31 -0600
commit9e8c0c2a881100939a63ba4d610af5d26b53938d (patch)
tree430ac0be6ad787a63212d9465549436f0a0af01b /src/net/brysonsteck/Resurrection/commands/CommandAbout.java
parenteec11316107edbd69d97080cebc369e042ce5183 (diff)
downloadresurrection-9e8c0c2a881100939a63ba4d610af5d26b53938d.tar
resurrection-9e8c0c2a881100939a63ba4d610af5d26b53938d.tar.gz
resurrection-9e8c0c2a881100939a63ba4d610af5d26b53938d.tar.bz2
found lack of saving data if player joins during dead state and resurrects
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands/CommandAbout.java')
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandAbout.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandAbout.java b/src/net/brysonsteck/Resurrection/commands/CommandAbout.java
index 08f0437..a820432 100644
--- a/src/net/brysonsteck/Resurrection/commands/CommandAbout.java
+++ b/src/net/brysonsteck/Resurrection/commands/CommandAbout.java
@@ -8,24 +8,24 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class CommandAbout implements CommandExecutor {
- boolean debug;
+ boolean DEBUG;
String currentVersion;
boolean outdated;
public CommandAbout(String debug, String currentVersion, boolean outdated) {
- this.debug = Boolean.parseBoolean(debug);
+ this.DEBUG = Boolean.parseBoolean(debug);
this.currentVersion = currentVersion;
this.outdated = outdated;
}
@Override
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
- if (debug) {
+ if (DEBUG) {
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + "[Res. DEBUG]: The `/about` command was ran by " + commandSender.getName());
}
if (commandSender instanceof Player) {
- if (debug) {
+ if (DEBUG) {
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + "[Res. DEBUG]: CommandSender is a player.");
}
Player p = (Player) commandSender;
@@ -40,7 +40,7 @@ public class CommandAbout implements CommandExecutor {
p.sendMessage(ChatColor.YELLOW + "For more info on this plugin or to download it, visit the GitHub repository at " + ChatColor.AQUA + "https://github.com/brysonsteck/resurrection");
p.sendMessage(ChatColor.YELLOW + "\u00a9 2021 Bryson Steck");
} else {
- if (debug) {
+ if (DEBUG) {
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + "[Res. DEBUG]: CommandSender is console.");
}
System.out.println("[Resurrection] --- Resurrection ---");