API - Kirastur/DoorCloserNukkit GitHub Wiki

This plugin has a simple API. The API can be used to call DoorCloser's admin-functions from other plugins.

Get the API object with DoorCloserAPI doorCloserAPI = DoorCloserProvider.getAPI();

getTaskCount

public int getTaskCount()

Get the number of doors currently scheduled for close.

isDebug

public boolean isDebug()

Get the current debug status.

setDebug

public void setDebug(boolean newDebug)

Enable or disable the debug mode.

getOpenablesInScope()

public Set<Material> getOpenablesInScope()

Get a list of all openable materials in scope as defined in the config. Read-Only.

reload()

public void reload() throws DoorCloserException

Reload configuration from file.

⚠️ **GitHub.com Fallback** ⚠️