Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {bounty::%player%} = 0
- options:
- version: v1.4
- every 1 second:
- loop all players:
- if {bounty::%loop-player%} isn't set:
- set {bounty::%loop-player%} to 0
- command /bounty [<text>] [<player>] [<integer>]:
- trigger:
- if arg-1 is set:
- if arg-1 is "add":
- if arg-2 is set:
- if arg-3 is a integer:
- set {bcooldown} to difference between {bcooldown.%player%} and now
- if {bcooldown} is less than 2 minutes:
- send "&8➡ &cERROR &7You must wait %difference between {bcooldown} and 2 minutes% to bounty again."
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- stop
- set {bcooldown.%player%} to now
- if arg-2 isn't the player:
- if player's balance >= arg-3:
- if arg-3 is bigger than 0:
- add arg-3 to {bounty::%arg-2%}
- remove arg-3 from player's balance
- broadcast "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- broadcast "&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &6%player% &7Bountied &6%arg-2%%nl%&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7For &6$%arg-3%&7."
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- else:
- send "&8➡ &cERROR &7You cannot bounty players with 0 or below."
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- else:
- send "&8➡ &cERROR &7You do not have enough money."
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- else:
- send "&8➡ &cERROR &7You cannot bounty yourself."
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- if arg-1 is set:
- if arg-1 is "check":
- if arg-2 is set:
- send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- send "&8➡ &7Username: &e%arg-2%"
- send "&8➡ &7Bounty: &e$%{bounty::%arg-2%}%"
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- else:
- if player doesn't have the permission "bounty.admin":
- send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
- send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
- send "&8 &8➡ &e/bounty info &7The skript info."
- else:
- send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
- send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
- send "&8 &8➡ &e/bounty info &7The skript info."
- send "&8 &8➡ &e/bounty addbounty (player) (amount) &7This is a admin command it adds a player's bounty."
- send "&8 &8➡ &e/bounty setbounty (player) (amount) &7This is a admin command it sets a player's bounty."
- send "&8 &8➡ &e/bounty resetbounty (player) &7This is a admin command it resets a player's bounty"
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- else:
- if player doesn't have the permission "bounty.admin":
- send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
- send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
- send "&8 &8➡ &e/bounty info &7The skript info."
- else:
- send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- send "&8 &8➡ &e/bounty add (player) (amount) &7Gives a player a bounty."
- send "&8 &8➡ &e/bounty check (player) &7Check your or another player's bounty info."
- send "&8 &8➡ &e/bounty info &7The skript info."
- send "&8 &8➡ &e/bounty addbounty (player) (amount) &7This is a admin command it adds a player's bounty."
- send "&8 &8➡ &e/bounty setbounty (player) (amount) &7This is a admin command it sets a player's bounty."
- send "&8 &8➡ &e/bounty resetbounty (player) &7This is a admin command it resets a player's bounty"
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- if arg-1 is set:
- if arg-1 is "addbounty":
- if arg-2 is set:
- if arg-3 is a integer:
- if player has the permission "bounty.admin":
- add arg-3 to {bounty::%arg-2%}
- loop all players:
- if loop-player has the permission "bounty.admin":
- send "&8 &8➡ &7%player% Has added $%arg-3% to %arg-2%'s bounty."
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- else:
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- if arg-1 is set:
- if arg-1 is "setbounty":
- if arg-2 is set:
- if arg-3 is a integer:
- if player has the permission "bounty.admin":
- set {bounty::%arg-2%} to arg-3
- loop all players:
- if loop-player has the permission "bounty.admin":
- send "&8 &8➡ &7%player% Has set $%arg-3% to %arg-2%'s bounty."
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- else:
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- if arg-1 is set:
- if arg-1 is "resetbounty":
- if arg-2 is set:
- if player has the permission "bounty.admin":
- set {bounty::%arg-2%} to 0
- loop all players:
- if loop-player has the permission "bounty.admin":
- send "&8 &8➡ &7%player% Has reset %arg-2%'s bounty."
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- else:
- play sound "mob.villager.no" with volume 3 and pitch 1 at player's location for player
- if arg-1 is set:
- if arg-1 is "info":
- send "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- send "&8 &8➡ &fMade by Botable"
- send "&8 &8➡ &fVersion: &7{@version}"
- send "&7(Thanks to Viagrin and Ezzenix for allowing me to make this skript.)"
- play sound "mob.villager.yes" with volume 3 and pitch 1 at player's location for player
- on death:
- if attacker is a player:
- if {bounty::%victim%} is bigger than 0:
- broadcast "&e&m&l---&6&m&l*&e&m&l-----------&6&l BOUNTIES &e&m&l-----------&6&m&l*&e&m&l---"
- broadcast "&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &6%attacker% &7Has claimed &6%victim%'s%nl%&7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7 &7Bounty &6(%{bounty::%victim%}%)."
- add {bounty::%victim%} to attacker's balance
- set {bounty::%victim%} to 0
- loop all players:
- play sound "random.orb" with volume 3 and pitch 1 at loop-player's location for loop-player
- every 1 second:
- loop all players:
- if {bounty::%loop-player%} is bigger than 0:
- set loop-player's tablist name to "%loop-player's prefix%%loop-player% &6(%{bounty::%loop-player%}%)"
- else:
- set loop-player's tablist name to "%loop-player's prefix%%loop-player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement