All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Quill Notifications

Quill Notifications

by electrobrine • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Maintenance\ PRs Welcome

Quill Notifications

A small Library mod to handle sending notifications to players both online and offline with style!

Usage

This mod requires both Fabric API, and SQLib.

Use of Adventure API is not required but encouraged.

Once the mod is installed on your server, a config will be generated after the first launch. Be sure to edit this config and point it to a file path or a my sql database.

For Developers

Getting Started

To include this mod in your project simply add it as a dependency:

repositories {
    maven { url "https://api.modrinth.com/maven" }
    // adventure api is not strictly necessary but is helpful and will allow you to use Component messages
    maven {
        name = "sonatype-oss-snapshots1"
        url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
        mavenContent { snapshotsOnly() }
    }
}

dependencies {
    modImplementation("maven.modrinth:quill:1.2.3")
    // adventure api is not strictly necessary but is helpful and allow you to use Component messages
    modImplementation include("net.kyori:adventure-platform-fabric:6.4.0")
}

General Usage

Notification notification = NotificationBuilder.Notification(receiverUUID) // Initalize a new notification to be sent
    .setMessage(message) // setMessage() accepts String, MutableText, or Component variables (note that the notification will only save the last message set)
    .setStyle(Scribe.INFO) // setStyle() only works for String messages
    .setMetadata(jsonData) // inject json data into a message to be used with the event system
    .setSound(SoundEvents.BLOCK_BELL_USE) // set a soundevent to be played when notification is received
    .setCommands(commandString, commandString2) // set commands to be run when the notification is received
    .setCommandDelay(10, TimeUnit.SECONDS) // set a delay that your commands will delayed for after the notification is sent (you can also pass in just a number for the ammount of millies to delay by)
    .setExpiry(15, TimeUnit.MINUTES) // set a time from a message to expire, if the player doesnt come online before the expiry time elapes the notificaion will not be sent (you can also pass in just a number for the ammount of millies till expiry) 
    .build();
Pigeon.send(notification); // send the notification to the player

for (Notification message: QuillNotifications.getNotifications(receiverUUID)) { // get all pending notifications for a player (notifications are in order of oldest to newest)
    if (notification.getMessage().toString().equals("Test message plz delete")) message.cancel() // cancel a notification before it gets sent to the player
}

Event System

//the event system gives you a notification object to modify the notification data before it gets sent
QuillEvents.PRE_SEND_NOTIFICATION.register((notification) -> {
  System.out.println(notification.getPlayerEntity().getName().getString());
  //returning true allows the message to be sent, returning false will stop the
  //returning false will stop the message from being seen
  return true;
  // Do cool things with metadata or the other varibles idk the event system is your oyster.
});

How to Install Quill Notifications (Mod)

Quill Notifications by electrobrine is verified for Fabric, Quilt across Minecraft versions 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1 (latest release: 1.2.3, file size: 977 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1) and platform (Fabric, Quilt).
  2. Make sure you have the compatible loader or environment installed for Fabric, Quilt.
  3. Move the downloaded Quill Notifications file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x 1.20.x 1.19.x +3
Fabric Quilt
last yr. 1
1.21 1.20.x 1.19.x +3
Fabric Quilt
last yr. 1
1.21 1.20.x 1.19.x +3
Fabric Quilt
last yr. 1
1.21 1.20.x 1.19.x +3
Fabric Quilt
last yr. 1
1.21 1.20.x 1.19.x +3
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +2
Fabric
last yr. 1
[1.2.3] Quill Notifications 1.2.3 by electrobrine on Jul 20, 2025
Download
Updated to 1.21.5 (it's ready for 1.21.8 but adventure api isnt updated)
[1.2.2] Quill Notifications 1.2.2 by electrobrine on Jul 22, 2024
Download
Updated to newest SQLib versions
if updating from a previous Quill Versions your database will have to be cleared
[1.2.1] Quill Notifications 1.2.1 by electrobrine on Jul 08, 2024
Download
Fixed message expiry issue
[1.2] Quill Notifications 1.2 by electrobrine on Jun 23, 2024
Download
added ability to have messages expire after a set period of time
Updated to 1.21
hope no buggies
[1.1.9] Quill Notifications 1.1.9 by electrobrine on May 16, 2024
Download
Updated to 1.20.6
[1.1.8] Quill Notifications 1.1.8 by electrobrine on Jan 15, 2024
Download
Updated to 1.20.4
[1.1.7] Quill Notifications 1.1.7 by electrobrine on Nov 19, 2023
Download
fixed cancel method
[1.1.6] Quill Notifications 1.1.6 by electrobrine on Nov 19, 2023
Download
fixed issues with not properly handling uuid in getNotifications
[1.1.5] Quill Notifications 1.1.5 by electrobrine on Nov 19, 2023
Download
fixed null pointer from getNotifications when being called on a player with no notifications
[1.1.4] Quill Notifications 1.1.4 by electrobrine on Nov 17, 2023
Download
fixed issue where notifications where not properly clearing from the database
added getNotifications to QuillNotifications to get pending notifications of a player
added .cancel() method to Notification objects to cancel a notification before it's sent
[1.1.3] Quill Notifications 1.1.3 by electrobrine on Nov 16, 2023
Download
Changed join code to handle empty messages properly
[1.1.2] Quill Notifications 1.1.2 by electrobrine on Nov 16, 2023
Download
added .send() to NotificationBuilder
made it so commands no longer require "/" prefix
[1.1.1] Quill Notifications 1.1.1 by electrobrine on Nov 16, 2023
Download
updated sqlib, Frick You MrNavaStar
[1.1.0] Quill Notifications 1.1.0 by electrobrine on Nov 16, 2023
Download
Created notification object to give better control over Notification.
Updated SQLib to use new joint database.
Added command support to allow you to run commands.
Added Notify command
Quill Notifications Icon
Download Quill Notifications
Select game version
Select platform