diff --git a/API Version.txt b/API Version.txt index 461f81e..d269235 100644 --- a/API Version.txt +++ b/API Version.txt @@ -1 +1 @@ -## API-VERSION 1.2.1 ## \ No newline at end of file +## API-VERSION 1.2.2 ## \ No newline at end of file diff --git a/src/xzot1k/plugins/ds/api/Manager.java b/src/xzot1k/plugins/ds/api/Manager.java index 116835a..bd68033 100644 --- a/src/xzot1k/plugins/ds/api/Manager.java +++ b/src/xzot1k/plugins/ds/api/Manager.java @@ -8,6 +8,7 @@ import org.bukkit.Material; import org.bukkit.OfflinePlayer; import org.bukkit.World; +import org.bukkit.block.Block; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import org.bukkit.inventory.Inventory; @@ -67,8 +68,9 @@ public interface Manager { * * @param player The player of who is in the chat interaction. * @param playerEntryValue The value/message the player entered. + * @return Returns true if the interaction completes successfully; otherwise, the return is false. */ - void initiateChatInteractionOperation(Player player, ChatInteractionType chatInteractionType, String playerEntryValue); + boolean initiateChatInteractionOperation(Player player, ChatInteractionType chatInteractionType, String playerEntryValue); /** * Sends a color translated message to the players as either a normal chat message or action bar message. @@ -259,6 +261,18 @@ public interface Manager { */ Shop getShop(Location location); + /** + * Creates a shop at the passed block owned by the passed player. + * + * @param player The player to use as the owner. + * @param block The block to create the shop at. + * @param shopItemAmount The amount used for the shop item. + * @param doCreationEffects Whether to play the effects and sounds. + * @param sendCreationMessage Whether to send the creation message. + * @return The shop object. + */ + Shop createShop(Player player, Block block, int shopItemAmount, boolean doCreationEffects, boolean sendCreationMessage); + /** * Attempts to load all available shops from the database. * diff --git a/src/xzot1k/plugins/ds/api/enums/StageType.java b/src/xzot1k/plugins/ds/api/enums/StageType.java index d6b6d79..c39498b 100644 --- a/src/xzot1k/plugins/ds/api/enums/StageType.java +++ b/src/xzot1k/plugins/ds/api/enums/StageType.java @@ -5,5 +5,5 @@ package xzot1k.plugins.ds.api.enums; public enum StageType { - START, FINISH, TIMEOUT, ENTRY, CANCELLED + START, FINISH, TIMEOUT, ENTRY, CANCELLED, INCORRECT }