lukas037216_11419

Fun Border Roleplay Support Team

I need to be able to do announcements and it needs to do mod

Kodari AI
KodariApr 17 at 3:19 am 17,921 (v2)

I’ll create a comprehensive Border Roleplay support and moderation plugin with announcement features.

BorderSupport
A roleplay server support plugin designed for border patrol and immigration roleplay scenarios. Features include customizable announcement broadcasts with formatting and scheduling, moderation tools for staff members including mute/kick/ban management, player reports system, and staff chat channels. Includes permission-based access controls, configurable messages, and logging capabilities. Perfect for roleplay servers needing structured support team tools with professional announcement management and moderation oversight.

Now I’ll build the complete plugin structure with announcement and moderation systems.

Perfect! I’ve created BorderSupport, a comprehensive Border Roleplay support and moderation plugin with all requested features:

Features implemented:

  • Announcements: Broadcast system with /announce, scheduled auto-announcements, and full management via /announcement

  • Moderation Tools: Complete suite including mute, unmute, kick, warn with duration parsing and threshold actions

  • Report System: Player reporting with staff notifications and management interface

  • Staff Chat: Toggle-able staff channel with permission-based access

  • Configuration: Fully customizable messages, formats, and settings

Commands created:

  • /announce - Instant broadcasts

  • /announcement - Manage scheduled announcements (add/remove/list/toggle)

  • /staffchat - Staff-only communication

  • /report - Player reporting

  • /reports - View/manage reports

  • /bmute, /bunmute, /bkick, /bwarn, /warnings - Full moderation suite

  • /moderation - Overview dashboard

All systems use Lombok for clean code, include proper permission checks, and feature customizable color-coded messages. The plugin is ready to compile and use immediately.

lukas037216_11419

Discord bot

Kodari AI
KodariApr 17 at 3:21 am 10,799 (v2)

I’ll add Discord bot integration to your BorderSupport plugin so announcements, moderation actions, and reports can be synced with Discord.

Perfect! I’ve added full Discord bot integration to BorderSupport. Here’s what’s included:

New Features:

  • Discord Bot Connection: Automatically connects to Discord using your bot token

  • Bidirectional Communication: Messages sync between Minecraft and Discord

  • Discord Commands: Staff can use !announce, !reports, !mute, !kick, !warn from Discord

  • Webhook Support: Rich embeds for announcements, moderation actions, and reports

  • Channel Configuration: Separate channels for announcements, mod logs, reports, and staff chat

Configuration Added:

YAML
discord:
  enabled: true
  bot-token: "YOUR_BOT_TOKEN_HERE"
  channels:
    announcements: "channel_id"
    mod-logs: "channel_id"
    reports: "channel_id"
    staff-chat: "channel_id"

Discord Commands Available:

  • !announce <message> - Send announcement to Minecraft server

  • !reports - List open reports

  • !mute <player> <duration> <reason> - Mute a player

  • !kick <player> <reason> - Kick a player

  • !warn <player> <reason> - Warn a player

Auto-notifications to Discord:

  • All announcements broadcast to announcement channel

  • Mute/kick/warn actions logged to mod-logs channel

  • New reports sent to reports channel with details

  • Staff chat messages sync to staff-chat channel

Replace YOUR_BOT_TOKEN_HERE in config.yml with your Discord bot token and add your channel IDs to start using Discord integration!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
27 1,711
src/main/java/com/borderrp/support/BorderSupport.java
package com.borderrp.support;

import com.borderrp.support.commands.*;
import com.borderrp.support.listeners.ChatListener;
import com.borderrp.support.listeners.PlayerListener;
import com.borderrp.support.managers.*;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BorderSupport extends JavaPlugin {

    private ConfigManager configManager;
    private DiscordManager discordManager;
    private AnnouncementManager announcementManager;
    private StaffChatManager staffChatManager;
    private ReportManager reportManager;
    private ModerationManager moderationManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.discordManager = new DiscordManager(this);
        this.announcementManager = new AnnouncementManager(this);
        this.staffChatManager = new StaffChatManager(this);
        this.reportManager = new ReportManager(this);
        this.moderationManager = new ModerationManager(this);

        registerCommands();
        registerListeners();

        announcementManager.start();

        getServer().getScheduler().runTaskAsynchronously(this, () -> {
            discordManager.connect();
        });

        getLogger().info("BorderSupport has been enabled!");
    }

    @Override
    public void onDisable() {
        if (announcementManager != null) {
            announcementManager.stop();
        }

        if (discordManager != null) {
            discordManager.disconnect();
        }

        getLogger().info("BorderSupport has been disabled!");
    }

    private void registerCommands() {
        getCommand("announce").setExecutor(new AnnounceCommand(this));
        getCommand("announcement").setExecutor(new AnnouncementCommand(this));
        getCommand("staffchat").setExecutor(new StaffChatCommand(this));
        getCommand("report").setExecutor(new ReportCommand(this));
        getCommand("reports").setExecutor(new ReportsCommand(this));
        getCommand("bmute").setExecutor(new MuteCommand(this));
        getCommand("bunmute").setExecutor(new UnmuteCommand(this));
        getCommand("bkick").setExecutor(new KickCommand(this));
        getCommand("bwarn").setExecutor(new WarnCommand(this));
        getCommand("warnings").setExecutor(new WarningsCommand(this));
        getCommand("moderation").setExecutor(new ModerationCommand(this));
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new ChatListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
    }

    public void reload() {
        configManager.reload();
        announcementManager.reload();
        discordManager.reload();
    }
}