import org.bukkit.plugin.JavaPlugin;

public class @pluginName@ extends JavaPlugin {
    @Override
    public void onEnable() {
    }
}

import org.bukkit.plugin.java.JavaPlugin;

public class @pluginName@ extends JavaPlugin {
    @Override
    public void onEnable() {
    }
}

Use correct import for JavaPlugin