mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
payout update
This commit is contained in:
1 parent
4ce603f635
commit
10908764d3
2 files changed
+30
-19
No files matched your search
@@ -166,13 +166,13 @@ public class RaidCommands implements CommandExecutor {
|
||||
|
||||
//check player balance
|
||||
final OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(p.getUniqueId());
|
||||
if (Main.econ.getBalance(offlinePlayer) <= 2500.0) {
|
||||
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "You must have at least $2500 to put up to start a raid.");
|
||||
if (Main.econ.getBalance(offlinePlayer) <= 1000.0) {
|
||||
p.sendMessage(String.valueOf(Helper.Chatlabel()) + "You must have at least $1000 to put up to start a raid.");
|
||||
return;
|
||||
}
|
||||
|
||||
//publish raid
|
||||
Main.econ.withdrawPlayer(offlinePlayer, 2500);
|
||||
Main.econ.withdrawPlayer(offlinePlayer, 1000);
|
||||
RaidData.addRaid(raid2);
|
||||
raid2.start(); //funny funny method haha
|
||||
WarData.saveWar(raid2.getWar());
|
||||
|
||||
Reference in new issue
Block a user