Crash A Light-Weight Gambling Plugin
Crash is a gambling plugin based on the gambling game crash.
An example of a crash can be found at bustabit.com.
PRICE:
Jar: FREE
SRC: $5.99
*| Purchasing Source will allow you to completely edit the plugin and change the math to your liking or make the math more advanced, besides what is editable through console |*
IMAGES:
MATH CLASS:
Code:
import java.util.*;
public class GamblingMath {
public static double getcrash() {
double crash = 0.0;
int start = (int) (Math.random() * (5-0) +0);
double top = 1;
/* 5 - 100 */
boolean neon = false;
switch(start) {
case 0 : top = CrashGambling.getInstance().getConfig().getDouble("top_1"); break;
case 1 : top = CrashGambling.getInstance().getConfig().getDouble("top_2") ; break;
case 2 : top = CrashGambling.getInstance().getConfig().getDouble("top_3") ; break;
case 3 : top = CrashGambling.getInstance().getConfig().getDouble("top_4") ; break;
case 4 : top = CrashGambling.getInstance().getConfig().getDouble("top_5") ; break;
case 5 : neon = true; break;
}
if(CrashGambling.getInstance().getConfig().getBoolean("neon")) {
if (neon) {
int neonmath = (int) (Math.random() * (1 - 0) + 0);
if (neonmath == 0) {
crash = Math.random() * (100 - 10) + 10;
crash = Math.round(crash * 100.0) / 100.0;
return crash;
} else {
crash = Math.random() * (9.99 - 5.01) + 3.01;
crash = Math.round(crash * 100.0) / 100.0;
return crash;
}
}
}
crash = Math.random() * (top-1.00) + 1.00;
crash = Math.round(crash*100.0)/100.0;
return crash;
}
}
PROOF OF OWNERSHIP:
CONFIG
Code:
minimum_bet: 5.0
maximum_bet: 1000000.0
#Mathimatical Caluclations:
#1/5 chance to crash
#Don't touch unless you want to edit the gambling math.
top_1: 1.00 # Leave as 1.00 unless you want to remove flat-crashing.
top_2: 1.50
top_3: 2.00
top_4: 2.50
top_5: 5.00
neon: false #1-100x Multiplier. (1-6 chance)
#error messages
someone_playing: "&cSomeone is currently playing crash, please wait."
incorrect_arguments: "&cIncorrect Arguments"
insufficient_money: "&cYou do not have enough money to bid."
min_bet: "&cYou must bet at least &4$%minbet%"
max_bet: "&cYou can not bet more than &4$%maxbet%"
COMMANDS / PERMISSIONS
/crash (bet) : crash.use
HOW TO DOWNLOAD
Join Development Discord (https://discord.gg/bM6rUD5), go to #purchase, download from Mediafire.
(Requires : Vault)
OR
Download: https://www.mediafire.com/file/btbe4q74l1daa57/CrashGambling.jar/file
Information:
Discord: Xanarchy#3059
Telegram: @Frostfire25
Development Discord: https://discord.gg/bM6rUD5
Last edited:
