Suggested name: LogoutSystem What I want: Is there a plugin which has anti logging and if you are in a safe place you can type in /logout which will log you off the server safely. Anything that hits you,move you will disable this logout. Ideas for commands: /logout Ideas for permissions: logout.logout I don't really believe that there is a way to "safely" disconnect someone besides kicking them, and it would be way easier for them to use the "disconnect" button instead. I don't understand the point of making a plugin that would make them safely logout. <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
There are many plugins that already have this feature. If you want one just search combat logging plugins on bukkit.
You can't force someone to be unable to press the disconnect button, also when they click it, you can't make the force run a command.
Can you create config, for I be able to change the timer ( seconds) and the message like: ( ChatColor Red + <s> until safe logout.)
Sorry im not making this, i dont have much time i thought you just wanted a player to log out when they type /logout
I don't think you understand the fact that it is impossible to change the client side stuff... So, if a player wants to disconnect from the server, then they can, by either closing their minecraft client down or by using the Disconnect button in the esc menu. Instead, maybe you want somebody to build you a plugin that /punishes/ a player for leaving when damaged or whatever, instead of /preventing/ them from leaving. For example, Player1 hits Player2 and, withing 10 seconds, Player2 leaves the game. Because of this, Player2 loses money/ingame items/dies etc.
So if the player leaves within the timer, you want the leaving message to be changed to something like '[Player] Left Before The Timer Ended]'?
That would be possible indeed. But the conversation that I was having on here was about stopping people from clicking disconnect.
it would detect the EOS, but also, keep track until the timer ends if disconencted before timer ends left before timer ended.
I don't think you understand what @timtower is trying to say. Sure, you can stop players from clicking "Disconnect," but forcefully closing Minecraft is something that you're unable to touch. I'm also curious... ...how you would detect if the player opened the menu. If you kept sending "Hey, client! You're in a portal!" packets over and over until they type /logout, there are a few problems with that. Players can't chat while in a portal, so they wouldn't even be able to type /logout, immediately ruling out this method. The visual purple portal effect that appears when you're in a portal or when the Nausea effect ends, which would be highly annoying. The constant packet sending would cause possible memory issues if the OP has a small server. Cheers, ~Chris
Just want if player type /logout, 15 sec timer start and if player move or other player hurt, he's cancelled. with custom message, and the player get KICK at the end of the timer !! ~Lilian
But again: Why? Why on earth would somebody choose to do /logout rather than any of the following which would also log them out faster than your command: 1. Hitting the disconnect button 2. Pressing alt + f4 3. Closing it with the X button 4. Closing it with task manager 5. Disconnecting from internet 6. Taking a baseball bat to their PC (not recommended) And so on