Paste #108124: onEnable

Date: 2023/03/30 06:56:10 UTC-07:00
Type: Java

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10


@Override 
public void onEnable() {
        if(getServer().getPluginManager().getPlugin("Citizens") == null || !getServer().getPluginManager().getPlugin("Citizens").isEnabled()) {
            getLogger().log(Level.SEVERE, "Citizens 2.0 not found or not enabled");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        createNPCs(); //Citizens API used here
}

Highlighting for 'Other' types handled by Highlight.JS, which was released under the BSD 3-Clause License.