R

In interview section is we select time for interview and send they will get dm to accept and add one more option reject and add section for reason . And when they admin or staff ask for more details . The embed they get in dm. Put a button for sending messages to them . And when interview is accepted add a button in players dm to chat with admin or staff that we will get in log

Kodari AI
KodariAug 15 at 4:20 am 2
  1. Interview decisions: add applicant DM actions for accept/reject, with rejection reason capture.

  2. Staff follow-up: add a DM button to request/send more details and log the exchange.

  3. Accepted interviews: add a DM chat button that relays messages to staff and records them in logs.

  1. Interview scheduling DM now includes Accept Interview and Decline Interview buttons.

  2. Declining opens a reason form; the reason is saved and sent to staff logs.

  3. “More Information Requested” DMs now include a Send Details button. Applicant responses are forwarded to staff logs.

  4. Accepted interview DMs now include a Chat with Staff button. Messages are logged with the application ID and applicant.

  5. Added persistent interview-decline fields to application storage and reset them whenever a new interview is scheduled.

R

Add chat with player in application log embed also . And make like if we reject also show the chat with staff

Kodari AI
KodariAug 15 at 5:47 am 1

Plan:

  1. Add a Chat with Player button to the staff application embed and handle staff message modals.

  2. Allow the applicant’s Chat with Staff button on rejected applications as well.

  3. Include the chat button in rejected-applicant DMs and log both sides of the conversation.

  1. Added a Chat with Player button to application review embeds, including accepted and rejected applications.

  2. Added staff-to-player chat modals; staff messages are sent to the applicant by DM and recorded in the staff log.

  3. Rejected application DMs now include Chat with Staff.

  4. Applicants can now chat with staff after either accepting or declining an interview, and after a final application rejection.

  5. Applicant and staff chat activity updates the application’s last-action log.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
README.md
settings.gradle
Code
24 2,086
src/main/java/com/itzmetechu/uwverifier/UWVerifierPlugin.java
package com.itzmetechu.uwverifier;

import com.itzmetechu.uwverifier.command.UWVerifierCommand;
import com.itzmetechu.uwverifier.command.UWVerifierTabCompleter;
import com.itzmetechu.uwverifier.config.ConfigManager;
import com.itzmetechu.uwverifier.discord.DiscordEventListener;
import com.itzmetechu.uwverifier.discord.DiscordService;
import com.itzmetechu.uwverifier.model.ApplicationStatus;
import com.itzmetechu.uwverifier.placeholder.UWVerifierExpansion;
import com.itzmetechu.uwverifier.service.ApplicationService;
import com.itzmetechu.uwverifier.service.InterviewService;
import com.itzmetechu.uwverifier.service.WhitelistService;
import com.itzmetechu.uwverifier.storage.YamlStorage;
import com.itzmetechu.uwverifier.util.MessageUtil;
import com.itzmetechu.uwverifier.util.LoggerUtil;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class UWVerifierPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private ApplicationService applicationService;
    private InterviewService interviewService;
    private WhitelistService whitelistService;
    private DiscordService discordService;
    private DiscordEventListener discordEventListener;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        YamlStorage storage = new YamlStorage(this);
        applicationService = new ApplicationService(storage);
        interviewService = new InterviewService(applicationService);
        whitelistService = new WhitelistService(this, configManager);
        discordService = new DiscordService(configManager, applicationService);
        discordEventListener = new DiscordEventListener(configManager, applicationService,
                interviewService, whitelistService, discordService);

        if (getCommand("uwverifier") != null) {
            getCommand("uwverifier").setExecutor(new UWVerifierCommand(this));
            getCommand("uwverifier").setTabCompleter(new UWVerifierTabCompleter());
        }
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new UWVerifierExpansion(applicationService).register();
            LoggerUtil.info(this, "PlaceholderAPI expansion registered.");
        }

        discordService.start(discordEventListener);
        LoggerUtil.info(this, "Loading...");
        LoggerUtil.info(this, "Commands Registered.");
        LoggerUtil.info(this, "Ready.");
    }

    public void reloadPluginConfiguration() {
        configManager.reload();
        discordService.restart(discordEventListener);
    }

    public String message(String path, String... replacements) {
        return messageRaw(configManager.getMessage(path, ""), replacements);
    }

    public String messageRaw(String raw, String... replacements) {
        return MessageUtil.colorize(MessageUtil.replace(raw, replacements));
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public ApplicationService getApplicationService() {
        return applicationService;
    }

    public InterviewService getInterviewService() {
        return interviewService;
    }

    public WhitelistService getWhitelistService() {
        return whitelistService;
    }

    @Override
    public void onDisable() {
        if (discordService != null) {
            discordService.shutdown();
        }
        LoggerUtil.info(this, "Disabled.");
    }
}