Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Slave/Blood Market Skript
- #Skript by 8bitfusion
- options:
- P: <aqua>[UHC-Markets]
- command /UHCcaptains [<text>] [<player>]:
- permission:skript.op
- trigger:
- if arg 1 is "add":
- arg 2 is set
- set {captains::%arg 2%} to "%arg 2%"
- send "{@P} <green>%arg 2% is now a captain!" to the player
- else if arg 1 is "remove":
- arg 2 is set
- remove arg 2 from {captains::*}
- send "{@P} <green>%arg 2% is no longer a captain!" to the player
- else if arg 1 is "reset":
- delete {captains::*}
- send "{@P} <green>All captains have been reset!" to the player
- else if arg 1 is not set:
- send "{@P} <green>Captains are:" to the player
- loop {captains::*}:
- send "{@P} <green>%{captains::%loop-index%}%" to the player
- else:
- send "{@P} <green>That is not a valid command!" to the player
- command /openbid <text> <player> [<integer=30>]:
- permission:skript.op
- usage:/openbid <silent/standard> <player> <time, default=30s>
- trigger:
- if arg 1 is "silent":
- broadcast "{@P} <green>The host opened a <aqua>%arg 1% <green>bid on <aqua>%arg 2% <green>of length <aqua>%arg 3% seconds!"
- broadcast "{@P} <green>Captains, make your bids using <aqua>/bid <amount>!"
- set {silentbid} to true
- set {uhcm_time} to arg 3
- delete {largest_player}
- set {largest_bet} to -1
- while {uhcm_time} is greater than 0:
- wait 1 second
- subtract 1 from {uhcm_time}
- set {silentbid} to false
- if {largest_player} is set:
- broadcast "{@P} <green>Captain <aqua>%{largest_player}% <green> has won the bid on <aqua>%arg 2% <green>by bidding <aqua>%{largest_bet}%!"
- else:
- broadcast "{@P} <green>No bids were made on <aqua>%arg 2%!"
- if arg 1 is "standard":
- broadcast "{@P} <green>The host opened a <aqua>%arg 1% <green>bid on <aqua>%arg 2% <green>of length <aqua>%arg 3% seconds!"
- broadcast "{@P} <green>Captains, make your bids using <aqua>/bid <amount>!"
- set {standardbid} to true
- set {uhcm_time} to arg 3
- delete {largest_player}
- set {largest_bet} to -1
- while {uhcm_time} is greater than 0:
- wait 1 second
- subtract 1 from {uhcm_time}
- set {standardbid} to false
- if {largest_player} is set:
- broadcast "{@P} <green>Captain <aqua>%{largest_player}% <green> has won the bid on <aqua>%arg 2% <green>by bidding <aqua>%{largest_bet}%!"
- else:
- broadcast "{@P} <green>No bids were made on <aqua>%arg 2%!"
- command /bid <integer>:
- usage:/bid <amount>
- trigger:
- if {captains::%player%} is "%player%":
- if arg 1 is greater than -1:
- if {silentbid} is true:
- if arg 1 is greater than {largest_bet}:
- set {largest_bet} to arg 1
- set {largest_player} to the player
- send "{@P} <green>You bid <aqua>%arg 1%!" to the player
- else if {standardbid} is true:
- if arg 1 is greater than {largest_bet}:
- set {largest_bet} to arg 1
- set {largest_player} to the player
- broadcast "{@P} <green>%player% bid <aqua>%arg 1%!"
- else:
- send "{@P} <green>There are no bids open at this time!" to the player
- else:
- send "{@P} <green>You must choose a positive number to bid!" to the player
- else:
- send "{@P} <green>You are not a captain! You don't have access to this command!" to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement