Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /twitch:
- aliases: /streamer, /stream
- permission: server.twitch
- permission message: &8(&c!&8) &7You can not use this command!
- trigger:
- if {ttp.%player%} is not set:
- set {ttp.%player%} to "&a&lOFF"
- open chest with 1 rows named "&5&lTWITCH &8Gui" to player
- wait 1 tick
- format slot 0 of player with black stained glass pane named "&f" with lore "&5Developed By: &770sOn7" to be unstealable
- format slot 1 of player with anvil named "&5&lSTREAM &7Broadcast" with lore "&7Click to broadcast your stream!||&7Timer: %{ttp.%player%}%" to close then run [make console execute command "/tbp %player%"]
- format slot 8 of player with black stained glass pane named "&f" with lore "&5Developed By: &770sOn7" to be unstealable
- command /tbp <player>:
- permission: server.tbp
- permission message: &fUnknow command. Type "/help" for help.
- trigger:
- if {tst.%arg-1%} is not set:
- send "&5• &7Post your &5Twitch Link &7in chat! Type &5Cancel &7to cancel!" to arg 1
- set {tbc.%arg-1%} to true
- stop
- if {tst.%arg-1%} is true:
- send "&5• &7Your &5Twitch Timer &7is still on!" to arg 1
- stop
- on chat:
- if {tbc.%player%} is true:
- if message is "cancel":
- delete {tbc.%player%}
- send "&f%message%"
- send "&5• &7You have canceled &7your &5Twitch Annoucing&7!"
- cancel event
- if message is not "cancel":
- send "&f%message%"
- set {tbm.%player%} to "%message%"
- send "&5• &7Are you sure you want to broadcast?"
- send "&5• &7Type &5Yes &7or &5No"
- set {tbc2.%player%} to true
- delete {tbc.%player%}
- cancel event
- if {tbc2.%player%} is true:
- if message is "yes":
- if player doesn't have permission "server.twitch.bypass":
- cancel event
- broadcast ""
- broadcast "&8(&5&lTWITCH ANNOUNCEMENT&8)"
- broadcast " &8(&5Streamer&8) &7%player%"
- broadcast " &8(&5Link&8) &7%{tbm.%player%}%"
- broadcast ""
- set {tst.%player%} to true
- set {ttp.%player%} to "&4&lON"
- set {tbc.%player%} to true
- delete {tbc2.%player%}
- send "&5• &7You'll have to wait &510 Minutes &7to advertise again!"
- wait 10 minutes
- send "&5• &7Your &5Announce Timer &7is not off!"
- set {ttp.%player%} to "&a&lOFF"
- delete {tst.%player%}
- delete {tbm.%player%}
- delete {tbc2.%player%}
- if player has permission "server.twtich.bypass":
- cancel event
- broadcast ""
- broadcast "&8(&5&lTWITCH ANNOUNCEMENT&8)"
- broadcast " &8(&5Streamer&8) &7%sender%"
- broadcast " &8(&5Link&8) &7%{tbm.%player%}%"
- broadcast " "
- if message is "no":
- cancel event
- send "&5• &7You have canceled &7your &5Twitch Annoucing&7!"
- delete {tbc2.%player%}
- delete {tbc.%player%}
Add Comment
Please, Sign In to add comment