Cleanup MVConfigReloadEvent and deprecate MVRespawnEvent

This commit is contained in:
Ben Woo 2024-11-23 21:28:05 +08:00
parent c0ceb4f993
commit 07ed9fbc48
2 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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;