2.5 Apr 2, 2024

Fixed typo in GUI with player games

Changed command to invite player to the game from /itemflip [player] to /itemflip invite [player]

Added new credit system. When enabled you need to have specified amount of credits to invite someone to the game

 

  CreditSystem:
    Enable: false
    CommandCost: 10

 

New permissions for new commands

  itemflip.admin:
    default: op
  itemflip.showcredits:
    default: true
  itemflip.showcredits_other:
    default: true

 

New commands

/itemflip showcredits - show your credits
/itemflip showcredits [player] - show credits of other player
/itemflip setcredits [player] - set credits to specified number to the player
/itemflip addcredits [player] - add specified amount of credits to the player
/itemflip removecredits [player] - remove specified credits from the player

2.4 Jul 28, 2023

Rewrited code for better performance


2.3 Jul 17, 2023

Code optimalizations


2.2 Jul 7, 2023

Small fixes


2.1 Jun 29, 2023

Fixed a issue with InvitationExpire thing.

Added new option to enable/disable InvitationExpire

Added ability to change lore in /if history menu:

History:
  LoreWin:
    - ""
    - "&c%LOSER%"
    - "&a%WINNER%"
    - ""
    - "&a&lWON"
  LoreLost:
    - ""
    - "&c%LOSER%"
    - "&a%WINNER%"
    - ""
    - "&c&lLOST"

 

Fix:

When players leave a server(or gets kicked etc), game will stops and all items will be returned to owners

Fixed items flickering in menu


2.0 Jun 28, 2023
  • Added a timeout, when you send a request to someone, they have eg: 30 seconds to accept or cancel, or it automatically cancels. - configurable in config
  • Added an itemflip history, you can see on the entire server who recently won, lost what they won and what they lost.
  • Added a chat announcement to announce when someone wins or loses an itemflip (to the entire server)
  • Added two new subcommands:
      - /itemflip toggle broadcast - To toggle broadcast messages
      - /itemflip history [playerName] - To open self/other player history GUI
      
  • Added three new perms
      - itemflip.history - For use history command - default: player
       - itemflip.history_other - For use history command on other player - default: player
      - itemflip.toggle - For use toggle subcommand - default: player
  • Added ability to change board items to AIR instead of BARRIER

1.9 Jun 21, 2023

Fixed another ConcurrentModificationException


1.8 Jun 19, 2023

- Hopefully fixed ConcurrentModificationException

- Added two new settings

Settings:
  # If true gui will show up for both players, otherwise only for who clicked
  OpenGuiForBoth: true 

  # If true gui will open again if player closes GUI
  OpenGuiOnClose: true

1.7 Jun 17, 2023

Added %PREFIX% placeholder to messages.
Changed how the accept/decline buttons works. Now you can only accept game with buttons.

If you have accepted game and you add/remove item, state of the both players will change to declined.


1.6 Jun 16, 2023

Fixed dupe glitch


1.5 Jun 1, 2023

Fixed update notification missing link


1.4 May 29, 2023

Used TreeMap instead of HashMap so slots are now sorted automatically.

Added BlackListedMaterials under Settings section.

Added one new message regarding setting above.

Added options to change the text component of chat message:

TextComponent:
  First: "§7Click to"
  Second: " §a[Accept]"
  Third: "&a&lClick to accept ItemFlip"
  Four: " §c[Decline]"
  Five: "&c&lClick to decline ItemFlip"

1.3 May 27, 2023

Fixed bug in GUI


1.2 Apr 15, 2023

Updated Sound library


1.1 Apr 10, 2023
New option added!

Added new options to disable plugin in specific gamemodes


1.0 Apr 9, 2023