BukkitOfUtils
Welcome to the main wiki page of BukkitOfUtils!
We will be calling BukkitOfUtils " BOU " from here on out to simplify things.
What is it?
BOU is a Bukkit plugin and API designed to ease the development process of making Bukkit plugins that also include support for Folia.
How does it work?
When downloading a plugin that uses BOU, you also need to install the BOU plugin itself. This can be found here: https://www.spigotmc.org/resources/118276/
It works by adding all the necessary code for each plugin to work as a centralized plugin.
Natively Supported
Below are the platforms and versions that BOU supports so far.
Bukkit Platforms
Minecraft Versions
Fire Strings
What is a String?
A string is a sequence of letters, numbers, and symbols.
Examples
Hello, World!
12345
A string is usually enclosed in double quotes ("
).
Examples
"Hello my name is Drak and this is a very long string."
"t"
What is a Fire String?
A Fire String is a string of text that can be sent to the BOU plugin to execute a function.
Inputs for Fire Strings
Fire Strings take an identifier and a string of text that will be used to execute a function.
Examples Note: The following are the current complete list of Fire Strings (as examples) as of 9/18/2024 USA Date Format
.
(console) save-all
This will run the command
/save-all
as the console.
(player) Drakified spawn
This will run the command
/spawn
as the player with the nameDrakified
.
(consolechat) save-all
This will run the command
/save-all
as the console.Might be used to chat as the console in later versions.
(playerchat) Drakified Hi! I am Drak, and I am a developer.
This will send the message
Hi! I am Drak, and I am a developer.
as the player with the nameDrakified
.
(message) Drakified &cHello, &lWorld!
This will send the message
&cHello, &lWorld!
to the player with the nameDrakified
.
(title) Drakified &cHello\n&lWorld!
This will send a title to the player with the name
Drakified
with the title&cHello
and the subtitle&lWorld!
.
(broadcast) &cHello, &lWorld!
This will broadcast the message
&cHello, &lWorld!
to all players on the server.This is a global message.
(broadcasttitle) &cHello\n&lWorld!
This will send a title to all players on the server with the title
&cHello
and the subtitle&lWorld!
.This is a global title.
Placeholders
You can use PlaceholderAPI to use BOU's placeholders in other areas of your server!
Our Placeholders
Placeholder | Description |
---|---|
| The amount of loaded BOU-dependant plugins on your server. |
| The amount of BOU's |
| Colorizes |
For Developers
The plugin also comes with a nice API for developers to use.
Example Plugin
There is an example plugin found here: https://github.com/ProjectsForAll/ExampleProject
API
Grab the API for your project with this:
Add Repositories
Gradle Repo
Maven Repo
Add Dependencies
Gradle Dep
Maven Dep
API Usage
The following will help you understand the API.
Correct Scheduling (Folia AND Bukkit Support)
Notice: In order to support Folia, we have added a special Universal Scheduler to the plugin.
Entities and the EntityUtils class
Async Task Timers (Repeating and Delayed Timers)
The API supplies a nice Task Timer class.
NOTICE: These Task Timers automatically run asynchronously. So, when you are calling something that needs to be run synchronously, such as anything entity, location, or world-related, you must use the TaskManager class to make them run synchronously (on the Bukkit / Folia main thread).
Basic Repeating Timer This is a basic repeating timer.
Simple Configurations
The following is a simple example configuration using BOU's built-in SimpleConfiguration
class.