mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-24 19:46:09 +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.
|
||||
*/
|
||||
public class MVConfigReloadEvent extends Event {
|
||||
private List<String> configsLoaded;
|
||||
private final List<String> configsLoaded;
|
||||
|
||||
public MVConfigReloadEvent(List<String> configsLoaded) {
|
||||
this.configsLoaded = configsLoaded;
|
||||
|
@ -15,11 +15,12 @@ import org.bukkit.event.HandlerList;
|
||||
/**
|
||||
* 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 {
|
||||
private Player player;
|
||||
private final Player player;
|
||||
private final String respawnMethod;
|
||||
private Location location;
|
||||
private String respawnMethod;
|
||||
|
||||
|
||||
public MVRespawnEvent(Location spawningAt, Player p, String respawnMethod) {
|
||||
this.player = p;
|
||||
|
Loading…
Reference in New Issue
Block a user