summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/modules/scriptutils
diff options
context:
space:
mode:
authorMinenash <minenash@protonmail.com>2018-12-09 18:47:56 -0500
committerMinenash <minenash@protonmail.com>2018-12-09 18:47:56 -0500
commitb7112af7e645675ccd878602d158ac7f36dd6055 (patch)
tree045d357f0f5667465da70e0127f676ca1935342d /src/main/java/com/redstoner/modules/scriptutils
parenteba1397e34b61cd69b87d14ce9275c4f270b47e8 (diff)
Removed useless scripts
Diffstat (limited to 'src/main/java/com/redstoner/modules/scriptutils')
-rw-r--r--src/main/java/com/redstoner/modules/scriptutils/Scriptutils.java39
1 files changed, 1 insertions, 38 deletions
diff --git a/src/main/java/com/redstoner/modules/scriptutils/Scriptutils.java b/src/main/java/com/redstoner/modules/scriptutils/Scriptutils.java
index 1d634c0..f91d48c 100644
--- a/src/main/java/com/redstoner/modules/scriptutils/Scriptutils.java
+++ b/src/main/java/com/redstoner/modules/scriptutils/Scriptutils.java
@@ -11,7 +11,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
-@Version(major = 4, minor = 1, revision = 0, compatible = 4)
+@Version(major = 4, minor = 2, revision = 0, compatible = 4)
public class Scriptutils implements Module
{
/** Prints Bukkit restart message
@@ -89,24 +89,6 @@ public class Scriptutils implements Module
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "save-on");
}
- /** Prints the world trimming started message and starts trimming */
- @Command(hook = "script_trim")
- public void print_backup_trim(CommandSender sender)
- {
- Utils.broadcast("", "§4 =§3 Deleting all chunks beyond border now.", null);
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "wb Creative trim 1000000 15");
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "wb trim confirm");
- }
-
- /** Prints the trimming finished message
- * arg 0 size difference of world
- * arg 1: world border trim data */
- @Command(hook = "script_trim_result")
- public void print_backup_trim_res(CommandSender sender, String size, String data)
- {
- Utils.broadcast("", "§4 =§3 Chunk deletion saved " + data + " (§a" + size + "MB§3)", null);
- }
-
/** Prints the database backup started message and admin-chat warning */
@Command(hook = "script_backup_database_begin")
public void print_backup_db_begin(CommandSender sender)
@@ -146,25 +128,6 @@ public class Scriptutils implements Module
Utils.broadcast("", "§6 =§2 Database backup aborted.", null);
}
- /** Prints the spigot update message */
- @Command(hook = "script_spigot_update")
- public void print_update(CommandSender sender)
- {
- Utils.broadcast("", "§9 =§2 A new Spigot version has been downloaded!", null);
- Utils.broadcast("", "§9 =§2 Update will be applied after the next reboot.", null);
- }
-
- /** Prints the admin-chat warning for disk is filled
- * arg 0 fill percentage */
- @Command(hook = "script_disk_filled")
- public void print_disk_filled(CommandSender sender, String percentage)
- {
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(),
- "ac §4§lWARNING:§6 Disk is filled > 96% (" + percentage + "%);");
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "ac §4 Server will shut down at 98%!");
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "ac §4 Contact an admin §nimmediately§4!");
- }
-
/** Saves all worlds, kicks players and shuts down the server
* arg 0: reason */
@Command(hook = "script_shutdown")