variables:
{rankup::baron} = 5000
{rankup::earl} = 15000
{rankup::regent} = 75000
{rankup::knight} = 200000
{rankup::prince} = 450000
{rankup::king} = 1250000
on first join:
set {custom::prefix::%Player%} to "&9[&bOutcast&9]"
on first join:
execute command "/rankreset %Player%"
command /rankreset [<offlineplayer>]:
permission: chat.reset
trigger:
set {custom::prefix::%arg-1%} to "&9[&bOutcast&9]"
set {ranksssss::%arg-1%} to "&9[&bOutcast&9]"
set {rank::pick::%arg-1%} to 0
execute player command "/pex user %arg-1% group set Outcast"
send "&c(&4!&c) &7You reset %arg-1%'s rank!"
command /rankup:
trigger:
open chest with 3 rows named "&bRankup!" to player
format gui slot 0, 8, 18 and 26 of player with glowing structure block named "&bRankup"
format gui slot 1, 2, 3, 4, 5, 6, 7, 9, 10, 16, 17, 19, 20, 21, 22, 23, 24 and 25 of player with black glass pane named ""
format gui slot 13 of player with barrier named "&c&lCancel!" to close
if {custom::prefix::%player%} is "&9[&bOutcast&9]":
format gui slot 11 of player with green concrete named "&a&lRankup!" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bBaron&9]", "&7* Cost: &e%{rankup::baron}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::baron}:
set {custom::prefix::%player%} to "&9[&bBaron&9]"
add 1 to {maxhomes::%player%}
add 1 to {rank::pick::%player%}
set {ranksssss::%player%} to "&9[&bBaron&9]"
set {custom::prefix::%player%} to "&9[&bBaron&9]"
remove {rankup::baron} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bBaron&9]!"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::baron}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bBaron&9]":
format gui slot 11 of player with green concrete named "&a&lRankup!" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bEarl&9]", "&7* Cost: &e%{rankup::earl}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::earl}:
set {custom::prefix::%player%} to "&9[&bEarl&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bEarl&9]"
set {custom::prefix::%player%} to "&9[&bEarl&9]"
remove {rankup::earl} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bEarl&9]!"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::earl}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bEarl&9]":
format gui slot 11 of player with green concrete named "&a&lRankup!" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bRegent&9]", "&7* Cost: &e%{rankup::regent}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::regent}:
set {custom::prefix::%player%} to "&9[&bRegent&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bRegent&9]"
set {custom::prefix::%player%} to "&9[&bRegent&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bRegent&9]!"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::knight}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bRegent&9]":
format gui slot 11 of player with green concrete named "&a&lRankup! &bKnight" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKnight&9] or &9[&bLady&9]", "&7* Cost: &e%{rankup::knight}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::knight}:
set {custom::prefix::%player%} to "&9[&bKnight&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bKnight&9]"
set {custom::prefix::%player%} to "&9[&bKnight&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bKnight&9]"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::regent}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bRegent&9]":
format gui slot 15 of player with green concrete named "&a&lRankup! &bLady" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKnight&9] or &9[&bLady&9]", "&7* Cost: &e%{rankup::knight}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::knight}:
set {custom::prefix::%player%} to "&9[&bLady&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bLady&9]"
set {custom::prefix::%player%} to "&9[&bLady&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bLady&9]"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::knight}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bKnight&9]" or "&9[&bLady&9]":
format gui slot 11 of player with green concrete named "&a&lRankup! &bPrince" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bPrince&9] or &9[&bPrincess&9]", "&7* Cost: &e%{rankup::prince}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::prince}:
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {custom::prefix::%player%} to "&9[&bPrince&9]"
set {ranksssss::%player%} to "&9[&bPrince&9]"
set {custom::prefix::%player%} to "&9[&bPrince&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bPrince&9]"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::prince}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bKnight&9]" or "&9[&bLady&9]":
format gui slot 15 of player with green concrete named "&a&lRankup! &bPrincess" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bPrince&9] or &9[&bPrincess&9]", "&7* Cost: &e%{rankup::prince}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::prince}:
set {custom::prefix::%player%} to "&9[&bPrincess&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bPrincess&9]"
set {custom::prefix::%player%} to "&9[&bPrincess&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bPrincess&9]"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::prince}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bPrince&9]" or "&9[&bPrincess&9]":
format gui slot 11 of player with green concrete named "&a&lRankup! &bKing" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKing&9] or &9[&bQueen&9]", "&7* Cost: &e%{rankup::king}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::king}:
set {custom::prefix::%player%} to "&9[&bKing&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bKing&9]"
set {custom::prefix::%player%} to "&9[&bKing&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bKing&9]"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::king}%&b to rankup!"
if {ranksssss::%player%} is "&9[&bPrince&9]" or "&9[&bPrincess&9]":
format gui slot 15 of player with green concrete named "&a&lRankup! &bQueen" with lore "&8--+----------+--", "&7* Your rank %{custom::prefix::%player%}%", "&7* Next rank: &9[&bKing&9] or &9[&bQueen&9]", "&7* Cost: &e%{rankup::king}%" and "&8--+----------+--" to run:
if player's money is more than or equal to {rankup::king}:
set {custom::prefix::%player%} to "&9[&bQueen&9]"
add 1 to {rank::pick::%player%}
add 1 to {maxhomes::%player%}
set {ranksssss::%player%} to "&9[&bQueen&9]"
set {custom::prefix::%player%} to "&9[&bQueen&9]"
remove {rankup::regent} from player's balance
broadcast "[&bRANKUP&f] &7%player% just rankup to &9[&bQueen&9]"
close inventory of player
else:
send "&c(&4!&c) &cYou need: &e%{rankup::king}%&b to rankup!"
command /ranks:
trigger:
open chest with 1 rows named "&2Ranks" to player
if player's balance is less than or equal to {rankup::baron}:
format gui slot 0 of player with red glass named "&bBaron" with lore "&4Rank Amount:", " &f$%{rankup::baron}%", "", "&aRewards:", " &a+ &fx2.5 Sell Multiplier", " &a+ &f250 Claimblocks" and " &a+ 1 home"
if player's balance is more than or equal to {rankup::baron}:
format gui slot 0 of player with green glass named "&bBaron" with lore "&4Rank Amount:", " &f$%{rankup::baron}%", "", "&aRewards:", " &a+ &fx2.5 Sell Multiplier", " &a+ &f250 Claimblocks" and " &a+ 1 home"
if player's balance is less than or equal to {rankup::earl}:
format gui slot 1 of player with red glass named "&bEarl" with lore "&4Rank Amount:", " &f$%{rankup::earl}%", "", "&aRewards:", " &a+ &fx4 Sell Multiplier", " &a+ &f500 Claimblocks" and " &a+ 1 home"
if player's balance is more than or equal to {rankup::earl}:
format gui slot 1 of player with green glass named "&bEarl" with lore "&4Rank Amount:", " &f$%{rankup::earl}%", "", "&aRewards:", " &a+ &fx4 Sell Multiplier", " &a+ &f500 Claimblocks" and " &a+ 1 home"
if player's balance is less than or equal to {rankup::regent}:
format gui slot 2 of player with red glass named "&bRegent" with lore "&4Rank Amount:", " &f$%{rankup::regent}%", "", "&aRewards:", " &a+ &fx5.5 Sell Multiplier", " &a+ &f750 Claimblocks" and " &a+ 1 home"
if player's balance is more than or equal to {rankup::regent}:
format gui slot 2 of player with green glass named "&bRegent" with lore "&4Rank Amount:", " &f$%{rankup::regent}%", "", "&aRewards:", " &a+ &fx5.5 Sell Multiplier", " &a+ &f750 Claimblocks" and " &a+ 1 home"
if player's balance is less than or equal to {rankup::knight}:
format gui slot 3 of player with red glass named "&bKnight/Lady" with lore "&4Rank Amount:", " &f$%{rankup::knight}%", "", "&aRewards:", " &a+ &fx7 Sell Multiplier", " &a+ &f1000 Claimblocks" and " &a+ 1 home"
if player's balance is more than or equal to {rankup::regent}:
format gui slot 3 of player with green glass named "&bKnight/Lady" with lore "&4Rank Amount:", " &f$%{rankup::knight}%", "", "&aRewards:", " &a+ &fx7 Sell Multiplier", " &a+ &f1000 Claimblocks" and " &a+ 1 home"
if player's balance is less than or equal to {rankup::prince}:
format gui slot 4 of player with red glass named "&bPrince/Princess" with lore "&4Rank Amount:", " &f$%{rankup::prince}%", "", "&aRewards:", " &a+ &fx8.5 Sell Multiplier", " &a+ &f1500 Claimblocks" and " &a+ 1 home"
if player's balance is more than or equal to {rankup::prince}:
format gui slot 4 of player with green glass named "&bPrince/Princess" with lore "&4Rank Amount:", " &f$%{rankup::prince}%", "", "&aRewards:", " &a+ &fx8.5 Sell Multiplier", " &a+ &f1500 Claimblocks" and " &a+ 1 home"
if player's balance is less than or equal to {rankup::king}:
format gui slot 5 of player with red glass named "&bKing/Queen" with lore "&4Rank Amount:", " &f$%{rankup::king}%", "", "&aRewards:", " &a+ &fx10 Sell Multiplier", " &a+ &f2000 Claimblocks" and " &a+ 1 home"
if player's balance is more than or equal to {rankup::king}:
format gui slot 5 of player with green glass named "&bKing/Queen" with lore "&4Rank Amount:", " &f$%{rankup::king}%", "", "&aRewards:", " &a+ &fx10 Sell Multiplier", " &a+ &f2000 Claimblocks" and " &a+ 1 home"