-
Notifications
You must be signed in to change notification settings - Fork 0
/
hospam.sk
150 lines (116 loc) · 4.91 KB
/
hospam.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
#Helpop/Chat Spam by Cevans98
options:
CC: &c
HC: &9&l
Command1: helpopspam
Command2: chatspam
Perms: skript.op
PermsMSG: &4&lYou do not have permission to execute this command!"
command {@Command1} <text> <player>:
permission: {@Perms}
permission message: {@PermsMSG}
trigger:
if arg 1 is not set:
command sender command "{@Command1} help"
else if arg 1 is "add":
if arg 2 is not set:
message "{@CC}You must specify a player."
else:
set {hospammer::%arg-2%} to true
add arg-2 to {hospammers::*}
message "{@HC}%arg-2% {@CC}added to Helpop Spam list!"
else if arg 1 is "remove":
if arg 2 is not set:
message "{@CC}You must specify a player."
else:
{hospammer::%arg-2%} is false:
message "{@HC}%arg-2% {@CC}isn't on the list!"
else:
set {hospammer.%arg-2%} to false
remove arg-2 from {hospammers::*}
message "{@HC}%arg-2% {@CC}remove from the Helpop Spam list!"
else if arg 1 is "reset":
loop {hospammers::*}
set {hospammer::%loop-player%} to false
delete {hospammers::*}
message "{@CC}The Helpop Spam list has been completely reset!"
else if arg 1 is "list":
message "{@CC}The following players are on the Helpop Spam list:"
message "{@HC}%{hospammers::*}%"
else if arg 1 is "help" or "?" or "info":
message "{@CC}{@Command1} {@HC}add {@CC}- Adds a player to the list!"
message "{@CC}{@Command1} {@HC}remove {@CC}- Removes a player from the list!"
message "{@CC}{@Command1} {@HC}reset {@CC}- Resets the list!"
message "{@CC}{@Command1} {@HC}list {@CC}- Lists the players on the Helpop Spam List!"
message "{@CC}{@Command1} {@HC}help {@CC}- Brings up this help page!"
command {@Command2} <text> <player>:
permission: {@Perms}
permission message: {@PermsMSG}
trigger:
if arg 1 is not set:
command sender command "{@Command2} help"
else if arg 1 is "add":
if arg 2 is not set:
message "{@CC}You must specify a player"
set {chatspammer::%arg-2%} to true
add arg-2 to {chatspammers::*}
message "{@HC}%arg-2% {@CC}added to Chat Spam list!"
else if arg 1 is "remove":
if arg 2 is not set:
message "{@CC}You must specify a player"
else:
{chatspammer::%arg-2%} is false:
message "{@HC}%arg-2% {@CC}isn't on the list!"
else:
set {chatspammer.%arg-2%} to false
remove arg-2 from {chatspammers::*}
message "{@HC}%arg-2% {@CC}remove from the Chat Spam list!"
else if arg 1 is "reset":
loop {chatspammers::*}
set {chatspammer::%loop-player%} to false
delete {chatspammers::*}
message "{@CC}The Chat Spam list has been completely reset!"
else if arg 1 is "list":
message "{@CC}The following players are on the Chat Spam list:"
message "{@HC}%{chatspammers::*}"
else if arg 1 is "help" or "?" or "info":
message "{@CC}{@Command2} {@HC}add {@CC}- Adds a player to the list!"
message "{@CC}{@Command2} {@HC}remove {@CC}- Removes a player from the list!"
message "{@CC}{@Command2} {@HC}reset {@CC}- Resets the list!"
message "{@CC}{@Command2} {@HC}list {@CC}- Lists the players on the Chat Spam List!"
message "{@CC}{@Command2} {@HC}help {@CC}- Brings up this help page!"
command /sethelpoptimer <integer> <text>:
set {HelpopCooldownTime} to arg 1
if arg 2 is "minutes":
set {HelpopTime} to arg-2
else if arg 2 is "seconds":
set {HelpopTime} to arg-2
else:
message "{@CC}Argument number two must be in {@HC}minutes {@CC}or {@HC}seconds!"
command /setchattimer <integer> <text>:
set {ChatCooldownTime} to arg 1
if arg 2 is "minutes":
set {ChatTime} to arg-2
else if arg 2 is "seconds":
set {ChatTime} to arg-2
else:
message "{@CC}Argument number two must be in {@HC}minutes {@CC}or {@HC}seconds!"
on command "helpop":
{hospammer::%player%} is true:
if {Helpop.LastTime::%player%} is not set:
set {Helpop.LastTime::%player%} to now
else if {Helpop.LastTime::%player%} was less than %{HelpopCooldownTime} {HelpopTime}% ago:
message "{@CC}You are on the {@HC}Helpop Spam list!"
message "{@CC}This limits you to one helpop every {@HelpopCooldownTime}."
message "{@CC}Either helpop in game, comment on a post or send a message to {@HC}{@HostsRedditAcc} {@CC}if you don't believe you should be and wish to appeal!"
else:
set {Helpop.LastTime::%player%} to now
on chat:
if {Chat.LastTime::%player%} is not set:
set {Chat.LastTime::%player%} to now
else if {Chat.LastTime::%player%} was less than %{ChatCooldownTime} {ChatTime}% ago:
message "{@CC}You are on the {@HC}Chat Spam list!"
message "{@CC}This limits you to Chat once every %{ChatCooldownTime} {ChatTime}%"
message "{@CC}Either helpop in game, comment on a post or send a message to {@HC}{@HostsRedditAcc} {@CC}if you don't believe you should be and wish to appeal!"
else:
set {Chat.LastTime::%player%} to now