Skip to content

Commit

Permalink
remove some redundant meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 24, 2020
1 parent 9d40213 commit 78a25d3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 36 deletions.
Expand Up @@ -657,8 +657,6 @@ public void adjust(Mechanism mechanism) {
// The underlying method for this was disabled in recent Spigot versions with a vile message from user-hating Spigot dev md_5,
// "Not supported in this Minecraft version! Unless you can fix it, this is not a bug :)"
// Unfortunately due to md_5's attitude on this problem, this mechanism will not work for the time being.
// @tags
// None
// -->
if (mechanism.matches("regenerate")) {
getWorld().regenerateChunk(getX(), getZ());
Expand All @@ -670,8 +668,6 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Refreshes the chunk, sending any changed properties to players.
// @tags
// None
// -->
if (mechanism.matches("refresh_chunk")) {
final int chunkX = getX();
Expand All @@ -685,8 +681,6 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Refreshes all 16x16x16 chunk sections within the chunk.
// @tags
// None
// -->
if (mechanism.matches("refresh_chunk_sections")) {
NMSHandler.getChunkHelper().refreshChunkSections(getChunk());
Expand Down
Expand Up @@ -3000,8 +3000,6 @@ && getBukkitEntity() instanceof Sheep) {
// @input LocationTag
// @description
// Makes a player-type entity interact with a block.
// @tags
// None
// -->
if (mechanism.matches("interact_with") && mechanism.requireObject(LocationTag.class)) {
LocationTag interactLocation = mechanism.valueAsType(LocationTag.class);
Expand All @@ -3014,8 +3012,6 @@ && getBukkitEntity() instanceof Sheep) {
// @input None
// @description
// Animates the entity dying.
// @tags
// None
// -->
if (mechanism.matches("play_death")) {
getLivingEntity().playEffect(EntityEffect.DEATH);
Expand Down
Expand Up @@ -1342,8 +1342,6 @@ public void adjust(Mechanism mechanism) {
// @input ItemTag
// @description
// Sets the item type of the item.
// @tags
// None
// -->
if (mechanism.matches("item_type") && mechanism.requireObject(ItemTag.class)) {
ItemTag item = mechanism.valueAsType(ItemTag.class);
Expand Down
Expand Up @@ -2710,8 +2710,6 @@ public void adjust(Mechanism mechanism) {
// @input ElementTag
// @description
// Sets the current resource pack by specifying a valid URL to a resource pack.
// @tags
// None
// -->
if (mechanism.matches("resource_pack") || mechanism.matches("texture_pack")) {
getPlayerEntity().setResourcePack(mechanism.getValue().asString());
Expand All @@ -2736,8 +2734,6 @@ public void adjust(Mechanism mechanism) {
// @input ElementTag(Number)
// @description
// Forces a player to receive the entirety of the specified map ID instantly.
// @tags
// None
// -->
if (mechanism.matches("send_map") && mechanism.requireInteger()) {
MapView map = Bukkit.getServer().getMap((short) mechanism.getValue().asInt());
Expand Down Expand Up @@ -2847,8 +2843,6 @@ public void adjust(Mechanism mechanism) {
// @input ElementTag
// @description
// Kicks the player, with the specified message.
// @tags
// None
// -->
if (mechanism.matches("kick")) {
getPlayerEntity().kickPlayer(mechanism.getValue().asString());
Expand Down Expand Up @@ -2916,8 +2910,6 @@ public void adjust(Mechanism mechanism) {
// @input LocationTag
// @description
// Shows the player a workbench GUI corresponding to a given location.
// @tags
// None
// -->
if (mechanism.matches("show_workbench") && mechanism.requireObject(LocationTag.class)) {
getPlayerEntity().openWorkbench(mechanism.valueAsType(LocationTag.class), true);
Expand Down
Expand Up @@ -869,8 +869,6 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Saves the world to file.
// @tags
// None
// -->
if (mechanism.matches("save")) {
getWorld().save();
Expand All @@ -883,8 +881,6 @@ public void adjust(Mechanism mechanism) {
// @description
// Unloads the world from the server without saving chunks, then destroys all data that is part of the world.
// Require config setting 'Commands.Delete.Allow file deletion'.
// @tags
// None
// -->
if (mechanism.matches("destroy")) {
if (!Settings.allowDelete()) {
Expand All @@ -908,8 +904,6 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Unloads the world from the server without saving chunks.
// @tags
// None
// -->
if (mechanism.matches("force_unload")) {
Bukkit.getServer().unloadWorld(getWorld(), false);
Expand Down Expand Up @@ -1066,8 +1060,6 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Unloads the world from the server and saves chunks.
// @tags
// None
// -->
if (mechanism.matches("unload")) {
Bukkit.getServer().unloadWorld(getWorld(), true);
Expand Down
Expand Up @@ -2174,8 +2174,6 @@ public static void adjustServer(Mechanism mechanism) {
// Immediately stops the server entirely (Plugins will still finalize, and the shutdown event will fire), then starts it again.
// Requires setting "Commands.Restart.Allow server restart"!
// Note that if your server is not configured to restart, this mechanism will simply stop the server without starting it again!
// @tags
// None
// -->
if (mechanism.matches("restart")) {
if (!Settings.allowServerRestart()) {
Expand All @@ -2192,8 +2190,6 @@ public static void adjustServer(Mechanism mechanism) {
// @input None
// @description
// Immediately saves the Denizen saves files.
// @tags
// None
// -->
if (mechanism.matches("save")) {
DenizenAPI.getCurrentInstance().saveSaves();
Expand All @@ -2205,8 +2201,6 @@ public static void adjustServer(Mechanism mechanism) {
// @input None
// @description
// Immediately saves the Citizens saves files.
// @tags
// None
// -->
if (Depends.citizens != null && mechanism.matches("save_citizens")) {
Depends.citizens.storeNPCs(new CommandContext(new String[0]));
Expand All @@ -2220,8 +2214,6 @@ public static void adjustServer(Mechanism mechanism) {
// Immediately stops the server entirely (Plugins will still finalize, and the shutdown event will fire).
// The server will remain shutdown until externally started again.
// Requires setting "Commands.Restart.Allow server stop"!
// @tags
// None
// -->
if (mechanism.matches("shutdown")) {
if (!Settings.allowServerStop()) {
Expand Down

0 comments on commit 78a25d3

Please sign in to comment.