Skip to content

Implementatation JavaPlugin_kr

Cupelt edited this page Jan 4, 2026 · 2 revisions

BukkitApi Plugin을 구성하기 위해서는 JavaPlugin을 상속 받은 클래스가 있어야 합니다

public final class PrismAnchorExample extends AbstractPlugin {

    @Override
    public void onPluginEnable() {
        // When plugin enabled
        getLogger().info("Plugin allowed!");
    }

    @Override
    public void onPluginDisable() {
        // When plugin enabled
    }
}

onPluginEnable() 은 플러그인의 초기화가 완료 되었을 때 실행될 함수입니다.

  • 기존 Papaer/Spigot의 JavaPlugin#OnEnable() 과 동일합니다.

onPluginDisable() 은 플러그인이 종료 되었을 때 실행될 함수입니다.

  • 기존 Papaer/Spigot의 JavaPlugin#OnDisable() 과 동일합니다.

여기까지는 기존 플러그인과 다른 점이 없습니다.


이 다음에는 무엇을 해야 하나요?

← (Installation) Previous Page | Next Page (Command Options) →

Plugin Description / 목차

🏃‍♂️ Getting Started

  • First steps ()
  • Implementation JavaPlugin ()
    • Command Options ()
    • Custom Inventory ()
      • Item Executor ()
      • Pagination Inventory ()
      • Inventory Templates ()
  • Advanced Usage(한)
    • Component (한)
    • Item Preset (한)
    • Inventory GUI (한)
    • SQL/Redis (한)
  • Usage Utils ()
    • Component ()
    • Auto Register ()
    • Compose YamlConfiguration ()
  • More Utilities ()

Clone this wiki locally