diff options
-rw-r--r-- | README.md | 23 | ||||
-rw-r--r-- | src/net/brysonsteck/Resurrection/commands/CommandHowLong.java | 4 |
2 files changed, 19 insertions, 8 deletions
@@ -2,19 +2,26 @@ Resurrection is a Spigot Minecraft Server plugin that forces players to wait a full 24 hours before rejoining the world. This allows for tactical planning for games such as faction survival as it can severely penalize an entire team if care is not taken. -This plugin currently runs on 1.16.5 servers and worlds with 1.17.\* support expected in the future. +**This plugin is currently in a beta state.** This means that the plugin's functionality may not be stable or as intended. Opening issues here on GitHub or contacting me on Discord is heavily recommended if a bug occurs. -# Commands +## Compatibility + +Tested Versions: 1.16 +Native Version: 1.16 + +## Commands * `/about` - * Displays information about the plugin, manually checks for updates. + * Displays information about the plugin, including links to GitHub and Spigot, and also warns the player if the plugin is outdated. * `/resurrect PLAYER` - * An operator-only command. Manually resurrects a player if they are dead. -* `/howlong [PLAYER]` *(Currently not implemented)* + * Manually resurrects a player if they are dead. + * Operator-only command. +* `/howlong [PLAYER]` * Shows the player how long they (or the specified player) have until they are resurrected. + * This command requires a player to be specified when ran from the console. -# Files +## Files -This program automatically generates a [`playerData.resurrection`](data/playerData.resurrection) file in the same directory as the Spigot server jar. This file contains data for each player relevant for the plugin and is important to make sure that the resurrection timing stays in effect after a server shutdown. If this file is deleted, moved or non-existent, a blank file will be created in it's place on enabling. +This program automatically generates a [`playerData.resurrection`](data/playerData.resurrection) file in the same directory as the plugin Jar file. This file contains data for each player relevant for the plugin and is important to make sure that the resurrection timing stays in effect after a server shutdown. If this file is deleted, moved or doesn't exist, a blank file will be created in it's place upon enabling. -***Please be aware that removing this file after it's creation may cause the plugin to behave differently,*** such as holding a player in a dead state for all of time and eternity. +***Please be aware that modifying, moving or removing this file after it's creation or while the plugin is enabled may cause the plugin to behave erratically,*** such as holding a player in a dead state for all of time and eternity. If you choose to do so, do it at your own risk. diff --git a/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java b/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java index d4c2360..7e1c27d 100644 --- a/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java +++ b/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java @@ -59,6 +59,7 @@ public class CommandHowLong implements CommandExecutor { } else { commandSender.sendMessage("ERROR: " + p.getDisplayName() + " is not dead!"); } + return false; } } } @@ -99,6 +100,9 @@ public class CommandHowLong implements CommandExecutor { System.out.println("[Resurrection] " + p.getDisplayName() + " will respawn in " + timeCheck.formatTime()); return true; + } else { + System.out.println("[Resurrection] ERROR: " + p.getDisplayName() + " is not dead!"); + return false; } } } |