Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #- HostEssentials - The Basics for running an efficient ultrahardcore game!
- #- Written by /u/Mortimier
- #- You NEED to have Essentials, PVP Toggle, SimplyVanish, ServerMOTD, and the Ultrahardcore plugin in order for this skript to work.
- #- If you don't know how to get or set up these plugins, learn how to do that before using skripts. Please. For everyone's sake.
- #- This is much easier to read if you get Notepad++. Google it. You need it. I promise.
- #- For help using this skript to its full effectiveness, go to https://docs.google.com/document/d/11ClNMHPyvfG1jxGsMqgjOl32G0uE3OnB6Wr-nyOyOcg/edit?usp=sharing
- options:
- #- Prefix before all broadcasts -#
- Pre: &b[&3S&Q&b]&5
- #- Prefix before all messages -#
- PreMess: &b[&3S&Q&b]&5
- #- Prefix before all important broadcasts, mainly /y"
- PreImpo: &b[&3S&Q&b]&5
- #- Permission for hosts -#
- OpPerm: UHCEss.host
- #- Message for not being a spectator-#
- NotSpecMess: &b[&3S&Q&b]&5 Only Spectators and Hosts can use that command, silly!
- #- Message for not having host permissions -#
- PermMess: &b[&3S&Q&b]&5 Only Hosts can use that command, silly!
- #- List of all skripts to be reloaded after a UHC match -#
- VanillaSkripts: HostEssentials, sbutcher, scatter, vote, kickskript, bropvp, pregen, teams
- #- Percentage of flint drop rates (if FlintRates is on) -#
- GravelPercentage: 75
- #- Percentage of apple drop rates (if AppleRates is on) -#
- ApplePercentage: 2
- variables:
- {killboard.enabled} = false
- #========================#
- #========Options=========#
- #========================#
- variables:
- {option::AppleHeads} = false
- {option::Weather} = false
- {option::DeathRemove} = true
- {option::DeathCoords} = false
- {option::DeathMessages} = true
- {option::DragonMessage} = true
- {option::HealthMessage} = true
- {option::JoinTeam} = false
- {option::KillboardClear} = true
- {option::FlintRates} = false
- {option::AppleRates} = false
- {option::BlazeSpawns} = false
- {option::Lobby} = false
- {option::DeathAnnounce} = false
- {option::JoinAnnounce} = false
- {optionDesc::AppleHeads} = "If enabled, upon a head being broken, it will drop 2 red apples instead."
- {optionDesc::Weather} = "If disabled, rain and thunderstorms will be unable to occur."
- {optionDesc::DeathRemove} = "If enabled, upon death, the player will be removed from the whitelist, and will be kicked after 1 minute."
- {optionDesc::DeathCoords} = "If enabled, will broadcast the coordinates of a player immediately after that player's death."
- {optionDesc::DeathMessages} = "If disabled, death messages will not be displayed in the chat."
- {optionDesc::DragonMessage} = "If enabled, upon death of the ender dragon, a death message similar to player death messages will appear for the dragon."
- {optionDesc::HealthMessage} = "If enabled, when a player lands an arrow shot, that player will be messaged the victim's health."
- {optionDesc::JoinTeam} = "If disabled, the command /jointeam and any variation will be disabled."
- {optionDesc::KillboardClear} = "If enabled, 1 minute after a player dies, their spot in the kill scoreboard will be removed."
- {optionDesc::FlintRates} = "If enabled, flint will drop %{@FlintPercentage}% percent of the time on mining gravel."
- {optionDesc::AppleRates} = "If enabled, apples will drop from all leaves %{@ApplePercentage}% percent of the time"
- {optionDesc::BlazeSpawns} = "If enabled, 1 out of every 50 zombie pigmen will spawn as blazes."
- {optionDesc::Lobby} = "Upon a player's first time joining the server, they will be teleported to the set lobby position."
- {optionDesc::DeathAnnounce} = "If enabled, will announce the death of players in a more noticeable fashion in chat."
- {optionDesc::JoinAnnounce} = "If enabled, will announce players joining in a more noticeable fashion in chat."
- command /option <text> [<text>]:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/option <on:off:toggle:list:reset> [option]"
- aliases: /opt
- trigger:
- if arg 1 is "list":
- message "{@Pre} List of Possible Options"
- loop {option::*}:
- wait 15 ticks
- message "{@Pre} %loop-index% - %loop-value%"
- stop trigger
- else if arg 1 is "help":
- if {option::%arg 2%} is set:
- message "{@PreMess} %arg 2%: %{optionDesc::%arg 2%}%"
- else:
- message "{@PreMess} %arg 2% is not an option!"
- stop trigger
- if command sender has permission "{@OpPerm}":
- if arg 1 is "reset":
- loop {option::*}:
- delete {option::%loop-index%}
- broadcast "{@Pre} Options Reset. The Skript needs to be reloaded."
- stop trigger
- if {option::%arg 2%} is set:
- if arg 1 is equal to "on":
- {option::%arg 2%} is true:
- message "{@PreMess} Option %arg 2% is already enabled!"
- stop trigger
- set {option::%arg 2%} to true
- broadcast "{@Pre} Option %arg 2% is now enabled!"
- stop trigger
- else if arg 1 is equal to "off":
- {option::%arg 2%} is false:
- message "{@PreMess} Option %arg 2% is already disabled!"
- stop trigger
- set {option::%arg 2%} to false
- broadcast "{@Pre} Option %arg 2% is now disabled!"
- stop trigger
- else if arg 1 is equal to "toggle":
- if {option::%arg 2%} is false:
- set {option::%arg 2%} to true
- broadcast "{@Pre} Option %arg 2% is now enabled!"
- stop trigger
- if {option::%arg 2%} is true:
- set {option::%arg 2%} to false
- broadcast "{@Pre} Option %arg 2% is now disabled!"
- stop trigger
- else:
- message "{@Pre} %arg 2% is not an option!"
- stop trigger
- else:
- message "{@PermMess}"
- on weather change to rain or thunder:
- {option::Weather} is false
- cancel event
- on break of head:
- {option::AppleHeads} is true
- cancel event
- delete the block
- drop 2 apples
- on death of player:
- {option::DeathRemove} is true
- wait 10 seconds
- broadcast "{@Pre} &6GoodGame %player%!"
- on death of player:
- {option::DeathRemove} is true
- command "/playsoundall random.explode 2"
- {SpecPerm::%player%} is false
- player is not op:
- execute console command "/whitelist remove %player%"
- wait 60 seconds
- {option::DeathRemove} is true:
- {SpecPerm::%player%} is false
- player is not op
- kick the player due to "{@PreImpo} GG. Thanks for playing!"
- on death of player:
- {option::DeathRemove} is true
- {killboard.enabled} is true
- wait 30 seconds
- command "/scoreboard players reset %victim%"
- on death of player:
- {option::DeathMessages} is false
- set the death message to ""
- on death of Ender Dragon:
- {option::DragonMessage} is true
- broadcast "Ender Dragon was killed by %attacker%"
- on damage of player:
- {option::HealthMessage} is true
- wait 1 tick
- attacker is a player:
- projectile exists
- wait 1 tick
- victim is not dead:
- message "{@Pre} %Victim% is now at %health of victim*10% percent." to the attacker
- on death of player:
- {option::DeathAnnounce} is true
- broadcast "&c&l--------------------------------"
- broadcast "&6&l%death message%"
- broadcast "&c&l--------------------------------"
- set death message to ""
- on join:
- {option::JoinAnnounce} is true
- set join message to ""
- broadcast "&l&4<<&3&l%player% joined S&Q&l&4>>"
- on death of player:
- {option::KillboardClear} is true
- command "/scoreboard players reset %victim%"
- on death of player:
- {option::DeathCoords} is true
- {option::DeathMessages} is true
- broadcast "{@Pre} %victim% died at %victim's location%"
- #========================#
- #======MiscCommands======#
- #========================#
- command /givehead <text>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/givehead <player>"
- description: "Gives you a head of the specified player."
- executable by: players
- trigger:
- make player execute command "/i 397:3 1 player:%arg 1%"
- message "{@Pre} Received the head of %arg 1%" to the player
- command /tphere <player>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Teleports the specified player to your location."
- usage: "/tphere <player>"
- executable by: players
- trigger:
- teleport (arg 1) to (command sender)
- message "{@PreMess} %arg 1% was teleported to your location!"
- message "{@PreMess} %command sender% teleported you to them!" to arg 1
- command /cxp [<player>]:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Clears all experience from everyone online, unless a player is specified."
- usage: "/cxp [player]"
- trigger:
- arg 1 is set:
- execute console command "/xp -24791L %arg 1%"
- message "{@PreMess} &2Your experience has been cleared!" to arg 1
- stop trigger
- loop all players:
- execute console command "/xp -24791L %loop-player%"
- message "{@PreMess} Your experience has been cleared!" to loop-player
- command /y <text>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Works the same as /broadcast, but with HostEssentials labelling and colors. Also is a shorter command."
- usage: "/y <message>"
- trigger:
- loop all players:
- if loop-player has permission "{@OpPerm}":
- message "{@PreImpo} %arg 1% &3- %player%" to loop-player
- else:
- message "{@PreImpo} %arg 1%" to loop-player
- command /kickuhc:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/kickuhc"
- trigger:
- loop all players:
- if loop-player does not have permission "{@OpPerm}":
- kick loop-player due to "{@PreMess} Join Back Later!"
- command /h [<player>]:
- executable by: players
- trigger:
- arg 1 is not set:
- message "{@Pre} Your health is %health of player*10% percent." to the player
- stop trigger
- message "{@Pre} %arg 1%'s health is %health of arg 1*10% percent." to the player
- on respawn:
- wait 1 tick
- execute console command "/xp -24761L %player%"
- #========================#
- #========MuteChat========#
- #========================#
- command /mutechat:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Mutes all players that are not ops."
- usage: "/mutechat"
- trigger:
- if {mute.chat} is true:
- set {mute.chat} to false
- broadcast "{@Pre} &6All players Unmuted!"
- stop trigger
- else:
- set {mute.chat} to true
- broadcast "{@Pre} &6All players have been muted so that the admins talk!"
- stop trigger
- command /mutehelpop:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Turns off /helpop"
- usage: "/mutechat"
- trigger:
- if {mute.helpop} is true:
- set {mute.helpop} to false
- broadcast "{@Pre} Helpop Enabled!"
- stop trigger
- else:
- set {mute.helpop} to true
- broadcast "{@Pre} Helpop Disabled!"
- stop trigger
- on chat:
- {mute.chat} is true
- player is not op
- cancel event
- message "{@PreMess} Chat is disabled!" to the player
- on command "/helpop":
- if {mute.helpop} is true:
- player is not op
- cancel event
- message "{@PreMess} /helpop is disabled!" to the player
- else:
- player is not op
- message "{@PreMess} Helpop Successfuly Delivered. Do not spam."
- command "/playsound %command sender% note.pling"
- #========================#
- #========SpamBot=========#
- #========================#
- on chat:
- player is not an op
- {spambot.enabled} is true
- {spambot.timer::%player%} is set:
- difference between {spambot.timer::%player%} and now is less than 1 second:
- cancel event
- message "{@PreMess} Stop Spamming!" to the player
- set {spambot.timer::%player%} to now
- command /spambot <text>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/spambot <on:off>"
- trigger:
- if arg 1 is "on":
- if {spambot.enabled} is not true:
- set {spambot.enabled} to true
- broadcast "{@Pre} SpamBot Enabled!"
- else:
- message "{@PreMess} SpamBot is already enabled!"
- else if arg 1 is "off":
- if {spambot.enabled} is not false:
- set {spambot.enabled} to false
- broadcast "{@Pre} SpamBot Disabled!"
- else:
- message "{@PreMess} SpamBot is already disabled!"
- #========================#
- #=========Perma==========#
- #========================#
- command /perma <text> [<world>]:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/perma <day:night:off> <world>"
- trigger:
- if arg 2 is set:
- if arg 1 is "off":
- delete {perma.%arg 2%}
- broadcast "{@Pre} &2Perma off in world %arg 2%!"
- else if arg 1 is "day":
- set {perma.%arg 2%} to "day"
- broadcast "{@Pre} &2Permaday on in world %arg 2%!"
- command sender command "/butcher"
- set time in (arg 2) to 9:00
- else if arg 1 is "night":
- set {perma.%arg 2%} to "night"
- broadcast "{@Pre} &2Permaday on in world %arg 2%!"
- set time in (arg 2) to 9:00
- else:
- loop all worlds:
- if arg 1 is "off":
- delete {perma.%loop-world%}
- else if arg 1 is "day":
- set {perma.%loop-world%} to "day"
- set time in loop-world to 09:00
- command sender command "/butcher"
- else if arg 1 is "night":
- set {perma.%loop-world%} to "night"
- set time in loop-world to 21:00
- if arg 1 is "off":
- broadcast "{@Pre} &2Perma off in all worlds!"
- else:
- broadcast "{@Pre} &2Perma%arg 1% on in all worlds!"
- every 5 minutes:
- loop all worlds:
- if {perma.%loop-world%} is "day":
- set time in loop-world to 9:00
- else if {perma.%loop-world%} is "night":
- set time in loop-world to 21:00
- #========================#
- #======UHCTeamSetup======#
- #========================#
- command /setup-teams:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Setup teams and colors for UHC."
- trigger:
- execute console command "/uhccreateteam UHC1"
- execute console command "/uhccreateteam UHC2"
- execute console command "/uhccreateteam UHC3"
- execute console command "/uhccreateteam UHC4"
- execute console command "/uhccreateteam UHC5"
- execute console command "/uhccreateteam UHC6"
- execute console command "/uhccreateteam UHC7"
- execute console command "/uhccreateteam UHC8"
- execute console command "/uhccreateteam UHC9"
- execute console command "/uhccreateteam UHC10"
- execute console command "/uhccreateteam UHC11"
- execute console command "/uhccreateteam UHC12"
- execute console command "/uhccreateteam UHC13"
- execute console command "/uhccreateteam UHC14"
- execute console command "/uhccreateteam UHC15"
- execute console command "/uhccreateteam UHC16"
- execute console command "/uhccreateteam UHC17"
- execute console command "/uhccreateteam UHC18"
- execute console command "/uhccreateteam UHC19"
- execute console command "/uhccreateteam UHC20"
- execute console command "/uhccreateteam UHC21"
- execute console command "/uhccreateteam UHC22"
- execute console command "/uhccreateteam UHC23"
- execute console command "/uhccreateteam UHC24"
- execute console command "/uhccreateteam UHC25"
- execute console command "/uhccreateteam UHC26"
- execute console command "/uhccreateteam UHC27"
- execute console command "/uhccreateteam UHC28"
- execute console command "/uhccreateteam UHC29"
- execute console command "/uhccreateteam UHC30"
- execute console command "/uhccreateteam UHCOP"
- execute console command "/uhccreateteam UHC31"
- execute console command "/uhccreateteam UHC32"
- execute console command "/uhccreateteam UHC33"
- execute console command "/uhccreateteam UHC34"
- execute console command "/uhccreateteam UHC35"
- execute console command "/uhccreateteam UHC36"
- execute console command "/uhccreateteam UHC37"
- execute console command "/uhccreateteam UHC38"
- execute console command "/uhccreateteam UHC39"
- execute console command "/scoreboard teams option UHC1 color aqua"
- execute console command "/scoreboard teams option UHC2 color black"
- execute console command "/scoreboard teams option UHC3 color blue"
- execute console command "/scoreboard teams option UHC4 color bold"
- execute console command "/scoreboard teams option UHC5 color dark_aqua"
- execute console command "/scoreboard teams option UHC6 color dark_blue"
- execute console command "/scoreboard teams option UHC7 color dark_gray"
- execute console command "/scoreboard teams option UHC8 color dark_green"
- execute console command "/scoreboard teams option UHC9 color dark_purple"
- execute console command "/scoreboard teams option UHC10 color dark_red"
- execute console command "/scoreboard teams option UHC11 color gold"
- execute console command "/scoreboard teams option UHC12 color gray"
- execute console command "/scoreboard teams option UHC13 color green"
- execute console command "/scoreboard teams option UHC14 color italic"
- execute console command "/scoreboard teams option UHC15 color light_purple"
- execute console command "/scoreboard teams option UHC16 color red"
- execute console command "/scoreboard teams option UHC17 color strikethrough"
- execute console command "/scoreboard teams option UHC18 color underline"
- execute console command "/scoreboard teams option UHC19 color yellow"
- execute console command "/scoreboard teams option UHC20 color white"
- execute console command "/scoreboard teams option UHC21 color aqua"
- execute console command "/scoreboard teams option UHC22 color black"
- execute console command "/scoreboard teams option UHC23 color blue"
- execute console command "/scoreboard teams option UHC24 color dark_green"
- execute console command "/scoreboard teams option UHC25 color dark_aqua"
- execute console command "/scoreboard teams option UHC26 color dark_blue"
- execute console command "/scoreboard teams option UHC27 color dark_gray"
- execute console command "/scoreboard teams option UHC28 color gold"
- execute console command "/scoreboard teams option UHC29 color dark_purple"
- execute console command "/scoreboard teams option UHC30 color dark_red"
- execute console command "/scoreboard teams option UHC31 color gray"
- execute console command "/scoreboard teams option UHC32 color green"
- execute console command "/italic UHC21"
- execute console command "/italic UHC22"
- execute console command "/italic UHC23"
- execute console command "/italic UHC24"
- execute console command "/italic UHC25"
- execute console command "/italic UHC26"
- execute console command "/italic UHC27"
- execute console command "/italic UHC28"
- execute console command "/italic UHC29"
- execute console command "/italic UHC30"
- execute console command "/underline UHC21"
- execute console command "/underline UHC22"
- execute console command "/underline UHC23"
- execute console command "/underline UHC24"
- execute console command "/underline UHC25"
- execute console command "/underline UHC26"
- execute console command "/underline UHC27"
- execute console command "/underline UHC28"
- execute console command "/underline UHC29"
- execute console command "/underline UHC30"
- broadcast "{@Pre} UHC teams have been set up!"
- #========================#
- #========Killboard=======#
- #========================#
- command /killboard <text>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/killboard"
- trigger:
- if arg 1 is "on":
- if {killboard.enabled} is not true:
- set {killboard.enabled} to true
- set {killboard.temp} to a random integer between 1 and 1000
- command "/scoreboard objectives add kb%{killboard.temp}% playerKillCount Kills"
- execute console command "/scoreboard objectives setdisplay sidebar kb%{killboard.temp}%"
- broadcast "{@Pre} Killboard enabled!"
- else:
- message "{@PreMess} There is already a killboard enabled! If you cannot see one, you need to delete the scoreboard.dat files."
- else if arg 1 is "off":
- if {killboard.enabled} is true:
- set {killboard.enabled} to false
- command "/scoreboard objectives remove kb%{killboard.temp}%"
- command "/scoreboard objectives setdisplay sidebar off"
- delete {killboard.temp}
- broadcast "{@Pre} Killboard disabled!"
- else:
- message "{@PreMess} There is no killboard! If you can see one, you need to delete the scoreboard.dat files."
- #========================#
- #=====CommandDisable=====#
- #========================#
- on command "/jointeam":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/uhcjointeam":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/ultrahardcore:jointeam":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/ultrahardcore:uhcjointeam":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/bukkit:me":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/bukkit:kill":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/msg **":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/bukkit:msg":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- on command "/bukkit:w":
- player is not op
- cancel event
- message "{@PreMess} Nice try!"
- #========================#
- #=========RunUHC=========#
- #========================#
- command /startuhc <integer> <integer>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/startuhc <time until PVP in minutes> <time until meetup in minutes>"
- executable by: players
- trigger:
- if arg 1 is less than 0:
- message "{@PreMess} Times cannot be negative!" to the player
- stop trigger
- if arg 2 is less than 0:
- message "{@PreMess} Times cannot be negative!" to the player
- stop trigger
- broadcast "{@Pre} Game Starting in: 5"
- command "/playsoundall random.bow"
- wait 1 second
- broadcast "{@Pre} Game Starting in: 4"
- command "/playsoundall random.bow"
- wait 1 second
- broadcast "{@Pre} Game Starting in: 3"
- command "/playsoundall random.bow"
- wait 1 second
- broadcast "{@Pre} Game Starting in: 2"
- command "/playsoundall random.bow"
- wait 1 second
- execute console command "/freeze"
- broadcast "{@Pre} Game Starting in: 1"
- command "/playsoundall random.bow"
- wait 1 second
- broadcast "{@Pre} Game Starting Now!"
- command "/playsoundall random.levelup"
- command "/unfreeze"
- command "/killboard"
- command "/pvp global off"
- command "/heal *"
- command "/feed *"
- loop 20 times:
- command sender command "/butcher"
- command "/time set day"
- command "/bancycle"
- set {_pvpseconds} to arg 1*60
- if arg 2 is not 0:
- set {_meetup} to (arg 2-arg 1)*60
- if arg 1 is not 0:
- execute console command "/timer %{_pvpseconds}% PVP"
- loop 20 times:
- make player execute command "/butcher"
- loop ({_pvpseconds}+1)*20 times:
- wait 1 tick
- broadcast "{@Pre} PVP ON!"
- execute console command "/pvp global on"
- command "/playsoundall random.levelup"
- if arg 2 is not 0:
- execute console command "/timer %{_meetup}% Meetup"
- loop ({_meetup}+1)*20 times:
- wait 1 tick
- broadcast "{@Pre} Meetup is now! Go to 0,0 Immediately! Only stop for a fight!"
- execute console command "/timer 9999999 MEETUP IS NOW"
- command "/playsoundall random.levelup"
- command /unfreeze:
- permission: {@OpPerm}
- permission message: {@PermMess}
- trigger:
- loop all players:
- command "/effect %loop-player% clear"
- #========================#
- #===FakeJoin/FakeLeave===#
- #========================#
- command /fakejoin <text>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/fakejoin <player>"
- trigger:
- broadcast "%arg 1% joined the game"
- set {_player} to arg 1 parsed as player
- parse error is set:
- stop trigger
- command "/reappear %{_player}%"
- command /fakeleave <player>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/fakeleave <player>"
- trigger:
- broadcast "%arg 1% left the game"
- command "/v %arg 1%"
- command "/vanflag -chat %arg 1%"
- #========================#
- #=======Spectators=======#
- #========================#
- command /setspec <text> [<player>]:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/setspec <on:off> [player]"
- description: "Sets a player as a spectator"
- trigger:
- if arg 2 is not set:
- set {_specplayer} to (command sender)
- else:
- set {_specplayer} to (arg 2)
- arg 1 is "on":
- set ({_specplayer})'s gamemode to creative
- command "/vanish %{_specplayer}%"
- teleport ({_specplayer}) to (command sender)
- command "/vanflag %{_specplayer}% +chat"
- command "/jointeam UHCOP %{_specplayer}%"
- set {SpecPerm::%{_specplayer}%} to true
- message "{@PreMess} You are now a spectator!" to ({_specplayer})
- message "{@PreMess} Use /tpto <player>, or /tpcoords <X> <Y> <Z> to teleport!" to ({_specplayer})
- give ({_specplayer}) a compass
- command "/effect %{_specplayer}% 16 1000000 0 true"
- command "/effect %{_specplayer}% 1 1000000 1 true"
- message "{@PreMess} You gave %{_specplayer}% spectator powers!"
- stop trigger
- arg 1 is "off":
- set ({_specplayer})'s gamemode to survival
- execute console command "/reappear %arg 1%"
- ({_specplayer}) command "/spawn"
- ({_specplayer}) command "/leaveteam"
- remove a compass from ({_specplayer})'s inventory
- set {SpecPerm::%{_specplayer}%} to false
- command "/effect %{_specplayer}% 16 0 10"
- command "/effect %{_specplayer}% 1 0 10"
- message "{@PreMess} You are no longer a spectator!" to ({_specplayer})
- message "{@PreMess} You removed %{_specplayer}%'s spectator powers!" to command sender
- stop trigger
- message "{@PreMess} The second argument is not valid!" to the player
- command /speclist:
- trigger:
- message "{@PreImpo} Current Online Spectators"
- message "&6------------------------"
- loop all players:
- {SpecPerm::%loop-player%} is true
- message "&c%loop-player%"
- command /specreset:
- permission: {@OpPerm}
- permission message: {@PermMess}
- trigger:
- loop {SpecPerm::*}:
- delete {SpecPerm::%loop-index%}
- message "{@PreMess} Spectator Vars Reset!"
- command /tpcoords <integer> <integer> <integer>:
- description: "Teleports you to the specified coordinates."
- usage: "/tpcoords <X> <Y> <Z>"
- executable by: players
- trigger:
- {SpecPerm::%player%} is true:
- teleport (command sender) to (the location at (arg 1), (arg 2), (arg 3))
- message "{@Pre} You have been teleported to %arg 1%, %arg 2%, %arg 3%" to the player
- stop trigger
- message "{@NotSpecMess}" to the player
- command /tpto [<player>]:
- description: "Teleports you to the specified player. If no player is specified, teleports you to a random player"
- usage: "/tpto <player> (player is random if not specified}"
- executable by: players
- trigger:
- {SpecPerm::%player%} is true:
- if arg 1 is not set:
- set {_rplayer} to (a random player out of all players)
- else:
- set {_rplayer} to arg 1
- teleport (command sender) to {_rplayer}
- message "{@PreMess} You have been teleported to %{_rplayer}%" to the player
- stop trigger
- message "{@NotSpecMess}" to the player
- on join:
- {SpecPerm::%player%} is not set
- set {SpecPerm::%player%} to false
- #========================#
- #======API Commands======#
- #========================#
- command /playsoundfrom <player> <text> [<number>]:
- permission: operator
- usage: "/playsoundfrom <player> <sound> [pitch]"
- trigger:
- set {_locx} to the x coordinate of arg 1
- set {_locy} to the y coordinate of arg 1
- set {_locz} to the z coordinate of arg 1
- if arg 3 is set:
- loop all players:
- command "/playsound %arg 2% %loop-player% %{_locx}% %{_locy}% %{_locz}% 1 %arg 3%"
- else:
- loop all players:
- command "/playsound %arg 2% %loop-player% %{_locx}% %{_locy}% %{_locz}%"
- command /playsoundall <text> [<number>]:
- permission: operator
- usage: "/playsoundall <sound> [pitch]"
- trigger:
- loop all players:
- if arg 2 is not set:
- command "/playsound %arg 1% %loop-player%"
- else:
- set {_xloc} to loop-player's x coordinate
- set {_yloc} to loop-player's y coordinate
- set {_zloc} to loop-player's z coordinate
- command "/playsound %arg 1% %loop-player% %{_xloc}% %{_yloc}% %{_zloc}% 1 %arg 2%"
- #Login
- variables:
- {logincount} = 0
- on login:
- add 1 to {logincount}
- command /logincount:
- description: Find out how many people have ever logged into this server
- trigger:
- message "Since its beginnings <green>%{logincount}%<reset> people have logged into this server"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement