S

Make it so multiple people can sign a item, this update must apply to already signed items aswell. (there should be one line between each signing)

Kodari AI
KodariAug 27 at 4:42 pm 1
  1. Allow /sign on items that already have the signing marker.

  2. Add one blank lore line before each additional signature, preserving all existing lore and signatures.

Updated /sign to support multiple signers:

  • Already signed items can now be signed again.

  • A blank lore line is added between each signature.

  • Existing lore and signatures remain unchanged.

  • The signed marker is still preserved for compatibility with already signed items.

S

I dont want the same player to be able to sign the same item

Kodari AI
KodariAug 28 at 1:01 pm 1
  1. Track signer UUIDs in item metadata for reliable duplicate prevention.

  2. For items signed before this change, detect the current player from existing signature lore before allowing another signature.

  3. Keep the existing multi-signature format with one blank line between signatures.

Updated duplicate-signing prevention:

  • A player can no longer sign the same item more than once.

  • New signatures are tracked by UUID in item metadata.

  • Existing signed items are supported by checking their existing signature lore.

  • Other players can still sign the item, with one blank line between signatures.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
5 255
src/main/java/com/actualbuca/turtlesigning/TurtleSigningPlugin.java
package com.actualbuca.turtlesigning;

import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class TurtleSigningPlugin extends JavaPlugin {

    private NamespacedKey signedKey;
    private NamespacedKey signersKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        signedKey = new NamespacedKey(this, "signed");
        signersKey = new NamespacedKey(this, "signers");
        getCommand("sign").setExecutor(new SignCommand(this));
    }

    public NamespacedKey getSignedKey() {
        return signedKey;
    }

    public NamespacedKey getSignersKey() {
        return signersKey;
    }
}