Skip to content

Commit

Permalink
fix the javadoc links that spigot just broke
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 26, 2020
1 parent 45cf0c3 commit b35aff6
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class EntitySpawnScriptEvent extends BukkitScriptEvent implements Listene
// <context.entity> returns the EntityTag that spawned.
// <context.location> returns the location the entity will spawn at.
// <context.reason> returns the reason the entity spawned.
// Reasons: <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html>
// Reasons: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html>
//
// -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class EntityTransformScriptEvent extends BukkitScriptEvent implements Lis
// @Context
// <context.entity> returns the old entity that was transformed from.
// <context.new_entities> returns a list of new entities that were transformed into.
// <context.cause> returns the reason for transformation, from <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/EntityTransformEvent.TransformReason.html>.
// <context.cause> returns the reason for transformation, from <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityTransformEvent.TransformReason.html>.
//
// -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class PlayerFishesScriptEvent extends BukkitScriptEvent implements Listen
//
// @Context
// <context.hook> returns an EntityTag of the hook.
// <context.state> returns an ElementTag of the fishing state. Valid states: <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerFishEvent.State.html>
// <context.state> returns an ElementTag of the fishing state. Valid states: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerFishEvent.State.html>
// <context.entity> returns an EntityTag of the entity that got caught.
// <context.item> returns an ItemTag of the item gotten, if any.
// <context.xp> returns the amount of experience that will drop.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class PlayerStatisticIncrementsScriptEvent extends BukkitScriptEvent impl
// @Triggers when a player's statistics increment.
//
// @Context
// <context.statistic> returns the statistic that incremented. Statistic names: <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Statistic.html>
// <context.statistic> returns the statistic that incremented. Statistic names: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html>
// <context.previous_value> returns the old value of the statistic.
// <context.new_value> returns the new value of the statistic.
// <context.qualifier> returns the qualifier (EntityTag/MaterialTag) if any.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ColorTag implements ObjectTag {
// For example, 'co@50,64,128' or 'co@red'.
//
// A list of accepted color names can be found at
// <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Color.html>
// <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html>
//
// Red/green/blue values are each from 0 to 255.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,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 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// As of 1.13+, this tag is no longer relevant.
// -->
registerTag("base_color", (attribute, object) -> {
Expand Down Expand Up @@ -1114,8 +1114,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 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>.
// For the list of possible colors, see <@link url hhttps://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.html>.
// -->
registerTag("patterns", (attribute, object) -> {
ListTag list = new ListTag();
Expand Down Expand Up @@ -3613,7 +3613,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 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// As of 1.13+, this mechanism is no longer relevant.
// @tags
// <LocationTag.base_color>
Expand All @@ -3633,8 +3633,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 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>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.html>.
// @tags
// <LocationTag.patterns>
// <server.pattern_types>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ else if (Depends.permissions != null) {
// @returns ElementTag(Number)
// @description
// Returns the player's current value for the specified statistic.
// Valid statistics: <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Statistic.html>
// Valid statistics: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html>
// Works with offline players.
// -->
registerTag("statistic", (attribute, object) -> {
Expand All @@ -1482,7 +1482,7 @@ else if (Depends.permissions != null) {
// @description
// Returns the player's current value for the specified statistic, with the
// specified qualifier, which can be either an entity or material.
// Valid statistics: <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Statistic.html>
// Valid statistics: <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html>
// To check a statistic type dynamically, refer to <@link tag server.statistic_type>.
// -->
if (attribute.startsWith("qualifier", 2)) {
Expand Down Expand Up @@ -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 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/banner/PatternType.html>.
// For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.html>.
// -->
if (mechanism.matches("banner_update")) {
if (mechanism.getValue().asString().length() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,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 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// -->
if (attribute.startsWith("base_color")) {
DyeColor baseColor = getBaseColor();
Expand Down Expand Up @@ -135,7 +135,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 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/DyeColor.html>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// @tags
// <ItemTag.base_color>
// -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 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>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.html>.
// -->
if (attribute.startsWith("patterns")) {
return listPatterns().getObjectAttribute(attribute.fulfill(1));
Expand Down Expand Up @@ -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 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>.
// For the list of possible colors, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.html>.
// For the list of possible patterns, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.html>.
// @tags
// <ItemTag.patterns>
// <server.pattern_types>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public StatisticCommand() {
// @Description
// Changes the specified statistic for the player.
// For more info on statistics, see <@link url https://minecraft.gamepedia.com/Statistics>
// For statistic names, see <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Statistic.html>
// For statistic names, see <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html>
//
// You can add, take, or set a numeric value to the statistic for the linked player.
// Works with offline players.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public PlaySoundCommand() {
//
// Sounds are by default played under their normal sound type (eg zombie sounds are under the type Mobs/Animals).
// You can optionally instead specify an alternate sound category to use.
// For a list of all valid sound categories, check <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/SoundCategory.html>
// For a list of all valid sound categories, check <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/SoundCategory.html>
//
// Specifying a player or list of players will only play the sound for each player, from their own location (but will not follow them if they move).
// If a location is specified, it will play the sound for any players that are near the location specified.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ else if (recipe instanceof CookingRecipe<?>) {
// @description
// Returns a list of all statistic types known to the server.
// Generally used with <@link tag PlayerTag.statistic>.
// This is only their Bukkit enum names, as seen at <@link url https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Statistic.html>.
// This is only their Bukkit enum names, as seen at <@link url https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html>.
// Optionally, specify a type to limit to statistics of a given type. Valid types: UNTYPED, ITEM, ENTITY, or BLOCK.
// Refer also to <@link tag server.statistic_type>.
// -->
Expand Down

0 comments on commit b35aff6

Please sign in to comment.