The sole purpose of this version was to be less consuming/cluttered.
So I got a bit frustrated and ended up recoded the core of this entire plugin - It's super lightweight. Everything is saved to memory for now, and next update will have LANG support. So y'all can translate.
Features of V2?
Commands:
PVE:
- help: Provides accessible commands and their description.
- toggle: Toggles your "PVE mode"; Which will enable you to be targetted/attacked.
- status: Tells you which mode you're in.
Additional Features:
- You require 10 seconds out of combat before enabling PVE mode, to stop abusers.
So I got a bit frustrated and ended up recoded the core of this entire plugin - It's super lightweight. Everything is saved to memory for now, and next update will have LANG support. So y'all can translate.
Features of V2?
Commands:
PVE:
- help: Provides accessible commands and their description.
- toggle: Toggles your "PVE mode"; Which will enable you to be targetted/attacked.
- status: Tells you which mode you're in.
Additional Features:
- You require 10 seconds out of combat before enabling PVE mode, to stop abusers.
It appears there was quite a lot wrong with this plugin - I'm getting there. Please bare with me.
In this update: - A whole Event system rewrite.. Why? It was incredibly messy and rushed. - Fix was implemented where MobDMG wasn't allowed in return regardless of the Config settings. - there was a few other things, but time is limited. So here.
Note: Mobs will continue to look and maybe even sometimes follow you. This is a bug I'm investigating. This release was to ease bigger servers with this issue as I know mine was surely struggling.
There was a bug where mobs would attack you anyway (And deal damage). Apparently 1.16.5 broke it. This has now been fixed. I've also cleaned up the code a little bit. (Tempted to overhaul) Lemme know if there are any more bugs I don't notice. I run this on my own server so time only tells.
Java structure change For easier and a more constructive access; I've changed the inner file structure - To enable easier access for myself and other developers.
Additions have been made: - Bug fixes. - - Fixed a bug where plugin would throw error when falling in lava. - - Fixed a bug where config would be reset upon command multi-issue. - More commands! - Admin is here! - - Admins of the server / Or whomever you give access to .. Will be given the following commands! /pve admin allowdamage TRUE/FALSE
Enables/disables damage from mobs in PVE mode!
/pve admin toggle PLAYER
Force toggles PVE status for a specific PLAYER
/pve admin check PLAYER
Checks the specific PLAYER's PVE status!
/pve admin disable-world WORLD(Optional)
For Multiworld servers. Disable world can be chosen for instances where you wouldn't want your members to be able to use PVE!
Note: Another method would be to just remove the permission!
/pve admin enable-world WORLD(Optional)
Same as disable-world only re-enables a selected world.
Worlds are all enabled by default!
/pve admin include-pvp TRUE/FALSE
PVEToggle can now include PVP. If you want PVP to be included with the PVE status. This can be enabled.
I hope you enjoy. Feedback is the way I introduce new features. Keep them coming! Leo
Command change: The ordinary '/pve' command will now instead (Unless changed in the config state the users current status - To toggle the PVE status users/or yourself will now require to use the command '/pve toggle' as stated!
When toggled functionality: Mobs will no longer be able to attack the user if already in a fight. The mob may still attack but due to that being a Minecraft bug, I can't stop that currently. However the mob will eventually reset AI targeting and stop on its own. However! I have added functionality to stop the user from taking damage in that case! So a workaround!
another feature: The plugin will now automatically add custom configuration commands when said feature is released. which saves you/users from starting fresh whenever you wanting to update the plugin. It will now just add to the config! Without loss of data.. and having to edit the configuration all over again!
Those nasty messages: All the random messages you were getting I.E. 'Looks like the user's status is OFF ' - They've now been moved and edited. They will now only appear when you have 'debug-mode' enabled! (Or 'true' in the config) And also look a little bit more professional (Sorreh about that.)
The cleanup! I've cleaned up and changed functions around a little! .. This is more of my own update; But noted here!
Alright! That should be it! There will definitely be more updates to come! Update your current plugin; To the recent! Let me know what you think. And I expect to hear about the ideas you have! As well as any bugs you come across!