-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheventsaddon.sk
101 lines (98 loc) · 4.12 KB
/
eventsaddon.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#|UNFINISHED| A collection of useful commands and other thingies in addition to a core :D
command setmaxhealth <number>: #10 is 10 hearts, use decimals to indicate half hearts, I.E. 0.5 = half a heart.
permission: pbsi.health
trigger:
loop all players:
set loop-player's max health to arg-1
set {health} to arg-1
send "&cHealth &8| &cSet all players health to &4%arg-1%"
on join:
set player's max health to {health}
teleport player to {spawn}
on respawn:
apply infinite potion of night vision of tier 2 without any particles whilst hiding potion icon to the player
teleport player to {spawn}
on join:
apply infinite potion of night vision of tier 2 without any particles whilst hiding potion icon to the player
on food bar change:
cancel event
command setspawn: #I'll add setting x y z cords manually soon.
permission: pbsi.setspawn
trigger:
set {spawn} to player's location
send "&bSpawn &8| &bSet spawn to &3your location&b!"
command gmc [<player>]:
permission: pbsi.gamemode
trigger:
if arg-1 is not set:
set player's gamemode to creative
send "&bGamemode &8| &bSet your gamemode to &3Creative"
else:
set arg-1's gamemode to creative
send "&bGamemode &8| &bSet &3%arg-1's name%'s&b gamemode to &3Creative" to player
command gms [<player>]:
permission: pbsi.gamemode
trigger:
if arg-1 is not set:
set player's gamemode to survival
send "&bGamemode &8| &bSet your gamemode to &3Survival"
else:
set arg-1's gamemode to survival
send "&bGamemode &8| &bSet &3%arg-1's name%'s&b gamemode to &3Survival" to player
command gmsp [<player>]:
permission: pbsi.gamemode
trigger:
if arg-1 is not set:
set player's gamemode to spectator
send "&bGamemode &8| &bSet your gamemode to &3Spectator"
else:
set arg-1's gamemode to spectator
send "&bGamemode &8| &bSet &3%arg-1's name%'s&b gamemode to &3Spectator" to player
command gma [<player>]:
permission: pbsi.gamemode
trigger:
if arg-1 is not set:
set player's gamemode to adventure
send "&bGamemode &8| &bSet your gamemode to &3Adventure"
else:
set arg-1's gamemode to adventure
send "&bGamemode &8| &bSet &3%arg-1's name%'s&b gamemode to &3Adventure" to player
command mutechat:
permission: pbsi.mutechat
trigger:
if {chat} is not "muted":
set {chat} to "muted"
send "&bChat &8| &bYou have &3muted&b chat!" to player
broadcast "&bChat &8| &bChat has been restricted to &3staff members&b!"
else:
broadcast "&bChat &8| &bChat has been &3unmuted&b!"
set {chat} to "unmuted"
send "&bChat &8| &bYou have &3unmuted&b chat!" to player
on chat:
if {chat} is "muted":
if player doesn't have permission "pbsi.mutechat.bypass":
cancel event
send "&bChat &8| &bChat is currently &3Muted&b!"
command commandblocker <text> <text>:
permission: pbsi.commandblocker
trigger:
if arg-1 is "add":
if {blockedcommands::*} contains arg-2:
send "&cError &8| &4%arg-2%&c is already blocked!"
else:
add arg-2 to {blockedcommands::*}
send "&2Success &8| &2Successfully added &a%arg-2%&2 to the command blacklist!"
else:
if arg-1 is "remove":
if {blockedcommands::*} contains arg-2:
remove arg-2 from {blockedcommands::*}
send "&2Success &8| &2Successfully removed &a%arg-2%&2 from the command blacklist!"
else:
send "&cError &8| &4%arg-2%&c is not blocked!"
else:
send "&cError &8| &cPlease select &4add &cor &4remove&c as your first argument!"
on command:
if {blockedcommands::*} contains command:
if player does not have permission "pbsi.commandblocker.bypass":
cancel event
send "&cError &8| &4/%command%&c is blocked!"