Dev Events

From MBedwars
Revision as of 16:05, 8 November 2016 by Marcely1199 (talk | contribs) (Created page with "As any other plugin this plugin also supports events.<br /> You don't need to change much at your code,<br /> you simply add a MBedwars event like the way you did with the Buk...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

! Legacy Warning !

You are currently visiting a prehistoric website of the Marcely's Bedwars plugin for v4 and older.

In 2021, we released version 5 and completely overhauled the wiki. A lot of information that you find here likely won't be up-to-date anymore. You may find the updated wiki on: https://wiki.mbedwars.com

As any other plugin this plugin also supports events.
You don't need to change much at your code,
you simply add a MBedwars event like the way you did with the Bukkit/Spigot events.
Currently these MBedwars exists:
=== de.marcely.bedwars.api.PlayerJoinArenaEvent ==
This event will be executed when a player is entering a arena.

Constructor: PlayerJoinArenaEvent(Player player, Arena arena, boolean success)
Methods:

  • Player getPlayer()
  • Arena getArena()
  • boolean wasSuccessfull()