Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &f&lTAG HOP &8> &f
- admin: &c&lTAG HOP &4> &c
- command /admin:setpos [<text>]:
- permission: op
- trigger:
- if arg 1 is not set:
- send "{@admin} Correct usage: /..os <location id>"
- send "{@admin} Don't use if you don't know what it does!"
- send "{@admin} Set position %arg 1% to your current location."
- set {position::%arg 1%} to player's location
- command /tag [<text>]:
- permission: op
- trigger:
- if arg 1 is "start":
- broadcast "{@prefix} Tag Starting in &c5&f..."
- wait 1 second
- broadcast "{@prefix} Tag Starting in &64&f..."
- wait 1 second
- broadcast "{@prefix} Tag Starting in &e3&f..."
- wait 1 second
- broadcast "{@prefix} Tag Starting in &a2&f..."
- wait 1 second
- broadcast "{@prefix} Tag Starting in &21&f..."
- wait 1 second
- broadcast "{@prefix} Game has started!"
- broadcast "{@prefix} The Peace Period is ending in 10 seconds!"
- wait 1 second
- set {tag::game} to true
- loop all players:
- teleport loop-player to {position::map1}
- add 1 to {_id}
- set {tag::player::%{_id}%} to loop-player
- set {tag::taggerid} to random integer from 1 to {_id}
- set {tag::currenttagger} to {tag::player::%{_id}%}
- wait 10 seconds
- add 1 stick named "&eTagger" to inventory of {tag::player::%{tag::taggerid}%}
- send "{@prefix} &lYou are the tagger!" to {tag::player::%{tag::taggerid}%}
- wait 50 seconds
- broadcast "{@prefix} 2 minutes left!"
- wait 60 seconds
- broadcast "{@prefix} 1 minute left!"
- wait 30 seconds
- broadcast "{@prefix} 30 seconds left!"
- wait 27 seconds
- broadcast "{@prefix} Ending in &a3"
- wait 1 second
- broadcast "{@prefix} Ending in &e2"
- wait 1 second
- broadcast "{@prefix} Ending in &c1"
- wait 1 second
- broadcast "{@prefix} &lGame over!"
- loop all players:
- teleport loop-player to {position::spawn}
- clear inventory of loop-player
- set loop-player's gamemode to adventure
- broadcast "{@prefix} %{tag::currenttagger}% lost the game!"
- set {tag::game} to false
- stop
- if arg 1 is "stop":
- send "{@admin} Can't force stop the game, tho we made the server think its off."
- set {tag::game} to false
- on drop:
- if {bypass::*} contains player's uuid:
- stop
- cancel event
- on inventory click:
- if {bypass::*} contains player's uuid:
- stop
- cancel event
- on damage:
- cancel event
- if {tag::game} is false:
- stop
- if attacker's tool is stick:
- if {tag::currenttagger} is not player:
- clear attacker's inventory
- stop
- clear attacker's inventory
- add 1 stick named "&eTagger" to inventory of {tag::currenttagger}
- broadcast "{@prefix} %victim% has been tagged!"
- set {tag::currenttagger} to victim
- on join:
- set health of player to 10
- if {tag::game} is true:
- teleport player to {position::map1}
- set player's gamemode to spectator
- send "{@prefix} The game is currently running. Please wait till the next lobby is available!"
- stop
- else:
- send "{@prefix} Welcome, %player%!"
- teleport player to {position::spawn}
- set player's gamemode to adventure
- stop
- on quit:
- if {tag::game} is true:
- if player is {tag::currenttagger}:
- broadcast "{@prefix} The tagger has left!"
- command /admin:bypass:
- trigger:
- if player is not "CrittedX" or "Krajek" or "p3rty":
- send "{@prefix} No permission!"
- stop
- if {bypass::*} contains player's uuid:
- send "{@admin} Bypass mode disabled."
- remove player's uuid from {bypass::*}
- stop
- else:
- send "{@admin} Bypass mode enabled."
- add player's uuid to {bypass::*}
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement