Skip to content

Commit

Permalink
add statistic ref links
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 16, 2019
1 parent 3d6b6fb commit 90a6b98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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.
// <context.statistic> returns the statistic that incremented. Statistic names: <@link url https://hub.spigotmc.org/javadocs/bukkit/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 (dEntity/dMaterial) if any.
Expand Down
Expand Up @@ -2027,6 +2027,7 @@ else if (foodLevel / maxHunger < 1) {
// @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>
// -->
if (attribute.startsWith("statistic")) {
Statistic statistic = Statistic.valueOf(attribute.getContext(1).toUpperCase());
Expand All @@ -2040,6 +2041,7 @@ else if (foodLevel / maxHunger < 1) {
// @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>
// -->
if (attribute.getAttribute(2).startsWith("qualifier")) {
ObjectTag obj = ObjectFetcher.pickObjectFor(attribute.getContext(2), attribute.context);
Expand Down
Expand Up @@ -27,8 +27,8 @@ public class StatisticCommand extends AbstractCommand {
//
// @Description
// Changes the specified statistic for the player.
// For more info on statistics, see https://minecraft.gamepedia.com/Statistics
// For statistic names, see https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Statistic.html
// 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>
//
// @Tags
// <PlayerTag.statistic[<statistic>]>
Expand Down

0 comments on commit 90a6b98

Please sign in to comment.