mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-15 10:55:20 +01:00
Refactoring
This commit is contained in:
parent
e685f28680
commit
e3dbc6b849
@ -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;
|
||||
}
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user