-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.sk
23 lines (21 loc) · 1.57 KB
/
status.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#WARNING for this to work, you need a chat plugin such as essentials chat and you NEED the plugin vault, then you need to configure the chat plugin so in chat it includes the player suffix in the message instead of <player> message, if the status is set to something, it should include the suffix in the message, for essentials chat, find line "format: " under EssentialsX chat (it will be in a big # thingy) and change it to "format: <{DISPLAYNAME}> {MESSAGE}" then type "/essentials reload" to reload config
command /status [<string>]:
permission: status.use
permission message: [&a&lStatus&r] &cYou do not have permission to change your status! (&6status.use&r)
usage: &cUsage: /status <status> (leave empty to remove status)
description: Sets your status! (leave empty to remove status)
trigger:
if arg-1 contains "Admin" or "Owner" or "Mod" or "Moderator" or "Creator" or "VIP" or "MVP" or "Donator":
execute console command "tempban %sender% 1d Attempted impersonation through status"
else if arg-1 contains "fuck" or "shit" or "bitch" or "dick":
execute console command "tempban %sender% 1d Attempted profanity in status"
else if arg-1 contains "_" or "-" or "`" or "~" or " ":
send "&cYou cannot have spaces or characters that possibly refer to a space in your status"
else if arg-1 is not set:
set player's suffix to ""
send "[&a&lStatus&r] &aCleared your status!"
else if length of arg-1 is greater than 10:
send "[&a&lStatus&r] &cYour status is too long!"
else:
send "[&a&lStatus&r] &aSet your status to ""%arg-1%"""
set player's suffix to " (%arg-1%&r)"