16.07.2016, 19:19
You will be needing a saving system. That may keep the value of jailed player to 1 or true(if its a bool) .
And, when player connects first you will need to clear the variables and booleans. Then fetch the jailed data/punishment data and save in that same variable
And then on player spawn you just check if player is jailed and if the value is 1 or true then teleport player to the jail coordinates. And voilб you just jailed player even after reconnecting to the server.
And, when player connects first you will need to clear the variables and booleans. Then fetch the jailed data/punishment data and save in that same variable
And then on player spawn you just check if player is jailed and if the value is 1 or true then teleport player to the jail coordinates. And voilб you just jailed player even after reconnecting to the server.