Tai Xiu (Sic bo) - Folia/Vault/PlayerPoints/Floodgate/Discor
2.8A plugin based on an ancient Chinese gambling game played with three dice
"All or nothing"
This plugin was published and got updated on a Vietnamese Minecraft Forum (minecraftvn) before it got translated and now ready to be published on spigotMC!
Description
Tai Xiu (or Sic Bo in English) is a game in the form of betting. In the game, there are three 6-sided dice numbered from 1-6. The dealer (system) will take the sum of the 03 dice that appear to give a final number to the player.
The player's task is to predict whether the result is Tai or Xiu. Xiu is the sum of 3 dice from 3-10, and Tai is 11-18. If the guess is correct, the player will win and receive money.
System requirements
This software runs on Spigot and NMS.
Spigot forks without compiled NMS code are not supported.
Officially supported servers are spigot, paper, and folia.
You must use Java 11 or newer.
Plugin requirements
- Vault (Use VaultUnlocked if you're using Folia)
- An economy plugin
NOTE: If you are using VaultUnlocked, if recommend to use BetterEconomy as an economy plugin.
Soft-depend plugins
You might need these plugins to utilize all plugin features:
- PlaceholderAPI
- %taixiu_phien% - Get the current session number
- %taixiu_timeleft% - Get current session time left
- %taixiu_result_phien_{session_number}% - Get the result of the session {session_number}
- %taixiu_resultformat_phien_{session_number}% - Get the format result of the session {session_number} (based on message.yml)
- %taixiu_taiplayers_phien_{session_number}% - List the players who bet on Tai
- %taixiu_xiuplayers_phien_{session_number}% - List the players who bet on Xiu
- %taixiu_taiplayers_bet_phien_{session_number}% - Get the total money of Tai
- %taixiu_xiuplayers_bet_phien_{session_number}% - Get the total money of Xiu
- %taixiu_totalbet_phien_{session_number}% - Get the total money of the session
Attention: Change {session_number} to current if you want to get the last session.
- Floodgate API (GeyserMC)
- This will let you be able to use Bedrock forms which I already have set up for this plugin.
- Discord Web Hook
- Send messages to discord of session's information.
- PlayerPoints
- Since version 2.3, TaiXiu supports multiple currencies for each playing session. PlayerPoints now can be used as a second currency for players to bet.
Main feature
- Automatically updating files if there is a new update.
- Configable messages, gui, etc..
- Supporting API.
- Supporting GUI
- Supporting Hex Color
- Supporting BossBar
- Supporting Floodgate (GeyserMC)
- Easily managing plugin database
Images
Click here to view images!

Commands & Permissions
- /taixiu - taixiu.use
- The main command for the players to use.
- toggle
- luatchoi
- cuoc
- thongtin
- The main command for the players to use.
- /taixiuadmin - taixiu.admin
- For the administrators to use to adjust stats or reload plugin.
- reload
- changestate
- settime
- setcurrency
- setresult
- For the administrators to use to adjust stats or reload plugin.
- taixiu.tax.bypass: Bypass taxes.
Update History
Click here to see the previous updates
API Usage
Java
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories><dependency>
<groupId>com.github.CortezRomeo</groupId>
<artifactId>TaiXiu</artifactId>
<version><VERSION></version>
</dependency>Using Manager
System.out.println(TaiXiuManager.getTime() + " seconds remaining!");
System.out.println("Current session status: " + TaiXiuManager.getState());Using SessionData
ISession session = DatabaseManager.taiXiuData.get(4);
// Session is not valid
if (session == null) {
return;
}
System.out.println("The result of session" + session.getSession() + " is " + session.getResult());
System.out.println("Dice number 1: " + session.getDice1());
System.out.println("Players betted on Xiu: " + (session.getXiuPlayers().isEmpty() ? "" : session.getXiuPlayers()));Event:
Event list
PlayerBetEvent
SessionSwapEvent
SessionResultEvent
Using Event
@EventHandler
public void resultEvent(SessionResultEvent event) {
ISession sessionData = event.getSessionData();
HashMap<String, Long> taiPlayers = sessionData.getTaiPlayers();
HashMap<String, Long> xiuPlayers = sessionData.getXiuPlayers();
TaiXiuResult result = sessionData.getResult();
System.out.println("Sic bo session number #" + sessionData.getSession() + " result is " + result);
System.out.println("There is " + (result == TaiXiuResult.TAI ? taiPlayers.size() : xiuPlayers.size()) + " players betted on " + result);
}
@EventHandler
public void betEvent(PlayerBetEvent event) {
Player p = event.getPlayer();
TaiXiuResult bet = event.getBet();
Long money = event.getMoney();
System.out.println(p.getName() + " just betted on " + bet.toString() + " with the amount of " + money);
}Contact
Report a bug or need help with something? You're welcome to my discord server

Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta