mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
onEnable and onDisable are no longer required implementations for JavaPlugins
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
11220aa522
commit
e423860f9f
1 changed files with 5 additions and 2 deletions
|
@ -20,7 +20,6 @@ import org.bukkit.command.CommandSender;
|
|||
import org.bukkit.command.PluginCommand;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.PluginDescriptionFile;
|
||||
|
@ -333,7 +332,11 @@ public abstract class JavaPlugin implements Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
public void onLoad() {} // Empty!
|
||||
public void onLoad() {}
|
||||
|
||||
public void onDisable() {}
|
||||
|
||||
public void onEnable() {}
|
||||
|
||||
public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) {
|
||||
getServer().getLogger().severe("Plugin " + getDescription().getFullName() + " does not contain any generators that may be used in the default world!");
|
||||
|
|
Loading…
Reference in a new issue