ready for release 1.3
This commit is contained in:
parent
dddb321c70
commit
23ff6e31d2
3 changed files with 90 additions and 72 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ lib/
|
||||||
.gradle/
|
.gradle/
|
||||||
.vscode/
|
.vscode/
|
||||||
*.jar
|
*.jar
|
||||||
|
/builds
|
||||||
|
|
|
@ -9,11 +9,11 @@ Resurrection is intended to make players wait long amounts of time between death
|
||||||
|
|
||||||
Resurrection is only confirmed to run on vanilla Spigot or Bukkit servers, meaning you built the server yourself using `BuildTools` with no extra settings, or downloaded it from official sources such as their website. Resurrection is **NOT GUARANTEED** to run on **ANY** fork of Spigot/Bukkit servers, such as Tuinity or Paper. Issues reported involving these forks may not be provided a solution unless proven that the issue still happens on vanilla versions.
|
Resurrection is only confirmed to run on vanilla Spigot or Bukkit servers, meaning you built the server yourself using `BuildTools` with no extra settings, or downloaded it from official sources such as their website. Resurrection is **NOT GUARANTEED** to run on **ANY** fork of Spigot/Bukkit servers, such as Tuinity or Paper. Issues reported involving these forks may not be provided a solution unless proven that the issue still happens on vanilla versions.
|
||||||
|
|
||||||
Tested Minecraft Versions: 1.13, 1.14, 1.15, 1.16, 1.17, 1.18
|
Tested Minecraft Versions: 1.8<sup>*</sup>, 1.9, 1.10, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18
|
||||||
|
|
||||||
Native Version: 1.16
|
Native Version: 1.16
|
||||||
|
|
||||||
You can keep track of compatibility with other versions by viewing my [TODO list.](TODO.md)
|
<sup>*</sup>For Minecraft Servers version 1.8, you must download a special build of Resurrection in order for the plugin to work properly. These files are in the [releases](https://github.com/brysonsteck/resurrection/releases) as `Resurrection_1.8.jar` (for versions of Resurrection > 1.3).
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@ You can keep track of compatibility with other versions by viewing my [TODO list
|
||||||
* Displays information about the plugin, including links to download, and also warns the command-runner if the plugin is outdated.
|
* Displays information about the plugin, including links to download, and also warns the command-runner if the plugin is outdated.
|
||||||
* `/bug`
|
* `/bug`
|
||||||
* Displays contact information in case a bug occurs, such as links to the GitHub issues page and the Google Form.
|
* Displays contact information in case a bug occurs, such as links to the GitHub issues page and the Google Form.
|
||||||
|
* `/dead`
|
||||||
|
* Displays all the players currently awaiting resurrection and how long they have left.
|
||||||
* `/howlong [PLAYER]`
|
* `/howlong [PLAYER]`
|
||||||
* Shows the player how long they (or the specified player) have until they are resurrected.
|
* 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.
|
* This command requires a player to be specified when ran from the console.
|
||||||
|
|
|
@ -33,6 +33,7 @@ public class Resurrection extends JavaPlugin implements Listener {
|
||||||
PluginDescriptionFile pluginInfo = getDescription();
|
PluginDescriptionFile pluginInfo = getDescription();
|
||||||
getServer().getPluginManager().registerEvents(this, this);
|
getServer().getPluginManager().registerEvents(this, this);
|
||||||
|
|
||||||
|
boolean stop = false;
|
||||||
if (pluginInfo.getVersion().contains("beta")) {
|
if (pluginInfo.getVersion().contains("beta")) {
|
||||||
// beta message
|
// beta message
|
||||||
log.warning("---------------------------------------------------------");
|
log.warning("---------------------------------------------------------");
|
||||||
|
@ -41,11 +42,24 @@ public class Resurrection extends JavaPlugin implements Listener {
|
||||||
log.warning("");
|
log.warning("");
|
||||||
log.warning("This means that this plugin is early in development and not completely finished, and as a result you may experience unexpected doodads. Make sure that the plugin is up-to-date for more features and bug fixes. The plugin will now check for updates.");
|
log.warning("This means that this plugin is early in development and not completely finished, and as a result you may experience unexpected doodads. Make sure that the plugin is up-to-date for more features and bug fixes. The plugin will now check for updates.");
|
||||||
log.warning("---------------------------------------------------------");
|
log.warning("---------------------------------------------------------");
|
||||||
|
} else if (Bukkit.getVersion().contains("1.8")) {
|
||||||
|
if (!pluginInfo.getDescription().toLowerCase().contains("minecraft 1.8")) {
|
||||||
|
log.severe("---------------------------------------------------------");
|
||||||
|
log.severe("ERROR!");
|
||||||
|
log.severe("This version of Resurrection is not compatible with Minecraft 1.8 due to specific API calls that were changed in subsequent releases of the game. In order to use Resurrection with Minecraft 1.8, you must download the specific Jar titled \"Resurrection_1.8.jar\" listed in the latest release of Resurrection found at https://github.com/brysonsteck/resurrection/releases.");
|
||||||
|
log.severe("Resurrection will now disable to prevent crashing.");
|
||||||
|
log.severe("---------------------------------------------------------");
|
||||||
|
stop = true;
|
||||||
|
Bukkit.getPluginManager().disablePlugin(this);
|
||||||
|
} else {
|
||||||
|
log.info("---------------------------------------------------------");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("---------------------------------------------------------");
|
log.info("---------------------------------------------------------");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!stop) {
|
||||||
// check for updates
|
// check for updates
|
||||||
log.info("Checking for updates...");
|
log.info("Checking for updates...");
|
||||||
CheckForUpdate check = new CheckForUpdate();
|
CheckForUpdate check = new CheckForUpdate();
|
||||||
|
@ -121,6 +135,7 @@ public class Resurrection extends JavaPlugin implements Listener {
|
||||||
log.info("Successfully Started!");
|
log.info("Successfully Started!");
|
||||||
log.info("---------------------------------------------------------");
|
log.info("---------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue