diff --git a/plugin/src/main/java/com/denizenscript/denizen/npc/DenizenNPCHelper.java b/plugin/src/main/java/com/denizenscript/denizen/npc/DenizenNPCHelper.java index facdc134c2..20cba96e31 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/npc/DenizenNPCHelper.java +++ b/plugin/src/main/java/com/denizenscript/denizen/npc/DenizenNPCHelper.java @@ -70,7 +70,7 @@ public static NPCTag getDenizen(int id) { } /** - * Returns a InventoryTag object from the Inventory trait of a valid NPC. + * Returns the InventoryTag object from the Inventory trait of a valid NPC. * * @param npc the Citizens NPC * @return the NPC's InventoryTag diff --git a/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java b/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java index bae401751a..bac42506fd 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java +++ b/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java @@ -1621,7 +1621,7 @@ else if (obj instanceof EntityTag) { // @attribute // @returns InventoryTag // @description - // Returns a InventoryTag of the player's current inventory. + // Returns the InventoryTag of the player's inventory. // Works with offline players. // --> registerTag("inventory", (attribute, object) -> { @@ -1632,7 +1632,7 @@ else if (obj instanceof EntityTag) { // @attribute // @returns InventoryTag // @description - // Gets the player's enderchest inventory. + // Returns the InventoryTag of the player's enderchest inventory. // Works with offline players. // --> registerTag("enderchest", (attribute, object) -> { @@ -1647,8 +1647,8 @@ else if (obj instanceof EntityTag) { // @attribute // @returns InventoryTag // @description - // Gets the inventory the player currently has open. If the player has no open - // inventory, this returns the player's inventory. + // Returns the InventoryTag for the inventory the player has open. + // If the player has no open inventory, this returns the player's inventory. // --> registerOnlineOnlyTag("open_inventory", (attribute, object) -> { return InventoryTag.mirrorBukkitInventory(object.getPlayerEntity().getOpenInventory().getTopInventory()); diff --git a/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/item/InventoryCommand.java b/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/item/InventoryCommand.java index 18515b09a1..309d69ee76 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/item/InventoryCommand.java +++ b/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/item/InventoryCommand.java @@ -144,7 +144,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException isAdjust = arg.toString().equalsIgnoreCase("adjust"); } - // Check for an origin, which can be a InventoryTag, EntityTag, LocationTag + // Check for an origin, which can be an InventoryTag, EntityTag, LocationTag // or a ListTag of ItemTags else if (!scriptEntry.hasObject("origin") && arg.matchesPrefix("origin", "o", "source", "items", "item", "i", "from", "f") @@ -153,7 +153,7 @@ else if (!scriptEntry.hasObject("origin") scriptEntry.addObject("origin", Conversion.getInventory(arg, scriptEntry)); } - // Check for a destination, which can be a InventoryTag, EntityTag + // Check for a destination, which can be an InventoryTag, EntityTag // or LocationTag else if (!scriptEntry.hasObject("destination") && arg.matchesPrefix("destination", "dest", "d", "target", "to", "t") diff --git a/plugin/src/main/java/com/denizenscript/denizen/utilities/Conversion.java b/plugin/src/main/java/com/denizenscript/denizen/utilities/Conversion.java index 8a13004c57..94e73b462a 100644 --- a/plugin/src/main/java/com/denizenscript/denizen/utilities/Conversion.java +++ b/plugin/src/main/java/com/denizenscript/denizen/utilities/Conversion.java @@ -74,7 +74,7 @@ public static List convertEntities(List entities) { } /** - * Gets a InventoryTag from an Object, which can be a + * Gets the InventoryTag from an Object, which can be a * EntityTag, LocationTag, InventoryTag, or a ListTag of ItemTags * * @param arg An argument to parse