Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------------------------------------------------------------------
- #SC Bounty
- #Created by Sephiroth976
- #Version 1.2
- #--------------------------------------------------------------------------------------------------
- #OPTIONS
- Options:
- #This is what item will be used when setting a bounty on players, default is diamond.
- Item: diamond
- #Show bounty list on server join?
- JoinList: false
- #--------------------------------------------------------------------------------------------------
- #CREATE VARIABLES
- Variables:
- {bounty.%player%} = 0
- {bounty.onjoin.%player%} = true
- #--------------------------------------------------------------------------------------------------
- #SHOW LIST ON JOIN
- on join:
- {@JoinList} is true:
- {bounty.onjoin.%player%} is true:
- wait 3 ticks
- execute player command "/listbounty"
- #--------------------------------------------------------------------------------------------------
- #KILLING PLAYER FOR BOUNTY
- on death:
- attacker is a player
- attacker's name is not "%player%"
- {bounty.%player%} is more than 0:
- give {bounty.%player%} of {@Item} to attacker's inventory
- broadcast "<lime>%attacker% just collected the bounty on %player%'s head! <white>(<yellow>%{bounty.%player%}% {@Item}s<white>)"
- set {bounty.%player%} to 0
- #--------------------------------------------------------------------------------------------------
- #COMMANDS
- command /setbounty <player> <number>:
- executable by: player
- permission: bounty.set
- trigger:
- set {_item} to amount of {@Item} in the player's inventory
- set {_amount} to arg 2
- set {_amountitem} to "%arg 2% {@Item}"
- {_item} is greater than {_amount} - 1:
- {_amount} is greater than 0:
- remove {_amount} of {@Item} from player's inventory
- add {_amount} to {bounty.%arg 1%}
- broadcast "%player% just added %arg 2% {@Item}s to %arg 1%'s bounty!"
- broadcast "%arg 1%'s total bounty is now <yellow>%{bounty.%arg 1%}% {@Item}s"
- stop
- else:
- message "&dnicetry.jpg"
- else:
- message "<red>You dont have enough {@Item}s"
- command /bounty <player=%player%>:
- executable by: player
- permission: bounty.check
- trigger:
- message "Current bounty for %arg 1% is %{bounty.%arg 1%}% {@Item}s"
- command /listbounty:
- executable by: player
- permission: bounty.list
- trigger:
- set {_number} to 0
- message "<red>ONLINE PLAYERS WITH BOUNTIES:"
- loop all players:
- {bounty.%loop-player%} is more than 0:
- message "<lime>%loop-player% <white>(<yellow>%{bounty.%loop-player%}% {@Item}s<white>)"
- add 1 to {_number}
- {_number} is 0:
- message "<red>NONE!"
- command /clearbounty <player=%player%>:
- executable by: player
- permission: bounty.clear
- trigger:
- set {bounty.%arg 1%} to 0
- broadcast "<red>%arg 1%'s bounty was cleared by an admin"
- command /togglebounty:
- executable by: player
- permission: bounty.toggle
- trigger:
- {@JoinList} is true:
- {bounty.onjoin.%player%} is true:
- set {bounty.onjoin.%player%} to false
- message "<red>Toggled showing bounty list on join to OFF"
- stop
- {bounty.onjoin.%player%} is false:
- set {bounty.onjoin.%player%} to true
- message "<lime>Toggled showing bounty list on join to ON"
- stop
- message "<red>Showing list on login is disabled."
- #--------------------------------------------------------------------------------------------------
- command /cps [<player>]:
- usage: /cps <player>
- trigger:
- if arg 1 is set:
- if player have permission "pro.cps.other":
- if {autoclick.%arg 1%} is false:
- set {autoclick.%arg 1%} to true
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- clear {sec.click.%arg 1%}
- wait 1 second
- send "&4%arg 1% clicked %{sec.click.%arg 1%}% times this second"
- send "&c%arg 1% &7has &c%{player.click.%arg 1%}/10% cps &7( &c%{player.click.%arg 1%}% clicks in 10 seconds )" to player
- clear {player.click.%arg 1%}
- clear {sec.click.%arg 1%}
- set {autoclick.%arg 1%} to false
- else:
- send "&4%arg 1% already have a cps checking him"
- else:
- send "&6You don't have permission to check cps of other players"
- if arg 1 is not set:
- if player have permission "pro.cps.me":
- if {autoclick.%player%} is false:
- set {autoclick.%player%} to true
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- wait 1 second
- send "&6You clicked %{sec.click.%player%}% times this second"
- clear {sec.click.%player%}
- broadcast "&c%player% &7has &c%{player.click.%player%}/10% cps &7( &c%{player.click.%player%}% &7clicks in 10 seconds )"
- clear {player.click.%player%}
- clear {sec.click.%player%}
- set {autoclick.%player%} to false
- else:
- send "&4there is already a cps check running on you"
- else:
- send "&6You don't have permission to check your cps"
- on join:
- set {autoclick.%player%} to false
- on left click:
- {autoclick.%player%} is true
- add 1 to {player.click.%player%}
- add 1 to {sec.click.%player%}
Add Comment
Please, Sign In to add comment