-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommandspy.sk
More file actions
24 lines (23 loc) · 730 Bytes
/
commandspy.sk
File metadata and controls
24 lines (23 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
command /spy:
permission: skript.spy
trigger:
if {spy::%uuid of player%} is not set:
set {spy::%uuid of player%} to true
send ""
send "&9&lSpy &6» &aSpy enabled!"
send ""
else:
delete {spy::%uuid of player%}
send ""
send "&9&lSpy &6» &cSpy disabled!"
send ""
on command:
if executor is console:
loop all players where [input has permission "skript.spy"]:
{spy::%uuid of loop-player%} is set
send "&9&lSpy &6» &6Console used &b/%full command%" to loop-player
stop
executor doesn't have permission "skript.spy"
loop all players where [input has permission "skript.spy"]:
{spy::%uuid of loop-player%} is set
send "&5&lSpy &6» &6%executor% &6used &b/%full command%" to loop-player