-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinvsee.sk
27 lines (24 loc) · 845 Bytes
/
invsee.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
options:
p: skript.admin # Permission required for the command
pm: &cYou don't have access to that command. # Message sent if player's permission is insufficient
failed: &cPlayer is offline. # Message sent if arg-1 is offline
command /openinv [<offlineplayer>]:
aliases: /invsee
permission: {@p}
permission message: {@pm}
trigger:
set {_p} to arg 1 ? player
if {_p} is offline:
send "{@failed}"
else:
open {_p}'s inventory for player
command /openender [<offlineplayer>]:
aliases: /endersee
permission: {@p}
permission message: {@pm}
trigger:
set {_p} to arg 1 ? player
if {_p} is offline:
send "{@failed}"
else:
open ender chest of {_p} to player