Sueta
LO

Lock~

2018-10-15

create a lock file when server is running

·Plugin

And if players can join server.
Self explanatory, it's an utility for dev

Location: plugins/Lock/.lock
Work and delete file if server is killed (ctrl+c, kill..)

Usage sample, for Windows users :

Automatically connect the client with an AutoIT script when launching the server.
The client must have the original size of the minecraft window(maybe don't work anywhere) and be in servers menu

#include <MsgBoxConstants.au3>

While Not FileExists("server/plugins/Lock/.lock")
    Sleep (100)
Wend

WinActivate("Minecraft")

Local $pos = WinGetPos("Minecraft")

MouseClick("left", $pos[0] + 400, $pos[1] + 420)
MouseClick("left", $pos[0] + 400, $pos[1] + 400)

Similar projects

Plugin →