Skip to content

Releases: Jaimss/mcutils

v2.2.12 - 1.18 support

21 Dec 21:20
Compare
Choose a tag to compare

Update spigot dependency to 1.18

v2.2.11

26 Jun 23:30
Compare
Choose a tag to compare
try/catch for loading dependencies with PDM

v2.2.6

26 Jan 15:22
bfa34d3
Compare
Choose a tag to compare

Made some changes, things should run a bit faster and added a bunch of new things in 2.2.5 that I didn't make a release for.

v2.1.3 - Event Listener & Command Handler

28 Sep 20:12
60330ee
Compare
Choose a tag to compare

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

23 Sep 19:25
e5246f5
Compare
Choose a tag to compare

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

24 Aug 05:30
7870f31
Compare
Choose a tag to compare

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

23 Jul 03:20
Compare
Choose a tag to compare
  • 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)

Read the docs!
Join my discord if you have questions!

v2.0.5

20 Jul 21:36
Compare
Choose a tag to compare

Fixed Inclusion of the common module

added a method for sending a message to a list of players/proxiedplayers

v2.0.4

20 Jul 19:50
Compare
Choose a tag to compare

Update the defaults for setGlow and setUnbreakable in the ItemBuilder

Fixed an error in the common package for getTimeFormatted

v2.0.3

20 Jul 19:15
34b1314
Compare
Choose a tag to compare

Updated the README to properly show how to include this in your project.

Added a github action to automatically create packages.