Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==================================#
- #== TalonIII's ==#
- #== Chump Charity UHC Gamemode ==#
- #== Version 1.0 ==#
- #==================================#
- # Feel free to edit this to your heart's content.
- # If you see an error, please contact me at [email protected]
- #============#
- #= Commands =#
- #============#
- command /ccenable:
- description: Enables the Chump Charity gamemode
- usage: /ccenable
- permission: skript.cc
- trigger:
- set {ChumpCharity} to true
- execute console command "/announce Chump Charity has been enabled!"
- command /ccdisable:
- description: Disables the Chump Charity gamemode
- usage: /ccdisable
- permission: skript.cc
- trigger:
- set {ChumpCharity} to false
- execute console command "/announce Chump Charity has been disabled!"
- command /lowesthealth:
- description: Tells the player who is the lowest health
- usage: /lowesthealth
- trigger:
- message the player "The person at the lowest health is %{lowest.health}%"
- #===========#
- #= Effects =#
- #===========#
- every second:
- {ChumpCharity} is true
- loop all players:
- if {lowest.Health} is not set:
- set {lowest.health} to loop-player
- if the health of loop-player is less than the health of {lowest.health}:
- set {lowest.health} to loop-player
- every 10 minutes:
- {ChumpCharity} is true
- broadcast "<gold><bold>[Chump Charity] The Chump is about to get some Charity!"
- broadcast "<gold><bold>[Chump Charity] Use /lowesthealth to find out who it is!"
- set {_prizenumber} to a random integer between 1 and 5
- wait 5 seconds
- if {_prizenumber} is 1:
- give the player with the lowest health 8 gold ingots
- else if {_prizenumber} is 2:
- give the player with the lowest health 2 diamonds
- else if {_prizenumber} is 3:
- give the player with the lowest health 4 gold ingots
- else if {_prizenumber} is 4:
- give the player with the lowest health 1 bow
- give the player with the lowest health 32 arrows
- else if {_prizenumber} is 5:
- give the player with the lowest health 1 diamond sword
Advertisement
Add Comment
Please, Sign In to add comment