
【ItemFlip】 4.3.2
⚡️Gamble with your items, win all or lose all⚡️
Fixed support for legacy versions
Added new config option Settings.SpinItemsInsteadHeads to spin bet items instead of players head
1.21.3 support
WARNING: PLUGIN WILL NOW REQUIRE JAVA 17+ !
Fixed
java.lang.IncompatibleClassChangeError: Found class org.bukkit.inventory.InventoryView, but interface was expected
Updated NBTAPI library
Added 1.21.1 support
Fixed NPE in versions below 1.20.5
Added ability to add gamled items into lore
ItemsLore:
Enable: true
MaxItems: 5
MoreString: '&f&o... and more'
Lore:
- '&f&lItems:'
Changed HistoryGUI materials.
Now You can specify material for each side (heads/tails) in config like this
Item:
# Material used by side(heads/tails)
MaterialHeads: EMERALD
# Material used by side(heads/tails)
MaterialTails: DIAMOND
Added side icons to preview game GUI
HistoryServerGUI:
# Slot for side items for first & second player
HeadsTailsSlots: [47, 51]
Heads:
Material: EMERALD
DisplayName: §bHEADS
Lore:
- '&7Player1 %PLAYER1%'
- '&7Player2 %PLAYER2%'
- '&7Winner %WINNER%'
- '&7Loser %LOSER%'
- '&7Time %TIME%'
- '&7Side %SIDE%'
Base64: 0
CustomModelData: 0
Amount: 1
Glow: false
ItemFlags:
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
Tails:
Material: DIAMOND
DisplayName: §bTAILS
Lore:
- '&7Player1 %PLAYER1%'
- '&7Player2 %PLAYER2%'
- '&7Winner %WINNER%'
- '&7Loser %LOSER%'
- '&7Time %TIME%'
- '&7Side %SIDE%'
Base64: 0
CustomModelData: 0
Amount: 1
Glow: false
ItemFlags:
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
Fixed MySQL database issue
Removed debug messages
Fixed NPE
IF YOU ARE USING SQLITE DATABASE YOU HAVE TO REMOVE IT
- Fixed bug with invite command ( Now you can't see if vanished player is online on the server )
- Reworked /itemflip history GUI ( Now it shows all server games and can be clicked to show items etc)
- Config values will be added automatically after restart.
- Added api, you can found it here: DexterSK/ItemFlipAPI (github.com)
- Added new subcommand /if voucher [player] [credits]
Updated libraries to support MC 1.20.6
Removed debug message
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 player
Rewrited 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
- 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