Global Variables
Drupi uses global variables to give users access to commonly required features or functions.
http - Drupi's HTTP Manager, used for sending HTTP requests.
color - simple function used for coloring text.
database - access to Drupi's DatabaseManager.
placeholderapi - access to Drupi's PlaceholderAPI expansion.
event - used for creating and removing event listeners.
server - the Server that Drupi is running on.
drupi - the Drupi instance, useful for low-level modules that need direct access to Drupi's core.
plugin - the Drupi plugin instance.
manager - Drupi's Function Manager, used for other functions.
command - Drupi's Command Manager, used for creating commands.
cast - used for Java type casting. Example: casting a CommandSender to a Player.
logger - Drupi's console logger.
variable - access to Drupi's variable system, useful for storing persistent data.
scoreboard - Drupi's Scoreboard API for creating dynamic sidebars.
material - Drupi's Material Manager, useful for making simple changes to Materials and ItemStacks.
socket - Drupi's Socket Manager, can be used for connecting to Socket.IO servers.
Express - The Express API, can be used for creating HTTP APIs with Drupi.
TitleManager - access to Drupi's TitleManager expansion. Requires the TitleManager plugin.
LabyModAPI - access to Drupi's LabyModAPI expansion. Requires the LabyMod Server API plugin.
PlaceholderAPI - access to Drupi's PlaceholderAPI expansion. Requires the PlaceholderAPI plugin.
WorldGuard - access to Drupi's WorldGuard expansion. Requires the WorldGuard plugin.
Holograms - access to Drupi's Holograms expansion. Requires the Holograms plugin.
Last updated
Was this helpful?