View difference between Paste ID: SvbxP7iq and XGccB7fn
SHOW: | | - or go back to the newest paste.
1
options:
2
	prefix: &7[&bFrostCHAT&7]
3
	AdminPerm: &8» &7You require the rank &7[&cADMINISTRATOR&7] to execute that command!
4
	ModPerm: &8» &7You require the rank &7[&eMODERATOR&7] to execute that command!
5
	OwnerPerm: &8» &7You require the rank &7[&4OWNER&7] to execute that command!
6
	AdminCmdPerm: frostchat.admin
7
	ModCmdPerm: frostchat.mod
8
	OwnerCmdPerm: frostchat.owner 
9
	MainCmdAliases: /frostaa /aa /antiad
10
	Version: &c1.2.6 &8- &4TEST BUILD #DO NOT CHANGE THE VERSION OR EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING#
11
on chat:
12-
    if message contains "www":
12+
13
        player doesn't have permission "frostchat.admin"
14
        cancel event
15
        message "{@prefix} &8» &7Please do not advertise unverified links in chat!"
16-
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to execute that command!"
16+
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to type links!"
17
on chat:
18
    if message contains "eu":
19
        player doesn't have permission "frostchat.admin"
20
        cancel event
21
        message "{@prefix} &8» &7Please do not advertise unverified links in chat!"
22-
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to execute that command!"
22+
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to type links!"
23
on chat:
24
    if message contains "co":
25
        player doesn't have permission "frostchat.admin"
26
        cancel event
27
        message "{@prefix} &8» &7Please do not advertise unverified links in chat, doing so will result in a punishment!"
28-
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to execute that command!"
28+
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to type links!"
29
30
command /frostaa [<text>]:
31
	aliases: {@MainCmdAliases}
32
	permission: {@ModCmdPerm}
33
	permission message: {@ModPerm}
34-
        message "{@prefix} &8» &7You require the rank &7[&eMODERATOR&7] to execute that command!"
34+
35
		if arg 1 is help:
36
			send "&7&m--------------------------"
37
			send "              {@prefix} &b&lCommands&8:"
38
			send "&f"
39
			send "&8- &7/frostchat reload"
40
			send "&8- &7/frostchat help"
41
			send "&8- &7/frostchat version"
42
			send "&8- &7/frostaa reload"
43
			send "&8- &7/frostaa help"
44
			send "&8- &7/chat help"
45
			send "&8- &7More Features Coming Soon!"
46
			send "&7"
47
			send "&7&m--------------------------"
48
		if arg 1 is "reload":
49
			broadcast "{@prefix} &4FrostChat Skript is being prepared for reload&8!"
50
			wait 3 seconds
51
			console command "/sk reload FrostChat.sk"
52
			send "{@prefix} &aFrostChat Skript has been reloaded successfully"
53
			
54
command /frostchat [<text>]:
55
	aliases: /fchat, /frostc
56
	permission: {@OwnerCmdPerm}
57
	permission message: {@OwnerPerm}
58
	trigger:
59-
			broadcast "&8- &7FrostChat Skript By &aFrostedWeFall"
59+
60-
			broadcast "&8- &7Version&8: {@Version}"
60+
61-
			broadcast "&8- &7Youtube&8: &dArtzifyHD - &9http://bit.ly/2u3nmIh"
61+
62-
			broadcast "&8- &7Report Any Issues Here: http://bit.ly/2h7ab7V"
62+
63
		if arg 1 is "version":
64
			send "&8- &7Version&8: {@Version}"
65
			send "&8- &7FrostChat Skript By &aFrostedWeFall"
66
			send "&8- &7https://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/"
67
			send "&8- &7Report Any Issues Here: http://bit.ly/2h7ab7V"
68
69
command /chat [<text>]:
70
	permission: {@OwnerCmdPerm}
71
	permission message:{@OwnerPerm} 
72
	trigger:
73
		if arg 1 is "help":
74
			send "{@prefix} &b&lCommands&8:"
75
			send "&8- &7/chat clear"
76
			send "&8- &7/chat disable"
77
			send "&8- &7/chat enable"
78
		if arg 1 is "clear":
79
			loop 300 times:
80
				broadcast ""
81
			broadcast "{@prefix} &2Chat has been cleared by &a%player%"
82
		if arg 1 is "disable":
83
			set {chat} to false
84
			broadcast "{@prefix} &c%player% &7Has Muted The Chat!&8."
85
		if arg 1 is "enable":
86
			set {chat} to true
87
			broadcast "{@prefix} &c%player% &7Has Unmuted The Chat!&8."
88
			
89
on chat:
90-
			broadcast ""
90+
91
		if player has permission "frostchat.allowchat":
92
			cancel event
93
			broadcast "&9%player's displayname%&8: &f%message%"
94
		else:
95
			cancel event
96
			send "{@prefix} &8» &7You require the rank &7[&cADMINISTRATOR&7] to execute that command!"
97
	else:
98
		cancel event
99
		broadcast "&9%player's displayname%&8: &f%message%"