Dev Events
! 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()