Imports & Context

Which packages are available without an explicit import.

The following imports are pre-declared inside execute java and .jv modules, so you don’t need to repeat them:

  • org.bukkit.*
  • org.bukkit.block.*
  • org.bukkit.command.*
  • org.bukkit.entity.*
  • org.bukkit.event.*
  • org.bukkit.event.player.*
  • org.bukkit.inventory.*
  • org.bukkit.util.*
  • ch.njol.skript.*
  • ch.njol.skript.variables.*

For anything else, use the fully-qualified class name directly in your code (e.g. java.util.List<String>) — a block compiles as a method body, not a standalone compilation unit, so you can’t write your own import statements inside it.