Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events #106

Open
inxomnyaa opened this issue Nov 19, 2018 · 1 comment
Open

Events #106

inxomnyaa opened this issue Nov 19, 2018 · 1 comment

Comments

@inxomnyaa
Copy link
Owner

inxomnyaa commented Nov 19, 2018

A suggestion by @SalmonDE

The idea behind this is to call an event when MagicWE2 performs a change in the world.

With the event you should be able to:

  • get the player who edited (or null when done via plugin)
  • get the level where actions are performed in
  • get and change which blocks were edited (Good for MWE2-Extensions Event driven MWE2 Extensions #107)
  • get the full selection
  • change or move the selection
  • Allow or restrict edits at specific positions (Useful for MyPlot!)
  • limit how many blocks should be edited
  • and maybe allow edits to perform asynchronous after the events were called

Any other ideas what events should be able to return / modify please below

@inxomnyaa
Copy link
Owner Author

  • MWESessionLoadEvent added and implemented and actively used (see EventListener)
  • MWESelectionChangeEvent added and implemented and actively used (see EventListener, it updates scoreboard currently)
  • MWESessionSettingChangeEvent added, but needs refinement (TYPE_ constants, EventListener implementation (should update scoreboard))
    Please suggest changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants