PlugMan icon indicating copy to clipboard operation
PlugMan copied to clipboard

Add event system in api

Open 404Setup opened this issue 1 year ago • 8 comments

Haven't done some testing on events yet, I'll come back to that later.

I'm sorry some parts are very crude, please give me feedback so I can improve them.

Available for both Bukkit and Bungeecord.

404Setup avatar Oct 03 '24 03:10 404Setup

Hmmm, is there a reason why the switch from maven to gradle is necessary?

Test-Account666 avatar Oct 03 '24 11:10 Test-Account666

Hmmm, is there a reason why the switch from maven to gradle is necessary?

OK, it's rollback

404Setup avatar Oct 03 '24 12:10 404Setup

The real reason is that maven suddenly failed to build indexes correctly on idea, which confused me a bit, so I changed it to gradle.

Maybe it's a bug in idea.

404Setup avatar Oct 03 '24 12:10 404Setup

bukkit events not compiling and not working have been fixed, and there is now a spigot example.

Example Plugin Source

Example Plugin Jar

PlugManX-Event Jar

image

404Setup avatar Oct 05 '24 14:10 404Setup

bukkit events not compiling and not working have been fixed, and there is now a spigot example.

This example has been updated to the latest commit.

image

Example plugin source | Example plugin jar file | PlugManX Event jar file

404Setup avatar Oct 06 '24 05:10 404Setup

So... I finally came around to looking at the code.

I'd like to have proper bulk-operation support with the events.

Not like the PreDisablePluginEvent having a bool. That doesn't feel right

Test-Account666 avatar Oct 07 '24 15:10 Test-Account666

I also think the user should also be informed about what happened, if an event has been cancelled

Test-Account666 avatar Oct 07 '24 15:10 Test-Account666

Let me think about what to do

404Setup avatar Oct 08 '24 04:10 404Setup

I'm still unsure about adding this, plus it's no longer compatible with v3.5.0's new structure. (3.5.0 will be pushed when I'm done restructuring)

Test-Account666 avatar Jul 31 '25 15:07 Test-Account666