About
This resource is a simple chat message that will output a message (on command). The messages are simple look in the pictures section below for some screen shots. This script now uses Ace permissions since 1.1, and since 1.2 has a GameType notification in the server list (in pictures below), as well as a anti join feature.
(check the change logs)
This script has been requested to me 2 times via PM. So I made it as they wanted it.
Usage / Common Commands
/svrlist [Displays list of all commands]
/svr 5 [States 5 minutes till restart]
/svr 10 [States 10 minutes till restart]
/svr now [Displays in chat that server is restarting, also places the GameType on and the anti join (Game type and anti join from 1.2 and up]
In the Download
__resource.lua
client.lua
server.lua
Requirements
None this is a standalone script as with all my resources.
Pictures The above is 2 messages Changes Game Type, added in 1.2.
It’s possible, for my server, it is restarted at midnight automatically. What I could do is set up a timer, so 30 mins before midnight, 11:30pm, a message will display in chat saying “Restart in 30 minutes” then just to count down, but it’s just not needed as our community knows and understand that the server restarts every midnight.
I don’t work or code with any sorts of frameworks. Although this is probably possible, I’m not going to do it. Feel free to modify it to your liking.
Not yet. I might add in the future along with my AOP script.
The message format is based off of my AOP script which is somewhat based off of HSG.
I may add a timer in the future, depending of how it would work.
Suggestion: allow the script to restart via a command? So… /svr 5 will restart the server in 5 minutes, 30 seconds before the server restarts, the /svr now will print, restarting now then the script will just restart? It’ll probably have to be done with a .bat and to edit the file location, not many people like .bat’s kek
Added new function that displays that the server is restarting on the server list when /svr now is ran.(picture below)
I also added a kick function that kicks a player on join if they connect after /svr now is ran. The system it uses is probably not the best but it works for now, I’ll keep working on the kick function in the mean time. But it works.