Skip to content

4.1.0

Choose a tag to compare

@Chamogelastos Chamogelastos released this 06 Nov 15:40
· 2 commits to main since this release
b89d295

For Administrators

If you have a plugin that clearly states you need to have SQDLib installed for it to work, where can you download
it? Well, you can get it from either Modrinth (Not yet approved)
or GitHub Releases. Warning, though: because SQDLib changes a lot, very
fast
that can do it so that 1 version works while the other just breaks all the plugins which may use an older or newer version
of SQDLib.

For Developers

This release mostly changes Paper-side things, introducing new dialog types!

Dialog Changes

SimpleDialog is now fully static, and new SimpleDialog(Plugin) is now deprecated and scheduled for removal in 4.2.0. The reason this change was made is because of internal implementation not needing the listener and thus not needing the plugin to register the listener.

New Dialogs

This version brings 3 new dialog types to choose:

  • EnchantmentChoiceDialog
  • MultiChoiceDialog
  • OneChoiceDialog

The names should be pretty descriptive, and all of them provide a building-style approach instead of a big method.

Using SQDLib

Bundling (Recommended)

Adding the repository

repositories {
    maven {
        name = "chamosmpRepoReleases"
        url = uri("https://maven.chamosmp.net/releases")
    }
}

Adding the dependency (Plugin)

plugins {
    // Adding the shadow plugin
    id("com.gradleup.shadow") version "9.6.1"
}

dependencies {
    // You can replace "paper" with the following platforms:
    // velocity, bungee, spigot
    implementation("com.sqdstudios.sqdlib:sqdlib-paper:4.1.0")
}

tasks {
    // The shadowJar configuration
    shadowJar {
        configurations = project.configurations.runtimeClasspath.map { setOf(it) }

        relocate("com.sqdstudios.sqdlib", "(your plugin group).libs.sqdlib")
    }
}

Adding the dependency (Mod)

dependencies {
   include(implementation("com.sqdstudios.sqdlib:sqdlib-fabric:4.1.0")!!)
}
Mod/Plugin Dependency (Not Recommended)

Adding the repository

repositories {
    maven {
        name = "chamosmpRepoReleases"
        url = uri("https://maven.chamosmp.net/releases")
    }
}

Adding the dependency (Plugin)

When using a paper-plugin.yml, make sure you have join-classpath: true when using this, or else you'll get class not
found exceptions

dependencies {
    // You can replace "paper" with the following platforms:
    // velocity, bungee, spigot
    compileOnly("com.sqdstudios.sqdlib:sqdlib-paper:4.1.0")
}

Adding the dependency (Mod)

dependencies {
    compileOnly("com.sqdstudios.sqdlib:sqdlib-fabric:4.1.0")
}

Full Changelog: 4.0.0...4.1.0