Refactoring

This commit is contained in:
GeorgH93 2020-05-22 01:38:40 +02:00
parent e685f28680
commit e3dbc6b849
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 8 additions and 11 deletions

View File

@ -21,12 +21,10 @@
import org.bukkit.event.Listener;
import lombok.AllArgsConstructor;
@AllArgsConstructor
abstract class MinepacksListener implements Listener
{
protected final Minepacks plugin;
protected MinepacksListener(Minepacks plugin)
{
this.plugin = plugin;
}
}

View File

@ -20,18 +20,17 @@
import at.pcgamingfreaks.Minepacks.Bukkit.Minepacks;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.world.WorldInitEvent;
import org.jetbrains.annotations.NotNull;
import lombok.AllArgsConstructor;
import java.util.Locale;
@AllArgsConstructor
public class WorldBlacklistUpdater implements Listener
public class WorldBlacklistUpdater extends MinepacksListener
{
private final @NotNull Minepacks plugin;
public WorldBlacklistUpdater(final @NotNull Minepacks plugin)
{
super(plugin);
}
@EventHandler
public void onWorldInit(final WorldInitEvent event)