pankajpmc

Add a feature to show case hand items, Inventory, echest in chat for hand item we can type [i] to show if someone click on this chat a 3 row INVENTORY GUI will open and the item will show in middile of the INVENTORY GUI. players can only see can't take or obtain.

Kodari AI
KodariJul 17 at 6:47 am 1

The generation was stopped before any content could be produced.

pankajpmc

show mention titles to actionbar instead of title and subtitle

Kodari AI
KodariOct 31 at 2:31 pm 1
  1. Add clickable chat showcases for the held item, inventory, and ender chest, with read-only viewer GUIs.

  2. Change mention notifications from title/subtitle to the action bar.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
13 961
src/main/java/com/lucifer/pmcchatmention/PmcChatMention.java
package com.lucifer.pmcchatmention;

import com.lucifer.pmcchatmention.bedrock.BedrockHelper;
import com.lucifer.pmcchatmention.command.ChatMentionCommand;
import com.lucifer.pmcchatmention.command.MentionCommand;
import com.lucifer.pmcchatmention.config.ConfigManager;
import com.lucifer.pmcchatmention.cooldown.CooldownManager;
import com.lucifer.pmcchatmention.listener.MentionListener;
import com.lucifer.pmcchatmention.listener.ProtectionListener;
import com.lucifer.pmcchatmention.security.SecurityInjector;
import com.lucifer.pmcchatmention.toggle.ToggleManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PmcChatMention extends JavaPlugin {

    private ConfigManager configManager;
    private CooldownManager cooldownManager;
    private ToggleManager toggleManager;
    private SecurityInjector securityInjector;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        configManager = new ConfigManager(this);
        cooldownManager = new CooldownManager();
        toggleManager = new ToggleManager();
        securityInjector = new SecurityInjector(this);

        BedrockHelper.init(this);

        getServer().getPluginManager().registerEvents(new MentionListener(this), this);
        getServer().getPluginManager().registerEvents(new ProtectionListener(this), this);
        securityInjector.inject();

        ChatMentionCommand chatMentionCommand = new ChatMentionCommand(this);
        getCommand("chatmention").setExecutor(chatMentionCommand);
        getCommand("chatmention").setTabCompleter(chatMentionCommand);

        MentionCommand mentionCommand = new MentionCommand(this);
        getCommand("mention").setExecutor(mentionCommand);
        getCommand("mention").setTabCompleter(mentionCommand);

        getLogger().info("PmcChatMention v8.0 enabled.");
    }

    @Override
    public void onDisable() {
        getLogger().info("PmcChatMention disabled.");
    }
}