Skip to content

Commit

Permalink
* The "ChatInteractionStageEvent" now has a new "INCORRECT" enumerati…
Browse files Browse the repository at this point in the history
…on type which is fired when an invalid entry is entered.

Signed-off-by: XZot1K <[email protected]>
  • Loading branch information
XZot1K committed Nov 4, 2020
1 parent 85c23c9 commit 43ffdde
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion API Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## API-VERSION 1.2.1 ##
## API-VERSION 1.2.2 ##
16 changes: 15 additions & 1 deletion src/xzot1k/plugins/ds/api/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion src/xzot1k/plugins/ds/api/enums/StageType.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
package xzot1k.plugins.ds.api.enums;

public enum StageType {
START, FINISH, TIMEOUT, ENTRY, CANCELLED
START, FINISH, TIMEOUT, ENTRY, CANCELLED, INCORRECT
}

0 comments on commit 43ffdde

Please sign in to comment.