Configure advanced resets for your world and other plugins
EzSeasons brings dynamic, customizable seasons to your Minecraft server! Enhance gameplay with changing weather, temperature, and unique seasonal events. Perfect for survival, roleplay, and SMP servers.
/season - View current season/season set <season> - Set the current season (admin)/season reload - Reload configAll settings are in plugins/EzSeasons/config.yml.
EzSeasons provides a simple API for developers to integrate seasonal features into their own plugins.
Download the latest EzSeasons.jar and add it to your plugin's build path or local libs folder. No Maven repository is required.
To hook your plugin into EzSeasons, implement the SeasonsIntegration interface and register it at runtime:
import com.skyblockexp.lifesteal.seasons.api.SeasonsApi;
import com.skyblockexp.lifesteal.seasons.api.SeasonsIntegration;
public class MySeasonsIntegration implements SeasonsIntegration {
@Override
public void onRegister(SeasonsApi api) {
// Subscribe to season events, interact with API, etc.
}
@Override
public void onUnregister() {
// Cleanup if needed
}
}
// Register your integration (e.g. in your plugin's onEnable):
SeasonsApi api = ... // obtain from EzSeasons
api.registerIntegration(new MySeasonsIntegration());
You can access the EzSeasons API via the plugin instance:
SeasonsApi api = com.skyblockexp.lifesteal.seasons.EzSeasonsPlugin.getInstance().getApi();
com.skyblockexp.lifesteal.seasons.api.Season current = api.getCurrentSeason(world);
String name = current.getName();
You can listen for season changes using the Bukkit event system:
@EventHandler
public void onSeasonChange(com.skyblockexp.lifesteal.seasons.api.event.SeasonChangeEvent event) {
com.skyblockexp.lifesteal.seasons.api.Season newSeason = event.getNewSeason();
// Your code here
}
getCurrentSeason(World world): Get the current season for a worldgetSeasonByName(String name): Get a season by its namegetAllSeasons(): List all configured seasonssetSeason(World world, Season season): Set the current seasongetSeasonLength(Season season): Get the length of a seasonregisterSeasonListener(SeasonListener listener): Register a custom listenerYou can use the API to:
For help, suggestions, or bug reports:
EzSeasons is a standalone seasons framework. Any plugin can integrate via the public API.