· 8 years ago · Feb 23, 2018, 08:26 PM
1#
2# Skript Punishments
3# Made by NeedMyself
4# Version 1.0
5#
6
7options:
8 noperm: &cYou do not have permission to execute this command!
9
10command /kick [<player>] [<text>]:
11 permission: murdermc.admin
12 permission message: {@noperm}
13 trigger:
14 if arg 1 is not set:
15 send "&cUsage: /kick {player} {reason}"
16 if arg 1 is set:
17 if arg 2 is not set:
18 loop all players:
19 if {punishments.%loop-player%} is true:
20 send "&b%arg 1% &fwas kicked by &b%executor%&f." to loop-player
21 kick arg 1 due to "&cYou are kicked from this server!%new-line%%new-line%&fKicked by: %executor%%new-line%&fReason: You have been kicked from this server!"
22 if arg 2 is set:
23 loop all players:
24 if {punishments.%loop-player%} is true:
25 send "&b%arg 1% &fwas kicked by &b%executor% &ffor &b%arg 2%" to loop-player
26 kick arg 1 due to "&cYou are kicked from this server!%new-line%%new-line%&fKicked by: %executor%%new-line%&fReason: %arg 2%"
27
28command /ban [<offlineplayer>] [<text>]:
29 permission: murdermc.admin
30 permission message: {@noperm}
31 trigger:
32 if arg 1 is not set:
33 send "&cUsage: /ban {player} {reason}"
34 if arg 1 is set:
35 if arg 2 is not set:
36 loop all players:
37 if {punishments.%loop-player%} is true:
38 send "&b%executor% &fbanned &b%arg 1%&f." to loop-player
39 ban arg 1 due to "&cYou are permanently banned from this server!%new-line%%new-line%&fBanned by: %executor%%new-line%&fReason: You are permanently banned from this server!%new-line%%new-line%&fBan Appeal at: &b&nhttps://www.murdermc.com/ban-appeals"
40 if arg 2 is set:
41 loop all players:
42 if {punishments.%loop-player%} is true:
43 send "&b%executor% &fbanned &b%arg 1% &ffor &b%arg 2%" to loop-player
44 ban arg 1 due to "&cYou are permanently banned from this server!%new-line%%new-line%&fBanned by: %executor%%new-line%&fReason: %arg 2%%new-line%%new-line%&fBan Appeal at: &b&nhttps://www.murdermc.com/ban-appeals"
45
46command /socialspy:
47 permission: murdermc.admin
48 permission message: {@noperm}
49 trigger:
50 if {punishments.%player%} is true:
51 send "&3MurderMC> &fYou have &7disabled &fSocialSpy!"
52 set {punishments.%player%} to false
53 stop
54 if {punishments.%player%} is false:
55 send "&3MurderMC> &fYou have &7enabled &fSocialSpy!"
56 set {punishments.%player%} to true
57 stop
58
59on chat:
60 if {spam.%player%} is true:
61 cancel event
62 send "&3MurderMC> &fPlease wait 2 seconds Before you can chat again!" to player
63 else if {msg.%player%} is "%message%":
64 cancel event
65 send "&3MurderMC> &fYou cannot send same message again!" to player
66 else if {msg.%player%} isn't "%message%":
67 set {msg.%player%} to "%message%"
68 set {msg.%player%} to "%message%"
69 set {spam.%player%} to true
70
71every 2 seconds:
72 loop all players:
73 if {spam.%loop-player%} is true:
74 set {spam.%loop-player%} to false
75
76on chat:
77 if message contains "fuck", "faq" or "f@ck" or "fuck you" or "f@ck you" or "faq you" or "bitch" or "fucking bitch" or "nigger" or "nibba":
78 replace all "fuck" with "****" in message
79 replace all "faq" with "***" in message
80 replace all "f@ck" with "****" in message
81 replace all "fuck you" with "*******" in message
82 replace all "f@ck you" with "*******" in message
83 replace all "faq you" with "******" in message
84 replace all "bitch" with "*****" in message
85 replace all "fucking bitch" with "************" in message
86 replace all "nigger" with "*****" in message
87 replace all "nibba" with "*****" in message
88 send "&3MurderMC> &fYou are not allowed to swear!"
89 send "&fYou have been warned by &bConsole &ffor '&bPlease don't swear&f'"
90 add 1 to {warnings.%player%}
91 loop all players:
92 if {punishments.%loop-player%} is true:
93 send "&b%player% &ftried to swear in &b%player's world% &fbut have been blocked!" to loop-player
94 send "&bMessage: &f%message%" to loop-player
95 send "&bConsole &fwarned &b%player% &ffor '&bPlease don't swear&f'" to loop-player
96
97on chat:
98 if message contains ".com", "www." or "https://www." or ".net" or "play." or ".serv.nu" or "http:/www." or "@gmail.com" or "@OutLook.com" or "@hotmail.com" or "mc.":
99 cancel event
100 send "&3MurderMC> &fYou are not allowed to adverstise!"
101 loop all players:
102 if {punishments.%loop-player%} is true:
103 send "&b%player% &ftried to adverstise in &b%player's world% &fbut was blocked!" to loop-player
104 send "&bMessage: &f%message%" to loop-player
105
106on command "/msg":
107 loop all players:
108 if {punishments.%loop-player%} is true:
109 send "" to loop-player
110
111command /history [<offlineplayer>]:
112 permission: murdermc.admin
113 permission message: {@noperm}
114 trigger:
115 if arg 1 is not set:
116 send "&cUsage: /history {player}"
117 if arg 1 is set:
118 send "&3History of %arg 1%:"
119 send "&fWarnings: %{warnings.%arg 1%}%"