
org.bukkit.plugin.PluginBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package org.bukkit.plugin;
/**
* Represents a base {@link Plugin}
*
* Extend this class if your plugin is not a {@link
* org.bukkit.plugin.java.JavaPlugin}
*/
public abstract class PluginBase implements Plugin {
@Override
public final int hashCode() {
return getName().hashCode();
}
@Override
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof Plugin)) {
return false;
}
return getName().equals(((Plugin) obj).getName());
}
public final String getName() {
return getDescription().getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy