-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDexLive.sk
86 lines (80 loc) · 3.33 KB
/
DexLive.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Made By Dex
# https://www.spigotmc.org/members/honestlydex.1235803/
options:
prefix: &8[&dDex&cLive&8]
sprefix: &8[&dServerNameHere&8]
SoundBC: BLOCK_NOTE_BLOCK_PLING
SoundBC-Volume: 1
SoundBC-Pitch: 2
command /live:
aliases: /dexlive, /livedex, /ld
cooldown: 2 minutes
cooldown message: {@prefix} &cPlease wait to use this command again!
permission: dexlive.live
permission message: {@prefix} &cInvalid Permissions!
trigger:
send " " to player
send "&a&m------»&r &dDex&cLive &a&m«------" to player
send " " to player
send " &7Click on one of the options:" to player
send " <tooltip:&6Click to choose &fYou&cTube><run command:/ytlive>&f&lYou&c&lTube<reset> <tooltip:&6Click to choose &dTwitch><run command:/twitchlive>&d&lTwitch<reset>" to player
send " " to player
send "&a&m------»&r &dDex&cLive &a&m«------" to player
# Twitch Command Hook
command /twitchlive:
cooldown: 2 minutes
cooldown message: {@prefix} &cPlease wait to use this command again!
permission: dexlive.twitch
permission message: {@prefix} &cInvalid Permissions!
trigger:
set {twitchuser::%player's uuid%} to true
send " " to player
send "&a&m------»&r &dDex&cLive &a&m«------" to player
send " " to player
send " &7Please type your &dTwitch &7Username in chat." to player
send " &7Example: honestlydex" to player
send " " to player
send "&a&m------»&r &dTwitch &a&m«------" to player
# YouTube Command Hook
command /ytlive:
cooldown: 2 minutes
cooldown message: {@prefix} &cPlease wait to use this command again!
permission: dexlive.yt
permission message: {@prefix} &cInvalid Permissions!
trigger:
set {ytuser::%player's uuid%} to true
send " " to player
send "&a&m------»&r &dDex&cLive &a&m«------" to player
send " " to player
send " &7Please type your &fYou&cTube &7Channel ID in chat." to player
send " &7Example: UC3zWyHG6lFjpVZXbcRPzzag" to player
send " " to player
send "&a&m------»&r &fYou&cTube &a&m«------" to player
# Twitch Chat Hook
on chat:
if {twitchuser::%player's uuid%} is set:
cancel event
delete {twitchuser::%player's uuid%}
set {_t} to message
send " " to all players
send "&a&m---------------»&r &c%player% &cIs Live! &a&m«---------------" to all players
send " " to all players
send formatted " &cOpen their &dTwitch &cStream <tooltip:&6Click to open &c%player%'s &6Stream><link:https://twitch.tv/%{_t}%>&e&nhere." to all players
send " " to all players
send "&a&m---------------»&r &c%player% &cIs Live! &a&m«---------------" to all players
send " " to all players
play sound "{@SoundBC}" with volume {@SoundBC-Volume} and pitch {@SoundBC-Pitch} to all players
# YouTube Chat Hook
on chat:
if {ytuser::%player's uuid%} is set:
cancel event
delete {ytuser::%player's uuid%}
set {_y} to message
send " " to all players
send "&a&m---------------»&r &c%player% &cIs Live! &a&m«---------------" to all players
send " " to all players
send formatted " &cOpen their &fYou&cTube &cStream <tooltip:&6Click to open &c%player%'s &6Stream><link:https://youtube.com/channel/%{_y}%>&e&nhere." to all players
send " " to all players
send "&a&m---------------»&r &c%player% &cIs Live! &a&m«---------------" to all players
send " " to all players
play sound "{@SoundBC}" with volume {@SoundBC-Volume} and pitch {@SoundBC-Pitch} to all players