Releases: Jaimss/mcutils
Releases · Jaimss/mcutils
v2.2.12 - 1.18 support
v2.2.11
v2.2.6
v2.1.3 - Event Listener & Command Handler
Added an Event Listener and Command Handler to the project. These are both extensions of Plugin
.
plugin.listenForEvent<Event>(. . .)
plugin.handleCommand<CommandSender>(. . .)
See the documentation for information or ask at https://discord.jaims.dev.
v2.1.2 - Event Waiter & Item Builder Update
In this update, we did the following
- added an event waiter to wait for an event, then unregister immediately. This removes the need for all the boilerplate of adding a list of users who you are waiting for, or even a map of cooldowns. It lets you do something as simple as the following all in your command.
- add an idiomatic item builder. deprecated the old one.
plugin.waitForEvent<AsyncPlayerChatEvent>(
timeoutTicks = 20 * 10 // 10 seconds,
timeoutAction = { sender.send("Took too long :(") } // timeout action for the above timeout ticks,
predicate = { it.player.uniqueId == sender.uniqueId } // only run if the command sender is the player,
action = {
val word = "Your word was ${it.message}."
sender.send(word.colorize())
}
)
v2.1.1 - New Repository & Small Changes
I made some small changes as well as added mcutils to my repo.
Please read the wiki on how to include mcutils!
v2.1.0
- Added registering of listeners and events to both bukkit and bungeecord
- added getName and getUUID to the common package
- added sending lists of messages
- added sending a message to a list of players
- added sending a list of messages to a list of players
- added getInputType so you can see if a user input is a uuid or a regular name (can be good for getting information about offline players)