Deprecated PluginDependent

This commit is contained in:
Auxilor
2022-10-02 01:57:13 +01:00
parent 048982c74a
commit 2b2406a4d0

View File

@@ -28,8 +28,7 @@ public abstract class DisplayModule {
*/
protected DisplayModule(@NotNull final EcoPlugin plugin,
@NotNull final DisplayPriority priority) {
this.plugin = plugin;
this.weight = priority.getWeight();
this(plugin, priority.getWeight());
}
/**
@@ -40,7 +39,7 @@ public abstract class DisplayModule {
*/
protected DisplayModule(@NotNull final EcoPlugin plugin,
final int weight) {
super(plugin);
this.plugin = plugin;
this.weight = weight;
}
@@ -108,7 +107,7 @@ public abstract class DisplayModule {
* @return The plugin name.
*/
public final String getPluginName() {
return super.getPlugin().getName();
return this.getPlugin().getName();
}
/**