Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command event [<text>]:
- permission: sk.event
- trigger:
- if arg-1 is not set:
- send "&cYou did not specify a Event Name!"
- stop
- else:
- set {_event.name} to arg-1
- set {_event.name.underscore} to {_event.name}
- replace all " " with "_" in {_event.name.underscore}
- if {event::%{_event.name.underscore}%::name} is not set:
- send "&7Created Event &e%arg-1%&7!"
- if {event.count} is set:
- add 1 to {event.count}
- else:
- set {event.count} to 1
- set {event::count.%{event.count}%} to "%{_event.name.underscore}%"
- set {event::count.%{event.count}%.name} to "%{_event.name}%"
- set {event::%{_event.name.underscore}%::name} to arg-1
- set {event::%{_event.name.underscore}%::world} to player's world
- set {event::%{_event.name.underscore}%::location} to player's location
- set {event::%{_event.name.underscore}%::gamemode} to "Survival"
- set {event::%{_event.name.underscore}%::location.pos1} to "Not Set"
- set {event::%{_event.name.underscore}%::location.pos2} to "Not Set"
- set {event::%{_event.name.underscore}%::status} to "Stop"
- set {event::%{_event.name.underscore}%::slot} to 100
- set {event::%{_event.name.underscore}%::count} to {event.count}
- set {event::%{_event.name.underscore}%::time} to now
- set {event::%{_event.name.underscore}%::host} to player
- send "&7Opening &e%arg-1%&e Event GUI&7..."
- create gui with id "EVENT-1" with virtual chest with 5 rows named "&0&lEVENT &8- &r%{_event.name}%":
- make gui slot 4 with book and quill with name "&6&lEVENT INFORMATION" with lore "", "&7&nEvent Name&7: &f%{event::%{_event.name.underscore}%::name}%", "&7&nID&7: &f%{_event.name.underscore}%", "&7&nStatus&7: &f%{event::%{_event.name.underscore}%::status}%", "", and "&eClick Here to &e&nDelete&e Event!":
- close player's inventory
- send "&7Removed Event &e%{event::%{_event.name.underscore}%::name}%&7!"
- delete {event::count.%{event::%{_event.name.underscore}%::count}%}
- delete {event::count.%{_event.name.underscore}%::count}
- delete {event::count.%{_event.name.underscore}%::count.name}
- delete {event::%{_event.name.underscore}%::name}
- delete {event::%{_event.name.underscore}%::world}
- delete {event::%{_event.name.underscore}%::location}
- delete {event::%{_event.name.underscore}%::gamemode}
- delete {event::%{_event.name.underscore}%::location.pos1}
- delete {event::%{_event.name.underscore}%::location.pos2}
- delete {event::%{_event.name.underscore}%::status}
- delete {event::%{_event.name.underscore}%::slot}
- delete {event::%{_event.name.underscore}%}
- delete {event::%{_event.name.underscore}%::time}
- delete {event::%{_event.name.underscore}%::host}
- delete {event::%{_event.name.underscore}%::*}
- execute console command "region remove portal-%{_event.name.underscore}% -w lobby"
- make gui slot 20 with glass block with name "&f&lEVENT LOCATION" with lore "", "&7&nCurrent World&7: &f%{event::%{_event.name.underscore}%::world}%", "&7&nCurrent Location&7: &f%{event::%{_event.name.underscore}%::location}%", "", and "&eClick Here to &e&nChange&e Location!":
- close player's inventory
- send "&7Changed Location to &e%location of player%&7 in world &e%world of player%&7!"
- set {event::%{_event.name.underscore}%::world} to player's world
- set {event::%{_event.name.underscore}%::location} to player's location
- make gui slot 22 with glowing stick with name "&d&lPORTAL STICK" with lore "", "&7Position ##1: &f%{event::%{_event.name.underscore}%::location.pos1}%", "&7Position ##2: &f%{event::%{_event.name.underscore}%::location.pos2}%", "", and "&eClick Here to &e&nReceive&e the Wand!":
- give player 1 stick with name "%{event::%{_event.name.underscore}%::name}%"
- send "&7Given &dPortal Stick &8(%{event::%{_event.name.underscore}%::name}%&8)"
- close player's inventory
- make gui slot 24 with player head with name "&e&lPLAYER GAMEMODE" with lore "", "&7&nGamemode&7: &f%{event::%{_event.name.underscore}%::gamemode}%", "", and "&eClick Here to &e&nChange&e the Default Gamemode!":
- close player's inventory
- execute player command "-eventgamemode %{_event.name.underscore}%"
- make gui slot 38 with redstone block with name "&c&lSTOP EVENT" with lore "", "&7Set to this Mode before the Event to stop", "&7players from joining the Event World!", "", and "&eClick Here to &e&nStop&e the Event!":
- send "&7Set Event &e%{event::%{_event.name.underscore}%::name}%&7 to &c&lSTOPPED&7!"
- set {event::%{_event.name.underscore}%::status} to "Stop"
- close player's inventory
- make gui slot 40 with emerald block with name "&a&lSTART EVENT" with lore "", "&7Set to this Mode during the Events to allow", "&7players to join the Event World!", "", and "&eClick Here to &e&nStart&e the Event!":
- send "&7Set Event &e%{event::%{_event.name.underscore}%::name}%&7 to &a&lSTARTED&7!"
- set {event::%{_event.name.underscore}%::status} to "Start"
- close player's inventory
- make gui slot 42 with diamond block with name "&b&lCOMPLETE EVENT" with lore "", "&7Set to this Mode after the Event to allow", "&7players to go back and view the", "&7Event World!", "", and "&eClick Here to &e&nComplete&e the Event!":
- send "&7Set Event &e%{event::%{_event.name.underscore}%::name}%&7 to &b&lCOMPLETED&7!"
- set {event::%{_event.name.underscore}%::status} to "Complete"
- close player's inventory
- open gui "EVENT-1" to player
- command -eventgamemode [<text>]:
- trigger:
- set {_underscore.name} to arg-1
- set {_name} to arg-1
- replace all "_" with " " in {_name}
- create gui with id "GAMEMODE-1" with virtual hopper named "&0&lEVENT &8- &r%{_name}%":
- make gui slot 0 with green stained glass pane with name "&2&lCREATIVE MODE" with lore "":
- set {event::%{_underscore.name}%::gamemode} to "Creative"
- send "&7Set Event &e%{event::%{_underscore.name}%::name}%&7 to &2Creative Mode&7!"
- close player's inventory
- make gui slot 1 with lime stained glass pane with name "&a&lSURVIVAL MODE" with lore "":
- send "&7Set Event &e%{event::%{_underscore.name}%::name}%&7 to &aSurvival Mode&7!"
- set {event::%{_underscore.name}%::gamemode} to "Survival"
- close player's inventory
- make gui slot 2 with orange stained glass pane with name "&6&lADVENTURE MODE" with lore "":
- send "&7Set Event &e%{event::%{_underscore.name}%::name}%&7 to &6Adventure Mode&7!"
- set {event::%{_underscore.name}%::gamemode} to "Adventure"
- close player's inventory
- make gui slot 3 with yellow stained glass pane with name "&e&lSPECTATOR MODE" with lore "":
- send "&7Set Event &e%{event::%{_underscore.name}%::name}%&7 to &eSpectator Mode&7!"
- set {event::%{_underscore.name}%::gamemode} to "Spectator"
- close player's inventory
- make gui slot 4 with barrier with name "&c&lCLOSE" with lore "":
- close player's inventory
- open gui "GAMEMODE-1" to player
- on right click:
- if player's tool is stick:
- set {_item} to name of player's tool
- replace all " " with "_" in {_item}
- if {event::%{_item}%::name} is set:
- cancel event
- set {event::%{_item}%::location.pos1} to location of clicked block
- set {_location.pos1} to "%location of clicked block%"
- replace all "x:" with "" in {_location.pos1}
- replace all "y:" with "" in {_location.pos1}
- replace all "z:" with "" in {_location.pos1}
- replace all " " with "" in {_location.pos1}
- replace all ".5" with "" in {_location.pos1}
- execute player command "//pos1 %{_location.pos1}%"
- send "&dType ""Done"" in chat if you have finished selecting points. (Make sure to hold the Portal Stick!)"
- on block break:
- if player's tool is stick:
- set {_item} to name of player's tool
- replace all " " with "_" in {_item}
- if {event::%{_item}%::name} is set:
- cancel event
- set {event::%{_item}%::location.pos2} to location of event-block
- set {_location.pos2} to "%location of event-block%"
- replace all "x:" with "" in {_location.pos2}
- replace all "y:" with "" in {_location.pos2}
- replace all "z:" with "" in {_location.pos2}
- replace all " " with "" in {_location.pos2}
- replace all ".5" with "" in {_location.pos2}
- execute player command "//pos2 %{_location.pos2}%"
- send "&dType ""Done"" in chat if you have finished selecting points. (Make sure to hold the Portal Stick!)"
- on chat:
- if message = "done":
- if player's tool is a stick:
- cancel event
- set {_item} to name of player's tool
- replace all " " with "_" in {_item}
- if {event::%{_item}%::name} is set:
- execute player command "region create portal-%{_item}%"
- else:
- send "&cYou are not holding a valid portal stick."
- on region enter:
- if "%region%" contains "portal-":
- set {_region.name} to "%region%"
- set {_region::*} to {_region.name} split at " in"
- replace all "portal-" with "" in {_region::1}
- if {event::%{_region::1}%::status} is "stop":
- if player is op:
- teleport player to {event::%{_region::1}%::location}
- set player's gamemode to creative
- send "&c[&4OP&c] &7Connecting you to the Event!"
- else:
- send "&7Could not connect you to Event!"
- if {event::%{_region::1}%::status} is "start":
- teleport player to {event::%{_region::1}%::location}
- if {event::%{_region::1}%::gamemode} = "creative":
- set player's gamemode to creative
- if {event::%{_region::1}%::gamemode} = "survival":
- set player's gamemode to survival
- if {event::%{_region::1}%::gamemode} = "spectator":
- set player's gamemode to spectator
- if {event::%{_region::1}%::gamemode} = "adventure":
- set player's gamemode to adventure
- send "&7Connecting you to the Event!"
- send "&aThe Event is live!"
- set {event::%{_region::1}%::playerstats::%player%} to "completed"
- if {event::%{_region::1}%::status} is "complete":
- teleport player to {event::%{_region::1}%::location}
- set player's gamemode to spectator
- send "&7Connecting you to the Event!"
- send "&cThe Event has concluded..."
- on walking on andesite:
- if "%region at player%" contains "spawn":
- apply potion of speed 3 to the player for 2 seconds
- send actionbar "&7You have been given &eSpeed x3 &7step off &8Andesite &7to Remove!" to player
- on walking on quartz block:
- if "%region at player%" contains "spawn":
- remove speed from the player
- on drop:
- if event-item is knowledge book:
- if name of event-item = "&a&lMY ACHIEVEMENTS":
- cancel event
- on right click with knowledge book:
- cancel event
- if name of player's tool = "&a&lMY ACHIEVEMENTS":
- create gui with id "ACHIEVEMENTS" with virtual chest with 6 rows named "&0&lACHIEVEMENTS &8- &rEvents"
- send "&7Opening &eACHIEVEMENTS GUI&7..."
- open gui "ACHIEVEMENTS" to player
- clear all gui slots of player
- edit gui "ACHIEVEMENTS":
- clear all gui slots of player
- loop 1000 times:
- add 1 to {_loop}
- if {event::count.%{_loop}%} is set:
- if {event::%{event::count.%{_loop}%}%::playerstats::%player%} is "completed":
- make next gui slot with lime dye with name "&a&l%{event::count.%{event.count}%.name}% &8- &7Event" with lore "&8%{event::%{event::count.%{event.count}%}%::time}%", "", "&7&nHosted by&7: &f%{event::%{event::count.%{event.count}%}%::host}%", "", and "&aYou Partcipated in this Event!"
- else:
- make next gui slot with gray dye with name "&7&l%{event::count.%{event.count}%.name}% &8- &7Event" with lore "&8%{event::%{event::count.%{event.count}%}%::time}%", "", "&7&nHosted by&7: &f%{event::%{event::count.%{event.count}%}%::host}%", "", and "&cYou did not Participate in this Event!"
- on inventory click:
- if clicked item is knowledge book:
- if name of clicked item is "&a&lMY ACHIEVEMENTS":
- cancel event
- on join:
- teleport player to location 85, 10, -5 in world "lobby"
- wait 1 second
- set slot 4 of player's inventory to knowledge book with name "&a&lMY ACHIEVEMENTS" with lore "&7Right-Click to View Event's you went to!"
- command sendallhub:
- permission: sk.sendallhub
- trigger:
- send "&aSending you to Hub!" to all players
- wait 0.5 second
- loop all players:
- teleport the loop-players to location at 85, 10, -5 in world "lobby"
- send "&7Teleporting to &eSpawn&7..." to loop-player
- command sendhub [<offline player>]:
- permission: sk.sendallhub
- trigger:
- if arg-1 is not set:
- send "&c&lError: &7Correct Usage &e/sendhub [player]"
- if arg-1 is set:
- if arg-1 is offline player:
- send "&aSending you to Hub!" to arg-1
- teleport the arg-1 to location at 85, 10, -5 in world "lobby"
- send "&7Teleporting to &eSpawn&7..." to arg-1
- send "&aSending &e%arg-1%&a to Hub!"
- else:
- send "&7That player has never joined!"
- #===============================================================================#
- command spawn:
- aliases: hub, lobby
- trigger:
- teleport the player to location at 85, 10, -5 in world "lobby"
- send "&7Teleporting to &eSpawn&7..." to player
- command help:
- trigger:
- if player is op:
- send formatted "&c&lYOUTUBER&7(&a3&7) &4/<tooltip:&4/event [Event Name]&8- &fCreates an Event!>event<r>&7, &4/<tooltip:&4/sendhub [Player]&8- &fSends a Player to the Server Spawn!>sendhub<r>&7, &4/<tooltip:&4/sendallhub &8- &fSends Every Player to the Server Spawn!>sendallhub<r>"
- send formatted "&8&lSUBSCRIBER&7(&a1&7) &7/<tooltip:&7/spawn &8- &fTeleports you to Spawn!>spawn<r>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement