-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gamemode.sk
84 lines (79 loc) · 2.68 KB
/
gamemode.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
options:
prefix: &3&lGamemode &b&l»
pm: &3&lGamemode &b&l» &4You can't do that!
command /gmc [<player>]:
aliases: creative
permission: gamemode.creative
permission message: {@pm}
trigger:
if argument 1 is not set:
set player's gamemode to creative
message "{@prefix} &7Set gamemode to &8creative" to sender
else:
argument 1 is online
if sender has permission "gamemode.creative.others":
set argument 1's gamemode to creative
message "{@prefix} &7Set &8%arg-1%'s &7gamemode to &8creative" to sender
else:
message "{@pm}" to sender
command /gms [<player>]:
aliases: survival
permission: gamemode.survival
permission message: {@pm}
trigger:
if argument 1 is not set:
set player's gamemode to survival
message "{@prefix} &7Set gamemode to &8survival" to sender
else:
argument 1 is online
if sender has permission "gamemode.survival.others":
set argument 1's gamemode to survival
message "{@prefix} &7Set &8%arg-1%'s &7gamemode to &8survival" to sender
else:
message "{@pm}" to sender
command /gma [<player>]:
aliases: adventure
permission: gamemode.adventure
permission message: {@pm}
trigger:
if argument 1 is not set:
set player's gamemode to adventure
message "{@prefix} &7Set gamemode to &8adventure" to sender
else:
argument 1 is online
if sender has permission "gamemode.adventure.others":
set argument 1's gamemode to adventure
message "{@prefix} &7Set &8%arg-1%'s &7gamemode to &8adventure" to sender
else:
message "{@pm}" to sender
command /gmsp [<player>]:
aliases: spectator
permission: gamemode.spectator
permission message: {@pm}
trigger:
if argument 1 is not set:
set player's gamemode to spectator
message "{@prefix} &7Set gamemode to &8spectator" to sender
else:
argument 1 is online
if sender has permission "gamemode.spectator.others":
set argument 1's gamemode to spectator
message "{@prefix} &7Set &8%arg-1%'s &7gamemode to &8spectator" to sender
else:
message "{@pm}" to sender
command /gamemode:
permission: help.gamemode
permission message: {@pm}
trigger:
send ""
send " &1&l-------------------"
send " &b&lGAMEMODE COMMANDS"
send "&1&l-----------------------------------------"
send "&3/gmc or /creative: &9Sets player's gamemode to creative"
send "&3/gmc or /survival: &9Sets player's gamemode to survival"
send "&3/gma or /adventure: &9Sets player's gamemode to adventure"
send "&3/gmsp or /spectator: &9Sets player's gamemode to spectator"
send ""
send "&3&lINFO: &9&lAdd a player's name after the command to set someone else's gamemode"
send "&1&l-----------------------------------------"
send ""