Need a little help understanding children commands and such

I’m not sure where you got your method signature from - because it looks like you want to create the event, not listen to it there!

Change your first line (under listener) to:

public void onMove(MoveEntityEvent event, @Root Player player) {

and then remove your Entity player... line and your return at the bottom. You’re not interested in creating the event, you’re interested in listening to it.

Remember, as far as listeners go:

  • They must be public and return void
  • They must contain an event as the first parameter
  • They can contain event filters, which are the second onwards parameters which are all annotated.
  • They must be registered unless it’s in your plugin class, so in your main class in one of your init events, you need to register the class with Sponge.getEventManager().registerListeners(<plugin object>, <listener object>); - plugin object is this in you are in your main class.

See Event Listeners — Sponge 7.2.0 documentation in the docs for more info. Hope this helps!