mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 04:19:28 +00:00
docs(HookPlaceholderAPI): documented class
This commit is contained in:
@@ -2,14 +2,20 @@ package com.hibiscusmc.hmccosmetics.hooks.placeholders;
|
||||
|
||||
import com.hibiscusmc.hmccosmetics.hooks.Hook;
|
||||
|
||||
/**
|
||||
* A hook that integrates the plugin {@link me.clip.placeholderapi.PlaceholderAPI PlaceholderAPI}
|
||||
*/
|
||||
public class HookPlaceholderAPI extends Hook {
|
||||
|
||||
public HookPlaceholderAPI() {
|
||||
super("PlaceholderAPI");
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws RuntimeException If PlaceholderAPI fails to register
|
||||
*/
|
||||
@Override
|
||||
public void load() {
|
||||
new HMCPlaceholderExpansion().register();
|
||||
public void load() throws RuntimeException {
|
||||
if (!new HMCPlaceholderExpansion().register())
|
||||
throw new RuntimeException("Failed to register PlaceholderExpansion");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user