From 4f68d3b317811968847af1197740304a57787027 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Thu, 18 Jun 2020 00:17:13 -0700 Subject: [PATCH] replace some old bit.ly links with actual links --- .../entity/EntityBreaksHangingScriptEvent.java | 2 +- .../events/entity/EntityHealsScriptEvent.java | 2 +- .../player/PlayerChangesGamemodeScriptEvent.java | 2 +- .../player/PlayerClicksInInventoryScriptEvent.java | 2 +- .../denizenscript/denizen/objects/LocationTag.java | 14 +++++++------- .../denizenscript/denizen/objects/PlayerTag.java | 2 +- .../objects/properties/item/ItemBaseColor.java | 4 ++-- .../objects/properties/item/ItemPatterns.java | 8 ++++---- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityBreaksHangingScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityBreaksHangingScriptEvent.java index 2ba84635f5..41dfa27437 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityBreaksHangingScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityBreaksHangingScriptEvent.java @@ -36,7 +36,7 @@ public class EntityBreaksHangingScriptEvent extends BukkitScriptEvent implements // @Triggers when a hanging entity (painting, item_frame, or leash_hitch) is broken. // // @Context - // returns the cause of the entity breaking. Causes list: <@link url http://bit.ly/1BeqxPX> + // returns the cause of the entity breaking. Causes list: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/hanging/HangingBreakEvent.RemoveCause.html> // returns the EntityTag that broke the hanging entity, if any. // returns the EntityTag of the hanging. // diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityHealsScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityHealsScriptEvent.java index 387b7a50c7..8cffcb662f 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityHealsScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityHealsScriptEvent.java @@ -31,7 +31,7 @@ public class EntityHealsScriptEvent extends BukkitScriptEvent implements Listene // @Context // returns the amount the entity healed. // returns the EntityTag that healed. - // returns the cause of the entity healing. Can be: <@link url http://bit.ly/2GTtxsf> + // returns the cause of the entity healing. Can be: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityRegainHealthEvent.RegainReason.html> // // @Determine // ElementTag(Decimal) to set the amount of health the entity receives. diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerChangesGamemodeScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerChangesGamemodeScriptEvent.java index dcc26eaae6..94d2174e94 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerChangesGamemodeScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerChangesGamemodeScriptEvent.java @@ -27,7 +27,7 @@ public class PlayerChangesGamemodeScriptEvent extends BukkitScriptEvent implemen // @Triggers when a player's gamemode is changed. // // @Context - // returns an ElementTag of the gamemode. Game Modes: <@link url http://bit.ly/1KHab43> + // returns an ElementTag of the gamemode. Game Modes: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/GameMode.html> // // @Player Always. // diff --git a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerClicksInInventoryScriptEvent.java b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerClicksInInventoryScriptEvent.java index c4423dadc7..690636ce92 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerClicksInInventoryScriptEvent.java +++ b/plugin/src/main/java/com/denizenscript/denizen/events/player/PlayerClicksInInventoryScriptEvent.java @@ -86,7 +86,7 @@ public class PlayerClicksInInventoryScriptEvent extends BukkitScriptEvent implem // returns the InventoryTag (the 'top' inventory, regardless of which slot was clicked). // returns the InventoryTag that was clicked in. // returns the item the Player is clicking with. - // returns an ElementTag with the name of the click type. Click type list: <@link url http://bit.ly/2IjY198> + // returns an ElementTag with the name of the click type. Click type list: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.html> // returns an ElementTag with the name of the slot type that was clicked. // returns an ElementTag with the number of the slot that was clicked. // returns an ElementTag with the raw number of the slot that was clicked. diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java b/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java index 7128d7fad9..c7d0f82472 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java @@ -1035,7 +1035,7 @@ public static void registerTags() { // @returns ElementTag // @description // Returns the base color of the banner at this location. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. // As of 1.13+, this tag is no longer relevant. // --> registerTag("base_color", (attribute, object) -> { @@ -1091,8 +1091,8 @@ public static void registerTags() { // @mechanism LocationTag.patterns // @description // Lists the patterns of the banner at this location in the form "COLOR/PATTERN|COLOR/PATTERN" etc. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. - // For the list of possible patterns, see <@link url http://bit.ly/1MqRn7T>. + // For the list of possible colors, see <@link url hhttps://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. + // For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html>. // --> registerTag("patterns", (attribute, object) -> { ListTag list = new ListTag(); @@ -3590,7 +3590,7 @@ else if (getBlock().getType() == Material.FLOWER_POT) { // @input Element // @description // Changes the base color of the banner at this location. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. // As of 1.13+, this mechanism is no longer relevant. // @tags // @@ -3610,8 +3610,8 @@ else if (getBlock().getType() == Material.FLOWER_POT) { // @input ListTag // @description // Changes the patterns of the banner at this location. Input must be in the form "COLOR/PATTERN|COLOR/PATTERN" etc. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. - // For the list of possible patterns, see <@link url http://bit.ly/1MqRn7T>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. + // For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html>. // @tags // // @@ -3656,7 +3656,7 @@ else if (getBlock().getType() == Material.FLOWER_POT) { // @input Element // @description // Generates a tree at this location if possible. - // For a list of valid tree types, see <@link url http://bit.ly/2o7m1je> + // For a list of valid tree types, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/TreeType.html> // @tags // // --> diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java b/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java index d446af46a5..efed878137 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java @@ -3419,7 +3419,7 @@ else if (split.length > 1) { // @description // Shows the player fake patterns on a banner. Input must be in the form: "LOCATION|COLOR/PATTERN|..." // As of Minecraft 1.13, the base color is unique material types, and so <@link command showfake> must be used for base color changes. - // For the list of possible patterns, see <@link url http://bit.ly/1MqRn7T>. + // For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html>. // --> if (mechanism.matches("banner_update")) { if (mechanism.getValue().asString().length() > 0) { diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemBaseColor.java b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemBaseColor.java index 0eee0f7ecd..17ba53c2f9 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemBaseColor.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemBaseColor.java @@ -94,7 +94,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) { // @mechanism ItemTag.base_color // @description // Gets the base color of a shield. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. // --> if (attribute.startsWith("base_color")) { DyeColor baseColor = getBaseColor(); @@ -130,7 +130,7 @@ public void adjust(Mechanism mechanism) { // @input Element // @description // Changes the base color of a shield. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. // @tags // // --> diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemPatterns.java b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemPatterns.java index 74ab08a4d2..4629a4caf2 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemPatterns.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemPatterns.java @@ -115,8 +115,8 @@ public ObjectTag getObjectAttribute(Attribute attribute) { // @mechanism ItemTag.patterns // @description // Lists a banner's patterns in the form "COLOR/PATTERN|COLOR/PATTERN" etc. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. - // For the list of possible patterns, see <@link url http://bit.ly/1MqRn7T>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. + // For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html>. // --> if (attribute.startsWith("patterns")) { return listPatterns().getObjectAttribute(attribute.fulfill(1)); @@ -149,8 +149,8 @@ public void adjust(Mechanism mechanism) { // @description // Changes the patterns of a banner. Input must be in the form // "COLOR/PATTERN|COLOR/PATTERN" etc. - // For the list of possible colors, see <@link url http://bit.ly/1dydq12>. - // For the list of possible patterns, see <@link url http://bit.ly/1MqRn7T>. + // For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>. + // For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html>. // @tags // //