Command to remove greeting

This commit is contained in:
oof2win2
2021-02-13 13:50:32 +00:00
parent b6056544ae
commit 74bca08eb4
3 changed files with 10 additions and 1 deletions

View File

@@ -154,7 +154,8 @@ Roles.new_role('Supporter','Sup')
'command/tag-color',
'command/jail',
'command/unjail',
'command/join-message'
'command/join-message',
'command/join-message-clear'
}
Roles.new_role('Partner','Part')

View File

@@ -1,6 +1,7 @@
[join-message]
greet=[color=0,1,0] Welcome to explosive gaming community server! If you like the server join our discord: __1__ [/color]
message-set=Your join message has been updated.
message-cleared=Your join message has been cleared.
[quickbar]
saved=Your quickbar filters have been saved.

View File

@@ -33,4 +33,11 @@ Commands.new_command('join-message', 'Sets your custom join message')
if not player then return end
CustomMessages:set(player, message)
return {'join-message.message-set'}
end)
Commands.new_command('join-message-clear', 'Clear your join message')
:register(function(player, message)
if not player then return end
CustomMessages:remove(player)
return {'join-message.message-cleared'}
end)