WorldEdit Schematics

Discussion in 'Plugin Development' started by WolfMage1, Aug 22, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    WolfMage1

    Is there any way for me to detect when WorldEdit schematics are created? Or do I have to modify the current //schem command to add my own stuff to it?
     
  2. Offline

    Lordloss

    Look into the CommandPreprocessEvent, there you can react if specific commands are used.
     
  3. Offline

    WolfMage1

    I guess that's the only way of doing it.

    Didn't want to as there might be something WE checks that I don't and it ends up f'ing something up.

    @Zombie_Striker
    Thoughts on this?
     
  4. Offline

    Zombie_Striker

    @WolfMage1
    http://docs.sk89q.com/worldedit/apidocs/
    This contains all of worldedit's classes and methods. Most likely, you can get information about the schematics by looking/ listening to WE's events. If you want to check size of a pasted schematic, you can use :
    http://docs.sk89q.com/worldedit/apidocs/com/sk89q/worldedit/cui/SelectionMinMaxEvent.html

    If you want to get a shape of a pasted schematic, use :
    http://docs.sk89q.com/worldedit/apidocs/com/sk89q/worldedit/cui/SelectionShapeEvent.html

    If you want to find other events, use the first list and search for the world 'event' (do this by using ctrl+f in a web browser)
     
    WolfMage1 likes this.
Thread Status:
Not open for further replies.

Share This Page