Sueta

Stratos Events

1.1

A small plugin that adds events to the Stratos World Generator Plugin

·Plugin

Stratos Events is an addon for the Stratos World Generator plugin.
It adds a new biome change event and some funtions, that are easier to access than in Stratos itself (they just exist because i needed them for the event).

Events (net.kettlemc.stratosapi.event):

  • StratosBiomeChangeEvent
    • getOldBiome()
    • getNewBiome()
    • getPlayer()
@EventHandler
public void onBiomeChange(StratosBiomeChangeEvent event) {
   Player player = event.getPlayer();
   player.sendMessage("You went from " + event.getOldBiome().getName() + " to " + event.getNewBiome().getName());
}

Functions (net.kettlemc.stratosapi.stratos.API):

  • getBiomeAtLocation(Location loc)
  • getBiomeAtPlayer(Player player)
  • isInStratosWorld(Player player)

Similar projects

Plugin →