As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
Hello, here I come for a new small plugin for server admin.
Let's see what add this plugins.
Welcome Message
With this plugin you can add a welcome UI for player that connect the first time on your server
The content of the UI is directly read from a text file
Here the content of the text file
Welcome {0} on our server.
You can make /rules command to see our server rules.
If you have any problems you can contact a admin.
Hope you will enjoy playing on our server.
What look in game
[Blocked Image: https://puu.sh/AnSaW/9b9b03360f.png]
As you can see the "{0}" in the text file is replace by the username.
Rules Message
You can add rules too, a UI that show when user write /rules with the content of a file like the welcome message.
Automatic Message
You can add automatic message that show up in the chat for every user.
Here is what look the default config file.
{
"WelcomeMessage": {
"uiTitle": "Welcome !",
"filename": "Welcome.txt"
},
"Rules": {
"uiTitle": "Rules",
"filename": "Rules.txt"
},
"AutoMessage": {
"isActive": true,
"timerInSecond": 300.0,
"isTemporary": false,
"isRandomlySelected": false,
"messages": [
"[AutoMessage] First automatic message",
"[AutoMessage] A second automatic message",
"[AutoMessage] A third one"
]
}
}
Display More
[Blocked Image: https://puu.sh/AnSu3/7537f3de94.png]
In the autoMessage part you can change some settings.
isActive - If set to false no more message will be show
timerInSecond - Time between 2 automatic message in seconds
isTemporary - Is the message fade off after 10 seconds or if the message stay in the chat.
isRandomlySelected - If set to true the message are randomly selected in the list
messages - You can add here as many lien you want remember to not add a ',' at the end of the last line.
After the config has been modified a admin can type /automessagereload command to load the news settings.
Scheduled Message
You can add scheduled message that show up in the chat for every user at a given server time.
Here is what look the default config file. (You need to run one time the server to write the default config)
{
"ScheduledMessage": {
"isActive": true,
"isTemporary": false,
"messages": [
{
"time": "12:00 AM",
"UITitle": "Scheduled message",
"openUI": false,
"message": "12AM"
},
{
"time": "12:00 PM",
"UITitle": "Scheduled message",
"openUI": false,
"message": "12PM"
},
{
"time": "00:00",
"UITitle": "Scheduled message",
"openUI": false,
"message": "00H00"
},
{
"time": "12:00",
"UITitle": "Scheduled message",
"openUI": false,
"message": "12H00"
}
]
}
}
Display More
As you can see you can set the time in US 12hours clock format with AM or PM. Or you can set the time in a 24 hours clock format.
If you want to set at 1 PM you need to write "01:00 PM" or "13:00".
The openUI set if the message is show in a UI.
The UITitle is ignored if openUI is set to false.
If you have any problem with the config please ask me.
You can't change theses config from game but you can reload it with reload command.
User Commands
This plugins add 3 user commands.
/rules that open the rules UI message.
/showwelcome that open the welcome UI message.
/servertime show the server date and time.
Admin Commands
This plugins come with 7 admin commands.
"Admin commands"
/broadcast <message>
This command send a message to all online players.
/broadcastui <title>,<message>
This command open a ui for all online players with the title and the message.
Useful when need to give a very important message.
/automessageon
Enable automatic message (change the isActive bool in the config file to true)
/automessageoff
Disable automatic message (change the isActive bool in the config file to false)
/automessageadd <new message>
Add a new message in the automatic message list (There is no command for remove a message)
/automessagesettimer <new time in seconds>
Change the time between 2 automatic messages
/automessagereload
Reload the config file.
Additional info
All the config files can be found in Mods/KirthosMods/AnotherMOTDPlugin folder
If you have any question or any idea don't hesitate to comment.
Thanks for download and test my mods.
Installation
You need to install the asphalt modkit :
https://eco-mods.com/resources/asph…-developers.47/
Open the zip file and drag the content of the Mods folder in the Server Mods folder.
Restart the server and play.
Credits
Thank to Gabeux and Jagganot for the idea of making the mod.
Thank to Mari for making the mod icon.
My mod use the Asphalt modkit by Lordmampf & Kronox thanks to them.
-
Version 1.2.0
-
(1) -
Kirthos -
May 23, 2018 at 2:14 PM -
7.24 kB -
736 Downloads
-
-
Version 1.1.0
-
(1) -
Kirthos -
May 22, 2018 at 4:48 AM -
7.3 kB -
517 Downloads
-
-
Version 1.0.0
-
Kirthos -
May 17, 2018 at 5:07 PM -
6.49 kB -
523 Downloads
-
-
-
Review
Perfect MOTD/Message Mod, been running on my server and being able to broadcast messages along with a pop-up broadcast is great. Scheduled messages now enable my players to be aware of my scheduled restarts. Thanks so much, Kirthos!