Skip to content

Commit

Permalink
Revert "Add server.shutdown mechanism, minor improvement"
Browse files Browse the repository at this point in the history
This reverts commit cb89381.
  • Loading branch information
mcmonkey4eva committed Dec 23, 2016
1 parent 62b97fa commit 67a7e21
Showing 1 changed file with 1 addition and 14 deletions.
Expand Up @@ -1178,20 +1178,7 @@ public static void adjustServer(Mechanism mechanism) {
// None
// -->
if (mechanism.matches("restart")) {
Bukkit.getServer().spigot().restart();
}

// <--[mechanism]
// @object server
// @name shutdown
// @input None
// @description
// Shuts down the Minecraft server.
// @tags
// None
// -->
if (mechanism.matches("shutdown")) {
Bukkit.getServer().shutdown();
Bukkit.getServer().restart();
}

if (!mechanism.fulfilled()) {
Expand Down

0 comments on commit 67a7e21

Please sign in to comment.