I'm making a login plugin and already finished the login, register and logout part. But how can I force a player to login when he joins? I want that he can't do anything(except for logging in) before he has logged in.
You could cancel their command and chat events if they're not the login and register command. When they move if they're not logged in just cancel the event as well?
But then I need to set all player events cancelled separately, isn't there a way to set them all cancelled except for the login and register command?