bAntiLeave
bAntiLeave prevent players to leave the game in a battle. The players must use "/logout" to quit the game. If they leave with the disconnect-button, the armor drops out of the inventory in the world.
Features
- If you type "/logout" you must wait three seconds. After the seconds you will be kicked from the server and you don't lose your armor.
- If you are in a fight as victim or as damager you can't use commands to three seconds after the last hit.
News
- Version 1.3 released!
- Updated to Minecraft 1.4.6 (CB 1.4.6-R0.1)
- Version 1.2.3 released!
- Code changes and fixes.
Installation
- Put the bAntiLeave.jar into your plugins folder and run the server.
- It creates a folder called "bAntiLeave", with the file "config.yml".
- Change the values you would edit ;) (bAntiLeave is compiled with Java 6)
Commands & Permissions
- /bantileave:
- Shows you general information about bAntiLeave.
- Alias: /al
- /bantileave reload:
- Reloads bAntiLeave.
- Alias: /al reload
- Permission: bantileave.reload
- /bantileave resetconfig:
- Resets the config of bAntiLeave
- Alias: /al resetconfig
- Permission: bantileave.reset
- /logout:
- Loggs you out of the server.
- Permission: bantileave.logout
- Disconnect without using /logout:
- Allows you to disconnect without using /logout.
- Permission: bantileave.nologout
Translations
- English (by LetsHackMario)
- German (by LetsHackMario)
Known bugs
- Nothing :D
Changelog
- bAntiLeave 1.3.0
- Updated to Minecraft 1.4.6 (CB 1.4.6-R0.1)
- bAntiLeave 1.2.3
- code changes and fixes.
- bAntiLeave 1.2.2
- added pluginmetrics
- bAntiLeave 1.2.1
- changed all commands from "/bal [args...]" to "/al [args...]"
- some code fixes / changes.
- bAntiLeave 1.2.0
- added you can set the seconds in the config for "/logout" and for the command prevention.
- added you can reset the config with "/bal resetconfig".
- added you can reload bAntiLeave with "/bal reload".
- changed some messages.
- fixed a bug with "/logout".
- some code fixes / changes.
- bAntiLeave 1.1.0
- added players who are in a fight can't use commands.
- some code fixes / changes.
- bAntiLeave 1.0.1
- added a noperms message
- some code fixes / changes.
- bAntiLeave 1.0.0
- first release of bAntiLeave.
Donate
You can support the plugin with a little donation ;)
Sorry for spelling mistakes. I'm german ;)
Doesn't work on 1.4.7 using MCPC+. I put the jar in the plugins, ran the server, it created the config, I added the bantileave.logout: true to permissions buikkit and reloaded server. When you type /logout nothing happens. If I type /al reload it says: /commad (yes command is spelled incorrectly when it displays)
So unless I am missing something, this mod is not functioning :( Too bad, i am trying to find a plugin that puts a timer on how long before they can log out.
Can you add teleporting to spawn or another location, if player won't type '/logout'
Two things:
AND:
@ffaen123
ouh... I change this in the next version.
Looks like a great plugin, however ironic as /bal (b anti leave) would conflict with anything that uses /bal (e.g. essentials and probably economy plugins) :P
I found some problems...the plugin say that people are in pvp even if they are fighting with mobs..2 if they do pvp and the cooldown(i set it on 25 seconds) is finished, when people rejoin 3 or 5 hours later. plugin say that they are still in pvp..this problems accoured becouse i set 25 seconds?
@levisn1
Thanks!
@xdeathoreox
If the client crashes the armors drops out of the inventory, too, beacause the player isn't in an array.
i love you man!!! you save my server!! 5 euro of donation!!
@LetsHackMario
When I saw other reasons I mean:
Generic reason (Client crashes/Client freezes), Socket error, Some other weird minecraft reason I haven't encountered yet, Time out (I don't know if this is the same as "End of stream").
@xdeathoreox
pressing the x - Button is the same as pressing the disconnect button. Your armor drops out of your inventory. What did you mean with "other reasons"?
If a player got kicked, the armor is still in the inventory and drops not out.
What if the persons simulates an end of stream? (Pauses game and clicks the X button) Or a person gets disconnected for other reasons?
@nhoclesnar
i will add this in the next version.
Nice plugin , simple and effective. Question: Can we define the time in second for 'After the seconds you will be kicked from the server and you don't lose your armor.'?
please add toggle "block all-commands during pvp" dont forget /f home =D