-
Notifications
You must be signed in to change notification settings - Fork 0
Creating main class
ancap-kun edited this page Feb 13, 2023
·
5 revisions
Creating a plugin for AncapFramework is identical to creating a plugin for Bukkit Framework, except that you must inherit not from JavaPlugin, but from AncapPlugin.
The following is what the main class of a plugin written on the AncapFramework should look like. Note that the onEnable() method calls onEnable() from the superclass.
public final class AncapLibrary extends AncapPlugin {
@Override
public void onEnable() {
super.onEnable();
// code
}
}-
Создание плагина
- Создание main-класса
- Настройка ancapplugin.yml
- Использование AncapPluginAPI
- Использование LanguageAPI
- Использование CommunicatorAPI
- Использование ConfigurationAPI
- Использование CommandAPI
- Использование DatabaseAPI
- Использование EventAPI
- Использование MaterialAPI
- Использование WorldIteratorAPI
- Использование BukkitUtil
- Использование ResourceAPI
-
- Creating main class
- Setting up the ancapplugin.yml
- Using the AncapPluginAPI
- Using the LanguageAPI
- Using the CommunicatorAPI
- Using the ConfigurationAPI
- Using the CommandAPI
- Using the DatabaseAPI
- Using the EventAPI
- Using the MaterialAPI
- Using the WorldIteratorAPI
- Using the BukkitUtil
- Using the ResouceAPI