PVEToggle icon

PVEToggle -----

Stop mobs from targetting/damaging selected players. (Customizable)




That was fast, I know - Music and coding is my euphoria.

Config added (Default config is on the plugin page)
- Added language, translation support.
- Added Permissions for commands.
- Added update detector.

Now I can move onto something else, if there's any issues - Don't hesitate to contact me.

Leo. :)
----------, Jan 21, 2025

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.
----------, Jan 21, 2025

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.
----------, Jan 21, 2025

Apologies for the downtime, I've updated this resource to be workable on the newest spigot server.

Going forward I plan on recoding this.
----------, Jan 20, 2025

Ello,

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.

Feedback helps greatly.

Enjoy~

Leo
----------, Mar 7, 2021

Bug patch;

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.

You're welcome. <3

Leo
----------, Mar 5, 2021

I'm back,

The Rebirth .. Not really.

I've basically just updated it for use in later versions (Currently without error). Any feedback would be great. Sorry it took so long. <3

Leo
----------, Mar 4, 2021

Fixed reported updates.

Console spam of nullpointers (Events.java:27) was fixed.
Event integration was implemented including EntityTargetEvent.


Anymore problems, Let me know!

- Leo
----------, Jul 22, 2019

This is a small updated as requested.

* Statuses can now be modified from the config. As well as the messages.
customStatusOn: "on"
customStatusOff: "off"

Both of these are modifiable. You can also add color codes that are useful for the color precision. For example..

customStatusOn: '&2Enabled'
customStatusOff: '&4Disabled'

Will publish as:


Your PVE status is now: Enabled
And
Your PVE status is now: Disabled

The default is of-course 'on' and 'off';

Please note; For best results. Please consider redoing your config to match updates!

If not, not to worry. Patches are automatically added. Though can be problematic at times!

If there are any issues. Please don't hesitate to message me!
----------, Jul 8, 2019

The big one!

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
----------, Jun 17, 2019

To summarise!

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!

Thank you! And Enjoy!!

Leo
----------, Jun 10, 2019

Changes:

Feedback is appreciated!

Leo
----------, May 27, 2019

Resource Information
Author:
----------
Total Downloads: 478
First Release: May 27, 2019
Last Update: Jan 21, 2025
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings