mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-28 13:36:21 +01:00
Cleanup MVConfigReloadEvent and deprecate MVRespawnEvent
This commit is contained in:
parent
c0ceb4f993
commit
07ed9fbc48
@ -16,7 +16,7 @@ import org.bukkit.event.HandlerList;
|
|||||||
* Called when the Multiverse-config should be reloaded.
|
* Called when the Multiverse-config should be reloaded.
|
||||||
*/
|
*/
|
||||||
public class MVConfigReloadEvent extends Event {
|
public class MVConfigReloadEvent extends Event {
|
||||||
private List<String> configsLoaded;
|
private final List<String> configsLoaded;
|
||||||
|
|
||||||
public MVConfigReloadEvent(List<String> configsLoaded) {
|
public MVConfigReloadEvent(List<String> configsLoaded) {
|
||||||
this.configsLoaded = configsLoaded;
|
this.configsLoaded = configsLoaded;
|
||||||
|
@ -15,11 +15,12 @@ import org.bukkit.event.HandlerList;
|
|||||||
/**
|
/**
|
||||||
* Called when a player is respawning.
|
* Called when a player is respawning.
|
||||||
*/
|
*/
|
||||||
|
// todo: remove or update its usage. The respawnMethod is always "compatibility" for some reason
|
||||||
|
@Deprecated
|
||||||
public class MVRespawnEvent extends Event {
|
public class MVRespawnEvent extends Event {
|
||||||
private Player player;
|
private final Player player;
|
||||||
|
private final String respawnMethod;
|
||||||
private Location location;
|
private Location location;
|
||||||
private String respawnMethod;
|
|
||||||
|
|
||||||
|
|
||||||
public MVRespawnEvent(Location spawningAt, Player p, String respawnMethod) {
|
public MVRespawnEvent(Location spawningAt, Player p, String respawnMethod) {
|
||||||
this.player = p;
|
this.player = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user