Skip to content

Commit

Permalink
Update some of the meta
Browse files Browse the repository at this point in the history
- Fix a typo with a location tag
- Document the "none" determination for the "on player joins./quits" event meta
- Document the "unlimit_stack_size" argument for the give command meta
  • Loading branch information
MusicScore committed Oct 25, 2018
1 parent 06ad6ad commit a1dbd55
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Expand Up @@ -30,6 +30,7 @@ public class PlayerJoinsScriptEvent extends BukkitScriptEvent implements Listene
//
// @Determine
// Element to change the join message.
// "NONE" to cancel the join message.
//
// -->

Expand Down
Expand Up @@ -30,6 +30,7 @@ public class PlayerQuitsScriptEvent extends BukkitScriptEvent implements Listene
//
// @Determine
// Element to change the quit message.
// "NONE" to cancel the quit message.
//
// -->

Expand Down
Expand Up @@ -1089,7 +1089,7 @@ else if (getBlock().getType() == Material.FLOWER_POT) {
int attributePos = 1;

// <--[tag]
// @attribute <location.facing[<entity>/<location>].degrees[X]>
// @attribute <l@location.facing[<entity>/<location>].degrees[<#>]>
// @returns Element(Boolean)
// @description
// Returns whether the location's yaw is facing another
Expand Down
Expand Up @@ -1724,7 +1724,7 @@ public void registerCoreMembers() {

// <--[command]
// @Name Give
// @Syntax give [money/xp/<item>|...] (quantity:<#>) (engrave) (to:<inventory>) (slot:<#>)
// @Syntax give [money/xp/<item>|...] (quantity:<#>) (engrave) (unlimit_stack_size) (to:<inventory>) (slot:<#>)
// @Required 1
// @Stable stable
// @Short Gives the player an item, xp, or money.
Expand All @@ -1737,6 +1737,9 @@ public void registerCoreMembers() {
// Specifying a slot will give the player the item to that slot.
// If an item is already in that slot, the item will not be given
// unless they are exactly the same items, then it will stack.
// Specifying "unlimit_stack_size" will allow an item to stack up to 64. This is useful for stacking items
// with a max stack size that is less than 64 (for example, most weapon and armor items have a stack size
// of 1).
// If an economy is registered, specifying money instead of a item will give money to the player's economy.
// TODO: Document Command Details
//
Expand All @@ -1760,7 +1763,7 @@ public void registerCoreMembers() {
// - give WATCH slot:5
// -->
registerCoreMember(GiveCommand.class,
"GIVE", "give [money/xp/<item>|...] (qty:<#>) (engrave) (to:<inventory>) (slot:<#>)", 1);
"GIVE", "give [money/xp/<item>|...] (qty:<#>) (engrave) (unlimit_stack_size) (to:<inventory>) (slot:<#>)", 1);


// <--[command]
Expand Down

0 comments on commit a1dbd55

Please sign in to comment.