Interface Capabilities


public interface Capabilities
What the unified API supports on the server this plugin runs on. Available as ctx.capabilities.

 if (!ctx.capabilities.supports(Capability.BANK_WITHDRAW)) {
     log.warn("No bank withdraw on {}: {}", ctx.server(), ctx.capabilities.note(Capability.BANK_WITHDRAW));
     return;
 }
 

A capability nobody has evidence for is Support.UNKNOWN, never Support.UNSUPPORTED. supports is true only for Support.SUPPORTED and Support.PARTIAL; a plugin that wants to try an unknown verb anyway should check support(c) != Support.UNSUPPORTED instead.