23.01.2014, 17:29
I want to add command only for one(maybe two) players...
Normally, I would just load/save something and check in under that command.
But because this will be used for only one player, I'm currently thinking about just saving his name into a file and when someone tries the command, just check if his name is in the file. This would allow me to change the player when the server is running.
I'm also considering using the last one just load the file when a player connects to see if he SHOULD be allowed to use the command.
What do you guys think? Even as it is a tiny "problem", I just can't decide.
Normally, I would just load/save something and check in under that command.
But because this will be used for only one player, I'm currently thinking about just saving his name into a file and when someone tries the command, just check if his name is in the file. This would allow me to change the player when the server is running.
I'm also considering using the last one just load the file when a player connects to see if he SHOULD be allowed to use the command.
What do you guys think? Even as it is a tiny "problem", I just can't decide.