center]
VexAPI Developer Documentation[/center]
Introduction
VexAPI is a modular API plugin designed to help developers build optimized and well-structured plugins.
It provides utility classes, performance tracking, and event handling for better server-side efficiency.
This documentation explains how to set up, integrate, and use its main features in your own projects.
Setup
1. Download and install VexAPI on your server.
2. Add it as a dependency in your plugin.yml:
Code (Text):
depend: [VexAPI]
3. Reference it in your code with:
Code (Text):
import com.vexapi.api.VexAPI;
Core Components
VexLogger – Simple logging system for consistent plugin messages
VexConfig – Handles YAML configuration loading and saving
VexEvents – Provides custom events for optimization and server hooks
VexStats – Offers performance data access (TPS, MSPT, entities, chunks)
Example: Using the API
Code (Text):
VexAPI api = VexAPI.getInstance();
api.getLogger().info("VexAPI is working!");
Integration Tips
• Keep your plugin lightweight — VexAPI already provides optimization utilities.
• Use event listeners for performance updates instead of constant polling.
• Combine with VexOptimizator for the best results.
Support
For integration examples, visit the GitHub repository or join the Discord community:
GitHub](https://github.com/VeX4eto4777/VexAPI]GitHub) Repository
Discord](https://discord.gg/EH7afrRCQv]Discord) Server