Anti-Relog

Now 1.5.2 fully functional! Download version 2.5 here!
Special thanks for Swifteh for keeping the plugin updated when I wasn't here!
New Features of Version 2.x.x
- Cleaner code.
- NPCs with option for aggressive combat mode. (or assign permission nodes for individual use see below)
- NPCs are compatible with Modifyworld
- Configuration messages now support colors.
- Customized option to drop items, armor, and experience (each handled separately).
- Commands can be run from the console when a combat logger is unbanned and logs back on.
- Fixed issue with MobCatcher.
- Automatic update notifications to the console.
What is Anti-Relog?
Anti-Relog is a lightweight and easy-to-use PVP plugin that prevents players from using commands during combat to escape from the opponent. With this plugin, players will not be able to simply warp to safety but will instead be forced to fight to the death. In the case of a player logging off to escape death, they will be killed instantly* before log-off and their items will drop as usual. If NPCs are enabled, an NPC will spawn in place of the combat logger. They will automatically be banned for a preset time to prevent them from logging on immediately. I made this plugin in response to a plugin request.
What Are This Plugin's Features?
This plugin is designed to be as flexible as possible with the server owner in mind. Below are the current list of features:
- Easy to install. Just drag and drop.
- Keeps players fighting and on the alert. No more escaping from battles.
- Players who log off before the battle ends are logged into a text file with time and date.
- Detects cause of player logoff so they are not banned if their client crashes in the midst of battle.
- Customizable messages and settings.
- Functions are togglable. This means that you can turn the settings off whenever you don't need them!
- PermissionsEx support.
- NPCs compatible with Modifyworld.
How to Install
- Download the latest build of Anti-Relog here.
- Download the latest CraftBukkit recommended build.
- Drag Anti-Relog.jar into the CraftBukkit plugins folder and start up the server.
- Configure the config.yml inside the generated Anti-Relog folder to your preferences and save.
- Reload the server.
Commands
Alias for /antirelog is /ar.
- /antirelog - Shows the plugin version.
- /antirelog t (or /antirelog time) - Shows the time left before player can use commands.
- /antirelog unban <player> - Unbans the selected player if they were banned through PVP logging.
Permissions
Nodes:
- antirelog.pvpbypass - Allows user to be exempt from all PVP restrictions. Allows use of commands in PVP and allows logging off without consequence.
- antirelog.unban - Allows user to unban players who were banned by PVP logging.
- antirelog.aggressivenpc - User will spawn a NPC which will fight the attacker in place of the player when the player combat logs.
NPCs
NPCs are designed to help prevent combat loggers from ruining the fun of PvP by continuing the fight after they log off. Regular NPCs (default ones) do not fight back but instead stay they and get killed. If you really want a challenge, turn the Aggressive Mode on in the config or give players who you want to spawn aggressive NPCs the 'antirelog.aggressivenpc' permission node. NPCs will drop all the player's items when killed and the player will lose all their items upon logging back on. If an aggressive NPC manages to kill the attacker, the combat logger will maintain their inventory and the NPC will despawn.
Configuration
Although there is already information about each config node embedded in the configuration file, below are links to more information regarding the config file:
Change Log:
Version 1.0:
- Release.
Version 1.1:
- Major bug fixes.
- Added more flexible options to toggle different functions.
- EXP and equipped armor will now drop if player logs off during PVP.
- Added custom ban messages that will be shown to the player.
- If server reloads when the player is still banned, instead of leaving the player as banned, the server will unban the player.
Version 1.2:
- Fixed compatibility issues with Factions, WorldGuard, Towny, and any Safe-Zones.
- Players will not be tagged if fighting against NPCs.
- Differentiates between client crash and intentional logout. Players don't get banned when they crash!
- Minor bug fixes and performance improvements.
Version 1.3
- Emergency Release.
- Completely changed the code around using a new method of tracking PVP which is 99% glitch free.
- No more glitching during PVP.
- Fixed permissions issues.
- Allows players to see the remaining combat duration using /ar t or /ar time.
- Fixed major issues regarding Citizens and Factions.
Version 1.4
- Added fix for some cases where players are able to PVP log without penalty.
- Added support for Heroes plugin.
- Added support for banning on servers in offline mode.
- Added command for unbanning players who were banned by PVP logging (regular unbans do not work!).
- Added option for PVP logging against Mobs (agressive/passive).
- Added option to toggle the killing of the player if they PVP log.
- Added ability for server owners to choose which commands they want to disable during PVP (allowing use of spells/PVP commands).
- Added ability to toggle the disabling of commands during PVP.
- Added ability to toggle all commands off during PVP.
- Plugin will now write the reason for the player's unban in the PVP log file.
Version 1.5
- Critical bug fix with /f home.
- Fixed error messages regarding mob logger as well as implementing full functionality for passive mob logger.
- Sends a customizable message notifying players when they are/are not in combat.
- Added alias /arl for plugin conflicts.
- Fixed exploit of directly closing the client window to bypass PVP logging.
- Use <player> in config field: TempBanMessage to signify which player PVP logged.
- Fixed command issue with /unban for servers in offline mode.
Version 1.6
- Removed spam due to forgotten debug lines.
Version 2.0
- Completely recoded plugin from the ground up.
- Cleaner and more efficient code to prevent memory leaks and leave more resources for other plugins to run on.
- Added NPCs that spawn when a player combat logs.
- NPCs have basic combat AI in aggressive mode (which can be toggled in the config or be allowed through a permission node see above).
- NPCs are compatiable with Modifyworld.
- Cleaner and organized configuration format for ease of use.
- Custom messages now support color.
- Added option to run commands from the console when a combat logger logs back on once they are unbanned.
- Added option to choose whether to drop the player's inventory, armor, or exp.
- Fixed issue with items not dropping.
- Automatic update notifications to the console when a new version is available.
- Fixed issue with MobCatcher.
Version 2.1
- 1.4.5 Update. by swifteh @ www.mc-index.com
Version 2.2
- 1.4.6 Update by swifteh.
Version 2.3
- 1.4.7 Update by swifteh.
Version 2.4
- Updated for 1.5.1.
- NPCs are now fully functional.
- Kicked players will no longer be penalized for logging out.
- Fixed a minor bug with the disallow-all function.
Version 2.5
- Updated for 1.5.2.
- Added a command whitelist.
- Players cannot escape from PVP by flying.
- Fixed bug with NPC spawning.
- Fixed bug with mob logger.
To Do List
Add option to have certain allowed commands while in PVP (customizable via config.yml).- Add commands to change config in-game.
- Add options to specify worlds to enable in.
Add support for other permission plugins.Make an optional option to warp banned players to a certain location after they are unbanned.Clean up code.- Make a video tutorial.
Test the plugin and try to find plugin conflicts.Resolve conflict with Citizens and Factions.Add economy support.- Add region support.
- If player logs off in PVP, make the plugin wait a certain time before banning them.
Option to allow an NPC to spawn instead of death.

-
View User Profile
-
Send Message
Posted Aug 28, 2012This in log! [SEVERE] Error occurred while enabling AntiRelog v2.0.0 (Is it up to date?) java.lang.NullPointerException at com.github.r0306.AntiRelog.AntiRelog.registerExecutors(AntiRelog.java:123) at com.github.r0306.AntiRelog.AntiRelog.onEnable(AntiRelog.java:81) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:374) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:356) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:306) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:285) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:168) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:388) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
-
View User Profile
-
Send Message
Posted Aug 27, 2012I have problem with disallow-all too.
Just this feature isnt working
-
View User Profile
-
Send Message
Posted Aug 26, 2012Hi my problem is almost the same as @Primescore.
My server is Auto Restarting every 2 hours, and if someone is in battle the players lose his armor and items, can it make if player is kicked or banned, the items do not drop.
tnx :)
-
View User Profile
-
Send Message
Posted Aug 24, 2012@Primescore
Will look into implementing this
-
View User Profile
-
Send Message
Posted Aug 24, 2012Ok so I found a problem. When my moderators PvP others they can kick them while they are pvping. Resulting in a PvP log. Can you make it so they dont pvp log when they are kicked?
-
View User Profile
-
Send Message
Posted Aug 23, 2012We will look at fixing these problems this weekend! With r30 starting school again he is quite busy. And i start in 2 weeks for my last year of school so ;)
When i start school i will be a little bit inactive on here ;)
We will bring out updates when we have time to update and fix things.
We hope you understand
-
View User Profile
-
Send Message
Posted Aug 23, 2012@JakebobTheEpic
the same problem
-
View User Profile
-
Send Message
Posted Aug 22, 2012Hello there. I am having the same problem as all of the other admins. I can't Disallow-all. It seems that the plugin recognizes the base of the command i.e /spawn returns There is no running away from a battle! but /warp (warpname) or /mvtp (world or p:portalname) takes them to their desired location. It would be nice if you could fix this issue, as people are giving me shit about it.
Thanks, Jake
-
View User Profile
-
Send Message
Posted Aug 20, 2012Npc despawn time is set to 18 seconds yet the npc wont despawn and it is almost invincible. It took about 100 hits with a diamond sword to kill a player in iron armor. (running cb 1.3 RB 2)
-
View User Profile
-
Send Message
Posted Aug 20, 2012Help pls!
[SEVERE] Could not pass event PlayerQuitEvent to AntiRelog org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ServerConfigurationManagerAbstract.disconnect(ServerConfigurationManagerAbstract.java:213) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:711) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:582) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:475) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at com.github.r0306.AntiRelog.Listeners.LogPrevention.isPvPLog(LogPrevention.java:244) at com.github.r0306.AntiRelog.Listeners.LogPrevention.onQuit(LogPrevention.java:47) at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 14 more
-
View User Profile
-
Send Message
Posted Aug 19, 2012getting the same problem i have dis allow all to true when the relog is activated if they type /warp says cant run from battle but when they add a warp name /warp (name) it allows them to warp
and i tried both dis allow commands to true and false and got - warp in the dis allow command list
-
View User Profile
-
Send Message
Posted Aug 18, 2012@dotapurex1
try ptp <player> or somthing
-
View User Profile
-
Send Message
Posted Aug 17, 2012Seems like the commands are not blocked, they still work...
is there a way to block like
/ptp [playername]?
It only like blocks ptp but if they type their name it tp's...
-
View User Profile
-
Send Message
Posted Aug 17, 2012Work will re-start this weekend. Stopped work this week due to School commitments. We will look into all these bugs / issues asap. If u have a Server Error Make a Ticket please. This way it wont clogg up the Comments
Thanks <3 x
-
View User Profile
-
Send Message
Posted Aug 17, 2012shows up at random *using latest one
-
View User Profile
-
Send Message
Posted Aug 16, 2012@pulsehh
Hmm Will take a look into this.
Thanks for your report
@Aangiix3
Hmm Will take a look into this.
Thanks for your report
-
View User Profile
-
Send Message
Posted Aug 14, 2012Disallow-All: true does not work. (It actually has the opposite effect and allows all commands)
All commands operate normally. Also, when using disallowed list, it doesn't block all commands (such as /f home). etc
Old version worked perfectly in 1.2.5
Now running version relog 2.0 with bukkit R1.1
-
View User Profile
-
Send Message
Posted Aug 14, 2012Btw players can do /home 1 etc...and it doesnt get blocked.
-
View User Profile
-
Send Message
Posted Aug 14, 2012Could you make a lightweight Version that doesn't have all this Ban/NPC Stuff..I just want it to drop the items if someone logs out and block commands like /tp during fight...
-
View User Profile
-
Send Message
Posted Aug 13, 2012happens at random