Skip to main content

Moderation, Staff & Jail

BharatCore provides an integrated moderation infrastructure replacing multiple legacy plugins (Essentials Protect, OpenInv, AdvancedVanish, and Jail).


Core Moderation Capabilitiesโ€‹

  1. Packet-Level Vanish (/vanish or /v):

    • Completely removes the player entity from server packet broadcasts.
    • Suppresses join/quit messages, opening chest animations, and footstep sounds.
    • Automatically hides vanished staff from tablists and dynmap/bluemap.
  2. Player Freeze (/freeze <player>):

    • Completely locks client movement, jump, and interact packets.
    • Renders an informative title and chat message instructing the player to join Discord for screenshare/inspection.
    • Automatically issues combat tag cancellation and alerts staff if the player disconnects while frozen.
  3. Live Inventory & Ender Chest Inspection (/invsee, /endersee):

    • Synchronous real-time inventory editing. Items moved by staff reflect immediately in the suspect's inventory.
    • Supports armor slots, off-hand, and active potion effects.
  4. Staff Jail System (/jail, /unjail):

    • Teleports offenders to a defined jail cell and revokes command access.
    • Prevents teleportation, block breaking, and messaging until the jail sentence timer expires.

Commands & Permissionsโ€‹

CommandPermissionDescription
/v, /vanishbharatcore.staff.vanishToggle complete packet invisibility.
/freeze <player>bharatcore.staff.freezeLock player in place for inspection.
/unfreeze <player>bharatcore.staff.freezeRelease frozen player.
/invsee <player>bharatcore.staff.invseeLive inventory viewer and modifier.
/endersee <player>bharatcore.staff.enderseeLive ender chest viewer and modifier.
/jail <player> <cell> [time]bharatcore.staff.jailSend offender to jail cell.
/unjail <player>bharatcore.staff.jailRelease player from jail.
/report <player> <reason>None (Player)Dispatches a violation ticket to online staff.
/helpop <message>None (Player)Priority SOS notification line to moderators.
/socialspybharatcore.staff.socialspyReal-time monitoring of private /msg communication.

title: "BharatCore: Core Engine & Security Configurations" description: "Exhaustive YAML configurations with verbatim syntax and detailed option breakdowns."โ€‹

Detailed line-by-line configuration and option reference for BharatCore: Core Engine & Security Configurations.


๐Ÿ“„ config.ymlโ€‹

The main configuration file governing Redis connections, MySQL/H2 database parameters, Combat Tag timers, Lands hooks, and global feature toggles.

Full YAML Source (config.yml)โ€‹

# ==========================================
# Module Toggles
# Enable (true) or Disable (false) core features here.
# Disabling a module entirely halts its logic and commands.
# ==========================================
modules:
# Staff Jail System
jail: true

# Combat Logger: Prevents players from running away from PvP.
combat: true

# Master Chat System: Enables all chat-related features (Format, Mentions, Emojis, Filters).
chat: true

# Enables player-to-player teleportation systems.
# Commands: /tpa, /tpahere, /tpaccept, /tpdeny, /tpatoggle
tpa: true

# Enables the home system, letting players save personal locations.
# Commands: /home, /sethome, /delhome, /homes (Opens GUI)
homes: true

# Enables a centralized safe location for players to return to.
# Commands: /spawn, /setspawn
spawn: true

# Enables server-wide public teleport locations.
# Commands: /warp, /setwarp, /delwarp, /warps (Opens GUI)
warps: true

# Enables the custom lightweight world manager (replaces Multiverse-Core).
# Commands: /world tp, /world create, /world delete, /world list
# If you disable this, you can safely install Multiverse-Core instead.
worlds: true

# Enables chat and tab tags that players can display next to their name.
# Commands: /tags (Opens GUI)
tags: true

# Enables custom name colorization for chat and tablist.
# Commands: /namecolor (Opens GUI)
namecolor: true

# Enables gradient and custom text color selection for typing in chat.
# Commands: /chatcolor (Opens GUI)
chatcolor: true

# Enables moderation filters blocking spam, flood, caps, and swears.
chat-filters: true

# Should Bharat-core control the chat layout (MiniMessage tags, LuckPerms prefixes, Tags)?
# WARNING: Set to FALSE if you use an external plugin like ChatControl or VentureChat.
chat-format: true

# Enables server events like Join/Quit messages, Welcome Titles, & ActionBars.
# Also handles downloading player heads asynchronously on join.
announcements: true

# Enables moderation and admin utilities.
# Commands: /vanish, /flyspeed, /walkspeed, /gm (and gamemode aliases)
staff: true

# Enables the unified flight module (time-based temp-fly and unlimited staff fly)
# Commands: /fly, /fly addtime, /fly settime
flight: true

# Enables the Lands claim plugin soft-dependency integration.
# Integrates territory permissions, wilderness/claim isolation, custom store/rank flags,
# combat safezone sync, and Lands-aware flight (tempfly/own/others land checks).
lands: false

# Enables "pinging" players in chat when typing their name, playing a sound.
# Commands: /togglementions
mentions: true

# Enables the social system (Private Messaging, Ignoring, SocialSpy).
# Commands: /msg, /r, /socialspy, /ignore
social: true

# Enables the system for players to submit tickets against rule breakers.
# Commands: /report <player> <reason>
reports: true

# Enables the helpop system for contacting staff.
# Commands: /helpop <message>
helpop: true

# Enables the cosmetic glow system.
# Commands: /glow (Staff/Donors)
# Disabling this saves substantial performance on large tablists.
glow: true

# Enables the economy module (Vault compatible).
# Commands: /bal, /pay, /eco
economy: true

# Enables the shards currency and shard shop.
# Commands: /shards, /shardsadmin, /shardshop, /afkzone
shards: true

# Enables the smooth anti-flicker night vision module.
# Commands: /nv
nightvision: true

# Enables the ping command.
# Commands: /ping
ping: true

# Enables the playtime tracking system.
# Commands: /playtime
playtime: true

# Enables the custom-command system, hooking into custom_commands.yml
# Disabling this saves memory if you don't use dynamic alias commands.
custom-commands: true

# Enables automatic teleportation to spawn when falling into the void.
# Useful for hub worlds or skyblock-style maps.
void-spawn: true

# ... [Subsequent repetitive milestone/item tiers follow identical YAML structure] ...

messages:
elytra-disabled: "<error>You cannot use an Elytra while in combat!"
elytra-fireworks-disabled: "<error>You cannot use fireworks while gliding in combat!"
ender-pearl-disabled: "<error>You cannot use Ender Pearls while in combat!"
trident-disabled: "<error>You cannot use a Trident while in combat!"
wind-charge-disabled: "<error>You cannot use Wind Charges while in combat!"
chorus-fruit-disabled: "<error>You cannot eat Chorus Fruit while in combat!"
item-blocked: "<error>You cannot use this item while in combat!"

# ==========================================
# Security Settings
# ==========================================
security:
# List of exact usernames that are allowed to receive the "owner" rank or the "*" permission.
# If any player not on this list is given the owner rank (even by console),
# BharatCore will instantly remove the rank and log the security exploit.
allowed-owners:
- "brdshado"
- "roizplayz"


# -----------------
# Vote Reminder Settings
# -----------------
vote-reminder:
enabled: true
delay-seconds: 15
# The message supports MiniMessage formatting and PlaceholderAPI placeholders.
message:
- ""
- "<#00d2ff><bold>? VOTE REMINDER</bold>"
- "<white>You have voted <#00d2ff>%VotingPlugin_Daily_Total%<white> times today!"
- "<white>Bonus Claimed: <#00d2ff>%VotingPlugin_Daily_Bonus%"
- "<white>Type <#00d2ff>/vote <white>to vote and get rewards!"
- ""

Key Options & Behavior Breakdownโ€‹

Option / Key PathDefault SettingTechnical Functionality & Usage
modulesObjectRoot configuration section managing modules subsystem.
modules.jailtrueAdjusts jail parameter for the modules handler.
modules.combattrueAdjusts combat parameter for the modules handler.
modules.chattrueAdjusts chat parameter for the modules handler.
modules.tpatrueAdjusts tpa parameter for the modules handler.
modules.homestrueAdjusts homes parameter for the modules handler.
modules.spawntrueAdjusts spawn parameter for the modules handler.
modules.warpstrueAdjusts warps parameter for the modules handler.
modules.worldstrueAdjusts worlds parameter for the modules handler.
modules.tagstrueAdjusts tags parameter for the modules handler.
modules.namecolortrueAdjusts namecolor parameter for the modules handler.
modules.chatcolortrueAdjusts chatcolor parameter for the modules handler.
modules.chat-filterstrueAdjusts chat-filters parameter for the modules handler.
modules.chat-formattrueAdjusts chat-format parameter for the modules handler.
modules.announcementstrueAdjusts announcements parameter for the modules handler.
modules.stafftrueAdjusts staff parameter for the modules handler.
modules.flighttrueAdjusts flight parameter for the modules handler.
modules.landsfalseAdjusts lands parameter for the modules handler.
modules.mentionstrueAdjusts mentions parameter for the modules handler.
modules.socialtrueAdjusts social parameter for the modules handler.
modules.reportstrueAdjusts reports parameter for the modules handler.
modules.helpoptrueAdjusts helpop parameter for the modules handler.
modules.glowtrueAdjusts glow parameter for the modules handler.
modules.economytrueAdjusts economy parameter for the modules handler.
modules.shardstrueAdjusts shards parameter for the modules handler.
modules.nightvisiontrueAdjusts nightvision parameter for the modules handler.
modules.pingtrueAdjusts ping parameter for the modules handler.
modules.playtimetrueAdjusts playtime parameter for the modules handler.
modules.custom-commandstrueAdjusts custom-commands parameter for the modules handler.
modules.void-spawntrueAdjusts void-spawn parameter for the modules handler.
modules.perkstrueAdjusts perks parameter for the modules handler.
modules.audittrueAdjusts audit parameter for the modules handler.
modules.coinshoptrueAdjusts coinshop parameter for the modules handler.
modules.anti-exploittrueAdjusts anti-exploit parameter for the modules handler.
modules.teamstrueAdjusts teams parameter for the modules handler.
modules.storeList/ObjectAdjusts store parameter for the modules handler.
modules.voteList/ObjectAdjusts vote parameter for the modules handler.
storageObjectRoot configuration section managing storage subsystem.
storage.type"H2"Adjusts type parameter for the storage handler.
storage.host"localhost"Adjusts host parameter for the storage handler.
storage.port"5432"Adjusts port parameter for the storage handler.
storage.name"bharatmc"Adjusts name parameter for the storage handler.
storage.user"postgres"Adjusts user parameter for the storage handler.
storage.password""Adjusts password parameter for the storage handler.
storage.pool-size15Adjusts pool-size parameter for the storage handler.
storage.connection-timeout-ms15000Adjusts connection-timeout-ms parameter for the storage handler.
storage.join-load-delay-ms300Adjusts join-load-delay-ms parameter for the storage handler.
redisObjectRoot configuration section managing redis subsystem.
redis.enabledfalseAdjusts enabled parameter for the redis handler.
redis.host"localhost"Adjusts host parameter for the redis handler.
server-name"survival"Root configuration section managing server-name subsystem.
chat-settingsObjectRoot configuration section managing chat-settings subsystem.
announcement-settingsObjectRoot configuration section managing announcement-settings subsystem.
home-settingsObjectRoot configuration section managing home-settings subsystem.
spawn-settingsObjectRoot configuration section managing spawn-settings subsystem.
team-settingsObjectRoot configuration section managing team-settings subsystem.
teleport-settingsObjectRoot configuration section managing teleport-settings subsystem.
staff-settingsObjectRoot configuration section managing staff-settings subsystem.
report-settingsObjectRoot configuration section managing report-settings subsystem.
helpop-settingsObjectRoot configuration section managing helpop-settings subsystem.
glow-settingsObjectRoot configuration section managing glow-settings subsystem.
economy-settingsObjectRoot configuration section managing economy-settings subsystem.
afk-zone-settingsObjectRoot configuration section managing afk-zone-settings subsystem.
shards-settingsObjectRoot configuration section managing shards-settings subsystem.
void-spawn-settingsObjectRoot configuration section managing void-spawn-settings subsystem.
combatObjectRoot configuration section managing combat subsystem.
securityObjectRoot configuration section managing security subsystem.

๐Ÿ“„ antiexploit.ymlโ€‹

Anti-duplication, crash-book prevention, Nether roof glitch suppression, and illegal projectile rate limits.

Full YAML Source (antiexploit.yml)โ€‹

# ==========================================
# Anti-Exploit Configuration
# Enable/Disable specific checks and configure punishments
# ==========================================

# Master toggle for the entire anti-exploit system
# If false, NONE of the checks below will run.
enabled: true

# -----------------
# Punishment Actions:
# warn: Cancels the action and sends the warning message to the player.
# kick: Kicks the player from the server with the warning message.
# ban: Permanently bans the player's name via the server's native ban list and kicks them.
# command: Runs a custom console command (e.g. for LiteBans). Use %player% and %message%.
# cancel_only: Cancels the action silently (no warning).
# none: Does nothing (allows the action).
# -----------------

checks:
# Prevents clients like Baritone from instantly placing blocks to glitch through blocks or lag the server.
# Also blocks excessive End Crystal and Respawn Anchor interaction.
interaction_rate_limit:
enabled: true
# Time in milliseconds between interact actions allowed
limit_ms: 250
# Send a warning if they are clicking faster than this (ms)
warn_threshold_ms: 50
action: "warn"
message: "&c&lWARNING: &7Please disable AutoClicker/Aura. Your hack client is highly detected and may result in an automatic ban if you continue."

# Detects packet criticals (dealing critical hits without jumping).
packet_criticals:
enabled: true
action: "warn"
message: "&c&lWARNING: &7Please disable Packet Criticals. Your hack client is highly detected and may result in an automatic ban if you continue."

# Prevents players from shooting arrows impossibly fast (BowAimbot / FastBow)
bow_spam:
enabled: true
limit_ms: 200
action: "kick"
command: "tempban %player% 1d BowSpam -s"
message: "&c&lWARNING: &7Please disable BowSpam/FastBow."

# Detects highly suspicious mining patterns commonly used by Baritone or X-Ray.
baritone_mining:
enabled: true
# Maximum valuable ores (diamonds/debris) mined within 60 seconds
alert_threshold: 15
kick_threshold: 25
action: "kick" # When kick threshold is reached
kick_message: "&c&lANTI-EXPLOIT &8| &7You were kicked for suspicious mining activity (Baritone/X-Ray)."

# Blocks known exploit channels used by clients like ParadiseClient-X or modified Purpur clients
channel_exploits:
enabled: true
action: "kick"
message: "&c&lANTI-EXPLOIT &8| &7Malicious payload detected. Disconnect."

# Blocks Meteor Client OffhandCrash attempts
offhand_crash:
enabled: true
# Maximum swaps per second
max_swaps_per_second: 30
action: "kick"
message: "&c&lANTI-EXPLOIT &8| &7OffhandCrash Exploit Detected."

# Prevents players from creating books that crash the server (BookDrop exploit)
book_exploit:
enabled: true
action: "cancel_only"

# Prevents players from creating signs with insanely long text that lag clients (SignCrash)
sign_exploit:
enabled: true
action: "cancel_only"

# Blocks Log4Shell (Log4j / JNDI) attempts in chat
log4j_exploit:
enabled: true
action: "kick"
message: "&c&lANTI-EXPLOIT &8| &7Log4Shell attempt blocked."

Key Options & Behavior Breakdownโ€‹

Option / Key PathDefault SettingTechnical Functionality & Usage
enabledtrueRoot configuration section managing enabled subsystem.
checksObjectRoot configuration section managing checks subsystem.
checks.interaction_rate_limitList/ObjectAdjusts interaction_rate_limit parameter for the checks handler.
checks.packet_criticalsList/ObjectAdjusts packet_criticals parameter for the checks handler.
checks.bow_spamList/ObjectAdjusts bow_spam parameter for the checks handler.
checks.baritone_miningList/ObjectAdjusts baritone_mining parameter for the checks handler.
checks.channel_exploitsList/ObjectAdjusts channel_exploits parameter for the checks handler.
checks.offhand_crashList/ObjectAdjusts offhand_crash parameter for the checks handler.
checks.book_exploitList/ObjectAdjusts book_exploit parameter for the checks handler.
checks.sign_exploitList/ObjectAdjusts sign_exploit parameter for the checks handler.
checks.log4j_exploitList/ObjectAdjusts log4j_exploit parameter for the checks handler.

๐Ÿ“„ command-guard.ymlโ€‹

Hides internal plugin lists, intercepts tab-completion, and enforces cooldowns on critical user commands.

Full YAML Source (command-guard.yml)โ€‹

# BharatCore Command Guard Configuration
# Effectively secure your server by blocking sensitive commands and tab-completion.

settings:
# Automatically block all commands containing a colon (e.g., bukkit:ver)
block-colon-commands: true

# List of plugin prefixes that ARE allowed to use colons (e.g., strikepractice:kiteditor)
# This allows you to block bukkit/minecraft/spigot while allowing specific plugin commands.
whitelisted-colon-prefixes:
- "strikepractice"
- "litebans"
- "essentials"

# Permission to bypass all command restrictions.
# Note: This is now the ONLY way to bypass. If you use op-permission-level: 0
# in server.properties, OPs will be restricted unless they have this permission.
bypass-permission: "bharatcore.admin"

blocked-message: "&c&lBHARATCORE &8ยป &cThat command is currently restricted or disabled!%nl%&7Command: &f/{command}"

# List of exact commands to block (without the slash)
blocked-commands:
- "?"
- "about"
- "ver"
- "version"
- "pl"
- "plugins"
- "help"
- "icanhasbukkit"
- "me"
- "buy"
- "tebex"
- "buycraft"
- "lp"
- "luckperms"
- "perm"
- "permission"
- "permissions"
- "perms"
- "geyser"
- "tab"
- "fawe"
- "worldedit"
- "we"
- "fastasyncworldedit"
- "rg"
- "region"
- "regions"
- "worldguard"
- "server"
- "minehut"

Key Options & Behavior Breakdownโ€‹

Option / Key PathDefault SettingTechnical Functionality & Usage
settingsObjectRoot configuration section managing settings subsystem.
settings.block-colon-commandstrueAdjusts block-colon-commands parameter for the settings handler.
settings.whitelisted-colon-prefixesList/ObjectAdjusts whitelisted-colon-prefixes parameter for the settings handler.
settings.bypass-permission"bharatcore.admin"Adjusts bypass-permission parameter for the settings handler.
settings.blocked-message"&c&lBHARATCORE &8ยป &cThat command is currently restricted or disabled!%nl%&7Command: &f/{command}"Adjusts blocked-message parameter for the settings handler.
blocked-commandsObjectRoot configuration section managing blocked-commands subsystem.

๐Ÿ“„ custom_commands.ymlโ€‹

Server-wide aliases (/discord, /store, /vote) with formatted interactive messages and clickable URLs.

Full YAML Source (custom_commands.yml)โ€‹

# BharatCore Custom Commands Configuration
# Create your own custom commands here!
# Supports MiniMessage (colors, hover, click, fonts, etc.)
# Reference: https://docs.advntr.dev/minimessage/format.html

commands:
discord:
aliases:
- "dc"
- "disc"
permission: "" # Leave empty for no permission
messages:
- ""
- "<#7289da><bold>โœ‰ Join Our Discord"
- ""
- "<white>Connect, chat, trade & enjoy with our <#a3b4ff>community<white>."
- "<white>Stay updated with <#a3b4ff>events<white>, giveaways & support."
- ""
- "<click:open_url:\"https://discord.gg/bharatmc\"><hover:show_text:\"<gray>Click to join our Discord!\"><#7289da>โ™ฆ <white>discord.gg/bharatmc</hover></click>"
- ""

store:
aliases:
- "shop"
- "buy"
permission: ""
messages:
- ""
- "<#ffaa00><bold>๐Ÿ›’ Visit Our Store"
- ""
- "<white>Purchase <#ffd580>ranks<white>, coins, keys, and crate bundles."
- "<white>Support the server and unlock <#ffd580>premium rewards<white>."
- ""
- "<click:open_url:\"https://store.bharatmc.com\"><hover:show_text:\"<gray>Click to visit our store!\"><#ffaa00>โ™ฆ <white>store.bharatmc.com</hover></click>"
- ""

rules:
aliases:
- "rule"
permission: ""
messages:
- ""
- "<red><bold>โš– SERVER RULES"
- ""
- "<gray>1. <white>Be respectful to all players."
- "<gray>2. <white>No cheating or exploits."
- "<gray>3. <white>No spamming or advertising."
- ""
- "<gray>Read more at: <yellow>rules.bharatmc.com"
- ""

Key Options & Behavior Breakdownโ€‹

Option / Key PathDefault SettingTechnical Functionality & Usage
commandsObjectRoot configuration section managing commands subsystem.
commands.discordList/ObjectAdjusts discord parameter for the commands handler.
commands.storeList/ObjectAdjusts store parameter for the commands handler.
commands.rulesList/ObjectAdjusts rules parameter for the commands handler.