bukkure.bukkit

broadcast

(broadcast fmt & args)

Broadcast a message to all online players

broadcast-permission

(broadcast-permission permission fmt & args)

Broadcast a message to all online players with a permission

cancel-task

(cancel-task task-id)

Cancel a task by it’s id

delayed-task

(delayed-task plugin fn delay & [async?])

Execute a given function on the main UI thread after a delay in server ticks (1 tick = 1/20 second), will return a task id you can use to cancel the task - if you specify async?, take care not to directly call any Bukkit API and, by extension, and clj-minecraft functions that use the Bukkit API within this function

online-players

(online-players)

Get a list of online players as Player objects

plugin-manager

(plugin-manager)

Returns the plugin manager for the server

queued-task?

(queued-task? task-id)

Check if a task is queued

repeated-task

(repeated-task plugin fn delay period & [async?])

Execute a given function repeatedly on the UI thread, delay and period in server ticks. If you specify async?, take care not to directly call any Bukkit API and, by extension, and clj-minecraft functions that use the Bukkit API within this function

running-task?

(running-task? task-id)

Check if a task is currently running

scheduler

(scheduler)

Returns the scheduler for the server

seconds-to-ticks

(seconds-to-ticks s)

server

(server)

Returns an instance of the server

services-manager

(services-manager)

Returns the services manager

ui-sync

(ui-sync plugin fn)

Execute a given function on the main UI thread

world-by-name

(world-by-name name)

Get a world by it’s name

world-by-uuid

(world-by-uuid uuid)

Get a world by it’s uuid

worlds

(worlds)

Get the worlds for the server