Skip to content

Commit

Permalink
Remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
zrdzn committed Jul 30, 2023
1 parent 47574a9 commit 024eed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onEnable() {
if (pluginManager.getPlugin("PlaceholderAPI") == null) {
this.logger.warn("PlaceholderAPI plugin has not been found, external placeholders will not work.");
} else {
if (new GreatLifeStealExpansion(config, spigotServer.getDamageableAdapter(), server).register()) {
if (new GreatLifeStealExpansion(config, spigotServer.getDamageableAdapter()).register()) {
this.logger.info("PlaceholderAPI has been found and its expansion was successfully registered.");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import io.github.zrdzn.minecraft.greatlifesteal.elimination.EliminationConfig;
import io.github.zrdzn.minecraft.greatlifesteal.spigot.DamageableAdapter;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

Expand All @@ -16,12 +15,10 @@ public class GreatLifeStealExpansion extends PlaceholderExpansion {

private final PluginConfig config;
private final DamageableAdapter adapter;
private final Server server;

public GreatLifeStealExpansion(PluginConfig config, DamageableAdapter adapter, Server server) {
public GreatLifeStealExpansion(PluginConfig config, DamageableAdapter adapter) {
this.config = config;
this.adapter = adapter;
this.server = server;
}

@Override
Expand Down

0 comments on commit 024eed4

Please sign in to comment.