Skip to content

Commit

Permalink
meta and other minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 16, 2020
1 parent 2fbfb1d commit 4f56481
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
Expand Up @@ -652,6 +652,9 @@ public void adjust(Mechanism mechanism) {
// @input None
// @description
// Causes the chunk to be entirely deleted and reformed from the world's seed.
// The underlying method for this was disabled in recent Spigot versions with a vile message from user-hating Spigot dev md_5,
// "Not supported in this Minecraft version! Unless you can fix it, this is not a bug :)"
// Unfortunately due to md_5's attitude on this problem, this mechanism will not work for the time being.
// @tags
// None
// -->
Expand Down
Expand Up @@ -1592,6 +1592,7 @@ public static void registerTags() {
// @returns ElementTag(Boolean)
// @description
// Returns whether the inventory contains all of the specified items.
// Note that this is usually a poor option, and a more specific option like <@link tag inventorytag.contains.material> is usually better.
// -->
registerTag("contains", (attribute, object) -> {
// <--[tag]
Expand Down Expand Up @@ -2118,6 +2119,7 @@ else if (item != null && item.hasItemMeta() && item.getItemMeta().hasDisplayName
// @description
// Returns the combined quantity of itemstacks that match an item if one is specified,
// or the combined quantity of all itemstacks if one is not.
// Note that this is usually a poor option, and a more specific option like <@link tag inventorytag.quantity.material> is usually better.
// -->
registerTag("quantity", (attribute, object) -> {
// <--[tag]
Expand Down
Expand Up @@ -37,7 +37,7 @@ public class InteractScriptContainer extends ScriptContainer {
// Any triggers used must be enabled in <@link action assignment> by <@link command trigger>.
//
// Note that script commands ran in interact scripts by default have a delay between each command.
// To override this delay, put a '^' in front of each command name, or set 'speed: 0' on the container.
// To override this delay, set 'speed: 0' on the container or change the relevant config setting.
//
// <code>
// Interact_Script_Name:
Expand Down
Expand Up @@ -49,6 +49,7 @@ public class DamageTrigger extends AbstractTrigger implements Listener {
// None
//
// -->

// Technically defined in TriggerTrait, but placing here instead.
// <--[action]
// @Actions
Expand All @@ -63,6 +64,7 @@ public class DamageTrigger extends AbstractTrigger implements Listener {
// "cancelled" to cancel the damage event.
//
// -->

// <--[action]
// @Actions
// damaged
Expand Down
Expand Up @@ -243,15 +243,15 @@ public void debug(CommandContext args, CommandSender sender) throws CommandExcep
Debug.toggle();
}
Debug.showSources = !Debug.showSources;
Messaging.sendInfo(sender, (NMSHandler.debugPackets ? "Denizen debugger is now showing source information."
Messaging.sendInfo(sender, (Debug.showSources ? "Denizen debugger is now showing source information."
: "Denizen debugger is no longer showing source information."));
}
if (args.hasFlag('p')) {
if (!Debug.showDebug) {
Debug.toggle();
}
NMSHandler.debugPackets = !NMSHandler.debugPackets;
Messaging.sendInfo(sender, (Debug.showSources ? "Denizen debugger is now showing packet logs."
Messaging.sendInfo(sender, (NMSHandler.debugPackets ? "Denizen debugger is now showing packet logs."
: "Denizen debugger is no longer showing packet logs."));
}
if (args.hasFlag('l')) {
Expand Down

0 comments on commit 4f56481

Please sign in to comment.