Static Logger

This utility allows you to statically log messages using the Bukkit logging system, with the added benefit of a configurable variable to disallow logging "non-required" log messages, but also that restriction can be bypassed under some conditions.

Example
public class ExamplePlugin extends AluminaPlugin {

    @Override
    public void load() {

    }

    @Override
    public void enable() {
        Logs.setDisabled(true); // Disable non-essential logs
        
        Logs.INFO.print("Hello, world!"); // This is a non-essential log
        
        Logs.INFO.print("Bye, world.", true); // This is an essential log
    }

    @Override
    public void disable() {

    }

}

Last updated