RegionEnterEvent does not work

Discussion in 'Plugin Development' started by TimPlaysify, Aug 27, 2014.

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

    TimPlaysify

    Hey guys,
    I don't speak english good and I'm not good in developing. :D But I have an error... I think something with my RegionEnterEvent :rolleyes:
    The Log:
    Code:
    [GunGame] Plugin GunGame v1.0 has failed to register events for class me.timplaysify.gungame.GunGame because com/mewin/WGRegionEvents/events/RegionEnterEvent does not exist.
    Code:java
    1. @EventHandler
    2. public void onRegionEnter(RegionEnterEvent e) {
    3. if(e.getRegion().getId().equals("gungame")) {
    4. Player p = e.getPlayer();
    5. p.sendMessage(prefix + "Du hast GunGame betreten! Viel Spaß!");
    6. gg.add(p.getName());
    7. Clear(p);
    8. p.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));
    9. p.getInventory().addItem(new ItemStack(Material.GOLDEN_APPLE));
    10. ParticleEffect.HAPPY_VILLAGER.display(p.getLocation(), 1, 1, 1, 1, 30);
    11. }
    12. }

    Code:
    name: GunGame
    version: 1.0
    author: TimPlaysify
    main: me.timplaysify.gungame.GunGame
    Thank you for coming help! :)
     
  2. Offline

    ITaco

    Are you registering your event on you onEnable() ? It would help to see. All your code
     
  3. Offline

    Jimfutsu

    TimPlaysify
    If you read the stack trace, it says that the Event does not exist. I personally have never heard of it either. I think what you are trying to achieve is to create a cuboid, and when the player enters the cuboid something happens.
     
  4. Offline

    TheOddPuff

    TimPlaysify

    Try adding this to your plugin.yml:

    depend: [WGRegionEvents]
     
Thread Status:
Not open for further replies.

Share This Page