Skip to content

Commit

Permalink
determination meta format change
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 22, 2023
1 parent 3a74f61 commit 40bd3de
Show file tree
Hide file tree
Showing 27 changed files with 50 additions and 50 deletions.
Expand Up @@ -35,8 +35,8 @@ public class AnvilBlockDamagedScriptEvent extends BukkitScriptEvent implements L
// <context.inventory> returns the InventoryTag of the anvil's inventory.
//
// @Determine
// "STATE:" + ElementTag to set the anvil's new damage state.
// "BREAK:" + ElementTag(Boolean) to set weather the anvil will break.
// "STATE:<ElementTag>" to set the anvil's new damage state.
// "BREAK:<ElementTag(Boolean)>" to set weather the anvil will break.
// -->

public AnvilBlockDamagedScriptEvent() {
Expand Down
Expand Up @@ -35,7 +35,7 @@ public class EntityTeleportedByPortalScriptEvent extends BukkitScriptEvent imple
// <context.portal_type> returns an ElementTag of the portal's type. Will be one of <@link url https://jd.papermc.io/paper/1.19/org/bukkit/PortalType.html>.
//
// @Determine
// "TARGET_WORLD:" + WorldTag to set the world the entity will be teleported to.
// "TARGET_WORLD:<WorldTag>" to set the world the entity will be teleported to.
// "REMOVE_TARGET_WORLD" to remove the target world. Should usually cancel the event instead of using this.
//
// -->
Expand Down
Expand Up @@ -40,7 +40,7 @@ public class PlayerElytraBoostScriptEvent extends BukkitScriptEvent implements L
// @Player Always.
//
// @Determine
// "KEEP:" + ElementTag(Boolean) to set whether the firework item should be kept.
// "KEEP:<ElementTag(Boolean)>" to set whether the firework item should be kept.
//
// -->

Expand Down
Expand Up @@ -32,7 +32,7 @@ public class PlayerPreparesGrindstoneCraftScriptEvent extends BukkitScriptEvent
// <context.result> returns the ItemTag to be crafted.
//
// @Determine
// "RESULT:" + ItemTag to change the item that is crafted.
// "RESULT:<ItemTag>" to change the item that is crafted.
//
// @Player Always.
//
Expand Down
Expand Up @@ -38,7 +38,7 @@ public class WardenChangesAngerLevelScriptEvent extends BukkitScriptEvent implem
// <context.target> returns the EntityTag who triggered the change (if any). (In practice, always present).
//
// @Determine
// "ANGER:" + ElementTag(Number) to set the value of the anger level. Value must be between 0 and 150.
// "ANGER:<ElementTag(Number)>" to set the value of the anger level. Value must be between 0 and 150.
//
// @Example
// on warden changes anger level:
Expand Down
Expand Up @@ -43,7 +43,7 @@ public class WorldGameRuleChangeScriptEvent extends BukkitScriptEvent implements
// <context.command_minecart> returns the EntityTag of the command minecart (if the command was run from one).
//
// @Determine
// "VALUE:" + ElementTag(Number) or ElementTag(Boolean) to set the value of the GameRule.
// "VALUE:<ElementTag(Number)>" or ElementTag(Boolean) to set the value of the GameRule.
//
// @Player when the sender of the command is a player.
//
Expand Down
Expand Up @@ -30,7 +30,7 @@ public class BrewingStandFueledScriptEvent extends BukkitScriptEvent implements
// <context.consuming> returns a boolean indicating whether the fuel item will be consumed.
//
// @Determine
// "FUEL_POWER:" + ElementTag(Number) to set the fuel power level to be added.
// "FUEL_POWER:<ElementTag(Number)>" to set the fuel power level to be added.
// "CONSUMING" to indicate that the fuel item should be consumed.
// "NOT_CONSUMING" to indicate that the fuel item should not be consumed.
//
Expand Down
Expand Up @@ -37,7 +37,7 @@ public class EntityPicksUpItemScriptEvent extends BukkitScriptEvent implements L
// <context.location> returns a LocationTag of the item's location.
//
// @Determine
// "ITEM:" + ItemTag to changed the item being picked up.
// "ITEM:<ItemTag>" to changed the item being picked up.
//
// @Player when the entity picking up the item is a player.
//
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class EntityPotionEffectScriptEvent extends BukkitScriptEvent implements
// <context.effect_type> returns the name of the modified potion effect type.
//
// @Determine
// "OVERRIDE:" + ElementTag(Boolean) to set whether the new potion effect should override.
// "OVERRIDE:<ElementTag(Boolean)>" to set whether the new potion effect should override.
//
// @Player when the entity that has changed is a player.
//
Expand Down
Expand Up @@ -52,8 +52,8 @@ public class EntityTeleportScriptEvent extends BukkitScriptEvent implements List
// <context.cause> returns an ElementTag of the teleport cause - see <@link language teleport cause> for causes.
//
// @Determine
// "ORIGIN:" + LocationTag to change the location the entity teleported from.
// "DESTINATION:" + LocationTag to change the location the entity teleports to.
// "ORIGIN:<LocationTag>" to change the location the entity teleported from.
// "DESTINATION:<LocationTag>" to change the location the entity teleports to.
//
// @Player when the entity being teleported is a player.
//
Expand Down
Expand Up @@ -31,8 +31,8 @@ public class ExperienceBottleBreaksScriptEvent extends BukkitScriptEvent impleme
// <context.show_effect> returns whether the effect should be shown.
//
// @Determine
// "EXPERIENCE:" + ElementTag(Number) to specify the amount of experience to be created.
// "EFFECT:" + ElementTag(Boolean) to specify if the particle effects will be shown.
// "EXPERIENCE:<ElementTag(Number)>" to specify the amount of experience to be created.
// "EFFECT:<ElementTag(Boolean)>" to specify if the particle effects will be shown.
//
// -->

Expand Down
Expand Up @@ -44,8 +44,8 @@ public class ItemEnchantedScriptEvent extends BukkitScriptEvent implements Liste
//
// @Determine
// ElementTag(Number) to set the experience level cost of the enchantment.
// "RESULT:" + ItemTag to change the item result (only affects metadata (like enchantments), not material/quantity/etc!).
// "ENCHANTS:" + MapTag to change the resultant enchantments.
// "RESULT:<ItemTag>" to change the item result (only affects metadata (like enchantments), not material/quantity/etc!).
// "ENCHANTS:<MapTag>" to change the resultant enchantments.
//
// @Player when the enchanter is a player.
//
Expand Down
Expand Up @@ -51,9 +51,9 @@ public class ChatScriptEvent extends BukkitScriptEvent implements Listener {
//
// @Determine
// ElementTag to change the message.
// "FORMAT:" + ScriptTag to set the format script the message should use.
// "RAW_FORMAT:" + ElementTag to set the format directly (without a format script). (Use with caution, avoid if possible).
// "RECIPIENTS:" + ListTag(PlayerTag) to set the list of players that will receive the message.
// "FORMAT:<ScriptTag>" to set the format script the message should use.
// "RAW_FORMAT:<ElementTag>" to set the format directly (without a format script). (Use with caution, avoid if possible).
// "RECIPIENTS:<ListTag(PlayerTag)>" to set the list of players that will receive the message.
//
// @Player Always.
//
Expand Down
Expand Up @@ -42,8 +42,8 @@ public class PlayerFishesScriptEvent extends BukkitScriptEvent implements Listen
// <context.xp> returns the amount of experience that will drop.
//
// @Determine
// "CAUGHT:" + ItemTag to change the item that was caught (only if an item was already being caught).
// "XP:" + ElementTag(Number) to change how much experience will drop.
// "CAUGHT:<ItemTag>" to change the item that was caught (only if an item was already being caught).
// "XP:<ElementTag(Number)>" to change how much experience will drop.
//
// @Player If the fisher or the caught entity is a player (in most cases, the fisher can be assumed to be a real player).
// @NPC If the fisher or the caught entity is an NPC.
Expand Down
Expand Up @@ -32,9 +32,9 @@ public class PlayerKickedScriptEvent extends BukkitScriptEvent implements Listen
// <context.flying> returns whether the player is being automatically kicked for flying.
//
// @Determine
// "MESSAGE:" + ElementTag to change the kick message.
// "REASON:" + ElementTag to change the kick reason.
// "FLY_COOLDOWN:" + DurationTag to cancel the automatic fly kick and set its next cooldown.
// "MESSAGE:<ElementTag>" to change the kick message.
// "REASON:<ElementTag>" to change the kick reason.
// "FLY_COOLDOWN:<DurationTag>" to cancel the automatic fly kick and set its next cooldown.
//
// @Player Always.
//
Expand Down
Expand Up @@ -32,7 +32,7 @@ public class PlayerLoginScriptEvent extends BukkitScriptEvent implements Listene
//
// @Determine
// "KICKED" to kick the player from the server.
// "KICKED:" + ElementTag to kick the player and specify a message to show.
// "KICKED:<ElementTag>" to kick the player and specify a message to show.
//
// @Player Always.
//
Expand Down
Expand Up @@ -46,7 +46,7 @@ public class PlayerPreLoginScriptEvent extends BukkitScriptEvent implements List
// @Determine
// QueueTag to cause the event to wait until the queue is complete.
// "KICKED" to kick the player from the server.
// "KICKED " + ElementTag to kick the player and specify a message to show.
// "KICKED <ElementTag>" to kick the player and specify a message to show.
//
// @Player When the player has previously joined (and thus the UUID is valid).
//
Expand Down
Expand Up @@ -35,7 +35,7 @@ public class PlayerPreparesEnchantScriptEvent extends BukkitScriptEvent implemen
// <context.offers> returns a ListTag of the available enchanting offers, each as a MapTag with keys 'cost', 'enchantment_type', and 'level'.
//
// @Determine
// "OFFERS:" + ListTag of MapTags to set the offers available. Cannot be a different size list than the size of context.offers.
// "OFFERS:<ListTag>" of MapTags to set the offers available. Cannot be a different size list than the size of context.offers.
//
// @Player Always.
//
Expand Down
Expand Up @@ -21,8 +21,8 @@ public class PlayerReceivesActionbarScriptEvent extends PlayerReceivesMessageScr
// <context.raw_json> returns an ElementTag of the raw JSON used for the actionbar.
//
// @Determine
// "MESSAGE:" + ElementTag to change the actionbar.
// "RAW_JSON:" + ElementTag to change the JSON used for the actionbar.
// "MESSAGE:<ElementTag>" to change the actionbar.
// "RAW_JSON:<ElementTag>" to change the JSON used for the actionbar.
//
// @Player Always.
//
Expand Down
Expand Up @@ -35,8 +35,8 @@ public class PlayerReceivesMessageScriptEvent extends BukkitScriptEvent {
// <context.system_message> returns true if the message is a system message (not player chat).
//
// @Determine
// "MESSAGE:" + ElementTag to change the message.
// "RAW_JSON:" + ElementTag to change the JSON used for the message.
// "MESSAGE:<ElementTag>" to change the message.
// "RAW_JSON:<ElementTag>" to change the JSON used for the message.
//
// @Player Always.
//
Expand Down
Expand Up @@ -39,12 +39,12 @@ public class PlayerReceivesTablistUpdateScriptEvent extends BukkitScriptEvent {
// <context.listed> returns true if the entry should be listed in the tab list, or false if not.
//
// @Determine
// "LATENCY:" + ElementTag(Number) to change the latency.
// "NAME:" + ElementTag to change the name.
// "DISPLAY:" + ElementTag to change the display name. 'name', 'display' and 'cancelled' determinations require 'Allow restricted actions' in Denizen/config.yml
// "GAMEMODE:" + ElementTag to change the gamemode.
// "SKIN_BLOB:" + ElementTag to change the skin blob.
// "LISTED:" + ElementTag(Boolean) to change whether the entry is listed.
// "LATENCY:<ElementTag(Number)>" to change the latency.
// "NAME:<ElementTag>" to change the name.
// "DISPLAY:<ElementTag>" to change the display name. 'name', 'display' and 'cancelled' determinations require 'Allow restricted actions' in Denizen/config.yml
// "GAMEMODE:<ElementTag>" to change the gamemode.
// "SKIN_BLOB:<ElementTag>" to change the skin blob.
// "LISTED:<ElementTag(Boolean)>" to change whether the entry is listed.
//
// @Player Always.
//
Expand Down
Expand Up @@ -34,8 +34,8 @@ public class PlayerSwapsItemsScriptEvent extends BukkitScriptEvent implements Li
// <context.offhand> returns the ItemTag switched to the off hand.
//
// @Determine
// "MAIN:" + ItemTag to set the item in the main hand.
// "OFFHAND:" + ItemTag to set the item in the off hand.
// "MAIN:<ItemTag>" to set the item in the main hand.
// "OFFHAND:<ItemTag>" to set the item in the off hand.
//
// @Player Always.
//
Expand Down
Expand Up @@ -38,9 +38,9 @@ public class PlayerUsesPortalScriptEvent extends BukkitScriptEvent implements Li
//
// @Determine
// LocationTag to change the destination.
// "CAN_CREATE:" + ElementTag(Boolean) to set whether the server will attempt to create a destination portal.
// "CREATION_RADIUS:" + ElementTag(Number) to set the radius that will be checked for a free space to create the portal in.
// "SEARCH_RADIUS:" + ElementTag(Number) to set the radius that will be checked for an existing portal to teleport to.
// "CAN_CREATE:<ElementTag(Boolean)>" to set whether the server will attempt to create a destination portal.
// "CREATION_RADIUS:<ElementTag(Number)>" to set the radius that will be checked for a free space to create the portal in.
// "SEARCH_RADIUS:<ElementTag(Number)>" to set the radius that will be checked for an existing portal to teleport to.
//
// @Player Always.
//
Expand Down
Expand Up @@ -41,11 +41,11 @@ public class ListPingScriptEvent extends BukkitScriptEvent implements Listener {
//
// @Determine
// ElementTag(Number) to change the max player amount that will show.
// "ICON:" + ElementTag of a file path to an icon image, to change the icon that will display.
// "PROTOCOL_VERSION:" + ElementTag(Number) to change the protocol ID number of the server's version (only on Paper).
// "VERSION_NAME:" + ElementTag to change the server's version name (only on Paper).
// "EXCLUDE_PLAYERS:" + ListTag(PlayerTag) to exclude a set of players from showing in the player count or preview of online players (only on Paper).
// "ALTERNATE_PLAYER_TEXT:" + ListTag to set custom text for the player list section of the server status (only on Paper). (Requires "Allow restricted actions" in Denizen/config.yml). Usage of this to present lines that look like player names (but aren't) is forbidden.
// "ICON:<ElementTag>" of a file path to an icon image, to change the icon that will display.
// "PROTOCOL_VERSION:<ElementTag(Number)>" to change the protocol ID number of the server's version (only on Paper).
// "VERSION_NAME:<ElementTag>" to change the server's version name (only on Paper).
// "EXCLUDE_PLAYERS:<ListTag(PlayerTag)>" to exclude a set of players from showing in the player count or preview of online players (only on Paper).
// "ALTERNATE_PLAYER_TEXT:<ListTag>" to set custom text for the player list section of the server status (only on Paper). (Requires "Allow restricted actions" in Denizen/config.yml). Usage of this to present lines that look like player names (but aren't) is forbidden.
// ElementTag to change the MOTD that will show.
//
// -->
Expand Down
Expand Up @@ -36,7 +36,7 @@ public class VehicleCollidesEntityScriptEvent extends BukkitScriptEvent implemen
// <context.pickup> returns whether the vehicle can pick up the entity.
//
// @Determine
// "PICKUP:" + ElementTag(Boolean) to set whether the vehicle is allowed to pick up the entity or not.
// "PICKUP:<ElementTag(Boolean)>" to set whether the vehicle is allowed to pick up the entity or not.
//
// @Player when a vehicle collides with a player.
//
Expand Down
Expand Up @@ -40,7 +40,7 @@ public class LootGenerateScriptEvent extends BukkitScriptEvent implements Listen
// <context.loot_table_id> returns an element indicating the minecraft key for the loot-table that was generated.
//
// @Determine
// "LOOT:" + ListTag(ItemTag) to change the list of items that will generate as loot.
// "LOOT:<ListTag(ItemTag)>" to change the list of items that will generate as loot.
//
// @Player when the linked entity is a player.
//
Expand Down
Expand Up @@ -43,7 +43,7 @@ public class PotionSplashScriptEvent extends BukkitScriptEvent implements Listen
// <context.intensity> returns an ListTag(MapTag) of the intensity for all affected entities.
//
// @Determine
// INTENSITY:" + ListTag(MapTag) to set the intensity of specified entities.
// INTENSITY:<ListTag(MapTag)>" to set the intensity of specified entities.
//
// @Example
// # This example sets the intensity of the first affected entity to 0.6.
Expand Down

0 comments on commit 40bd3de

Please sign in to comment.