⚡️Gamble with your items, win all or lose all⚡️
Fixed %ITEMS% placeholder
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 playerRewrited code for better performance
Code optimalizations
Small fixes
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
Fixed another ConcurrentModificationException
- 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
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.
Fixed dupe glitch
Fixed update notification missing link
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"
Fixed bug in GUI
Updated Sound library