WGRegionEvents Continued 2.1.0

This is a continuation of WGRegionEvents.

  1. S_Ryan
    Does your plugin do something when a player enters or exists a region? Are you wanting to use a plugin that depends on WGRegionEvents?

    This is a continuation of the helpful API WGRegionEvents. It has been updated to Java 7, Spigot 1.8.8, and WorldGuard 6.1.

    I would like to give credit to the original developer for his original API. He wrote it very well. The project has since been abandoned, so I chose to take it over. The original project can be found here: http://dev.bukkit.org/bukkit-plugins/worldguard-region-events/

    Example (derived from original post):
    Code (Text):
    import com.mewin.WGRegionEvents.events.RegionEnterEvent;
    ...

    @EventHandler(priority = EventPriority.NORMAL)
    public void onRegionEnter(RegionEnterEvent e){
        e.getPlayer().sendMessage("You just entered " + e.getRegion().getId());
    }

    //Or to stop players from escaping jail:

    import com.mewin.WGRegionEvents.events.RegionLeaveEvent;
    ...

    @EventHandler(priority = EventPriority.NORMAL)
    public void onRegionLeave(RegionLeaveEvent e){
        if (e.getRegion().getId().equals("jail") && e.isCancellable()){ //You cannot cancel a region change if the player spawned (eg died) or disconnected.
            e.setCancelled(true);
            e.getPlayer().sendMessage("You cannot leave the jail!");
        }
    }

     


    What has been done:
    • The most recent original code has been rejuvenated with updated dependencies.
    • Added onDisable method.
    • Added onEnable and onDisable console logs.
    • Modified plugin version.
    Let me know if you find any bugs! I will try to get to them as soon as possible. Thank you. If you need to contact me desperately, add me on Skype (spencer.ryan.c).

Recent Updates

  1. IMPORTANT UPDATE
  2. Reverted Previous Change
  3. Code Cleaning

Recent Reviews

  1. DerEyve
    DerEyve
    1/5,
    Version: 2.1.0
    e.getRegion() doesnt work!! So its useless for me! Its only working with WorldEdit 6.1 and Java 7
  2. iPinkzs_
    iPinkzs_
    5/5,
    Version: 2.1.0
    Ook echt top dat je uitleg krijgt man!!!
    ik snap nu echt hoe t werkt -,- -=-=-=-=-
  3. altrisi
    altrisi
    3/5,
    Version: 2.1.0
    PLEASE READ FULL
    Don't download this. Download the original version, because the last update of this "Continued" version is on December 25th of 2015, and in the original the last update is on April 27th of 2016
    Thanks for reading. Hope it helped you,
  4. MrWouter
    MrWouter
    5/5,
    Version: 2.1.0
    Just about the most easy plugin API in the world. It is so easy that every developer can use. If you know how to use an event, you can use this!
  5. Weby
    Weby
    5/5,
    Version: 2.1.0
    Used the old one for years, using this one and it's still working great. Not sure if any update was needed, but thanks anyway ! Please share the sources so we can further improve it !
  6. Rezz
    Rezz
    5/5,
    Version: 2.1.0
    Thank you for continuing this! Extremely useful for interacting with WorldGuard regions, and more importantly, IT WORKS. :)
  7. Gianluca
    Gianluca
    5/5,
    Version: 2.1.0
  8. n0nnie
    n0nnie
    5/5,
    Version: 2.1.0
    This is working like a charm =)

    Thank you so much for your work.

    I hope your future plans include keeeping WGcustomFlags updated also
    1. S_Ryan
      Author's Response
      Supposedly WorldGuard will be adding custom flag support soon; however, I will update WGCustomFlags if the current version becomes outdated.
  9. Zeryther
    Zeryther
    5/5,
    Version: 2.1.0
    Awesome! Thank you so much for updating this project. I really need it for my server ^^

    ยป- Zeryther
  10. Hyrla
    Hyrla
    5/5,
    Version: 2.1.0
    Thank you very much for the updating ! :D
    Is there a way to make a donation ? (I will use it for my server, make sure I will donate something ;))
    1. S_Ryan
      Author's Response
      I won't be accepting any donations for this project since Its only a continued support for the original. But thank you for the offer. And thanks for the review.