Buy enchantment + Misc Update
This commit is contained in:
parent
53dbcb6800
commit
a24db4dbcd
41 changed files with 488 additions and 122 deletions
|
|
@ -5,38 +5,74 @@ import org.gsdistance.grimmsServer.Stats.PlayerStats;
|
|||
import org.gsdistance.grimmsServer.Stats.PlayerTitles;
|
||||
|
||||
public class PlayerTitleManager {
|
||||
public static void killedPlayer(Player player){
|
||||
public static void killedPlayer(Player player) {
|
||||
PlayerTitles.getPlayerTitles(player).addTitle("Murderer");
|
||||
}
|
||||
public static void gotKilledByPlayer(Player player){
|
||||
|
||||
public static void gotKilledByPlayer(Player player) {
|
||||
PlayerTitles.getPlayerTitles(player).addTitle("Victim");
|
||||
}
|
||||
public static void killedDragon(Player player){
|
||||
|
||||
public static void killedDragon(Player player) {
|
||||
PlayerTitles.getPlayerTitles(player).addTitle("DragonSlayer");
|
||||
}
|
||||
public static void gotOnLeaderboard(Player player){
|
||||
|
||||
public static void gotOnLeaderboard(Player player) {
|
||||
PlayerTitles.getPlayerTitles(player).addTitle("Leader");
|
||||
}
|
||||
public static void joinedGame(Player player){
|
||||
|
||||
public static void joinedGame(Player player) {
|
||||
PlayerTitles.getPlayerTitles(player).addTitle("Newbie");
|
||||
}
|
||||
public static void checkTitles(Player player){
|
||||
|
||||
public static void checkTitles(Player player) {
|
||||
PlayerTitles playerTitles = PlayerTitles.getPlayerTitles(player);
|
||||
if(playerTitles.getTitles().length > 5){
|
||||
if (playerTitles.getTitles().length > 5) {
|
||||
playerTitles.addTitle("Titlemaxxer");
|
||||
}
|
||||
}
|
||||
public static void checkForMoney(Player player){
|
||||
|
||||
public static void checkForMoney(Player player) {
|
||||
double money = (double) PlayerStats.getPlayerStats(player).getStat("money");
|
||||
PlayerTitles playerTitles = PlayerTitles.getPlayerTitles(player);
|
||||
if(money >= 1000000.0){
|
||||
if (money > 100000.0) {
|
||||
playerTitles.addTitle("Richie");
|
||||
}
|
||||
if (money > 1000000.0) {
|
||||
playerTitles.addTitle("Millionaire");
|
||||
}
|
||||
if(money >= 1000000000.0){
|
||||
if (money > 1000000000.0) {
|
||||
playerTitles.addTitle("Billionaire");
|
||||
}
|
||||
if(money >= 1000000000000.0){
|
||||
if (money > 1000000000000.0) {
|
||||
playerTitles.addTitle("Trillionaire");
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkForBlockBreaks(Player player) {
|
||||
long blockBreakCount = (long) PlayerStats.getPlayerStats(player).getStat("block_break_count");
|
||||
PlayerTitles playerTitles = PlayerTitles.getPlayerTitles(player);
|
||||
if (blockBreakCount > 1000) {
|
||||
playerTitles.addTitle("Miner");
|
||||
}
|
||||
if (blockBreakCount > 10000) {
|
||||
playerTitles.addTitle("Anti-block");
|
||||
}
|
||||
if (blockBreakCount > 100000) {
|
||||
playerTitles.addTitle("UltimateMiner");
|
||||
}
|
||||
}
|
||||
public static void checkForTotalKills(Player player) {
|
||||
long totalKills = (long) PlayerStats.getPlayerStats(player).getStat("total_kill_count");
|
||||
PlayerTitles playerTitles = PlayerTitles.getPlayerTitles(player);
|
||||
if (totalKills > 100) {
|
||||
playerTitles.addTitle("KillingMachine");
|
||||
}
|
||||
if (totalKills > 1000) {
|
||||
playerTitles.addTitle("ProGamer");
|
||||
}
|
||||
if (totalKills > 10000) {
|
||||
playerTitles.addTitle("Hitman");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue