MagicWE icon indicating copy to clipboard operation
MagicWE copied to clipboard

Events

Open inxomnyaa opened this issue 5 years ago • 1 comments

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 #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 avatar Nov 19 '18 09:11 inxomnyaa

  • 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

inxomnyaa avatar Dec 04 '20 05:12 inxomnyaa