Back to mods
MPCombatLog project artwork

CurseForge · Hytale mod

MPCombatLog

The perfect CombatLog plugin to stop players from quitting mid fight with seamless setup, and easy integration with other mods!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which MPCombatLog release should I use?

Updated 3 months ago
Latest stable file MPCombatLog-1.2.2.jar
Game version Not listed
Mod system Built-in Hytale mod system

MPCombatLog-1.2.2.jar targets Hytale. Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer. No required dependencies listed for this file.

Where it goes

Where should MPCombatLog be installed in Hytale?

Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

Separate client mod Not supported
World host / dedicated server Required
Mod system for this release Built-in Hytale mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

Put Hytale mods on the world host or dedicated server. Singleplayer runs a local server too; Hytale does not use separate client mods.

What else does MPCombatLog-1.2.2.jar need?

MPCombatLog-1.2.2.jar. Change the file and its required mods may change too.

No required dependencies listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional project dependencies. Check the creator notes before changing an existing world.

Before you install it

Add MPCombatLog without breaking your instance.

Built for MPCombatLog-1.2.2.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use MPCombatLog-1.2.2.jar. It targets Hytale; another release may target a different game build or dependency set.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Enable it on the world host

    Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside MPCombatLog-1.2.2.jar. It opens that exact file at the source.

About this project

What does MPCombatLog add?

MPCombatLog - Hytale Combat Logging Prevention Plugin

This mod ensures no player leaves during a fight, and if they do - they will be killed on disconnect.

Features

  • Automatic Combat Detection - Automatically detects when players take or deal damage
  • Configurable Combat Duration - Set how long players stay in combat
  • PvP/PvE Mode - Option to allow PvE combat logging
  • Command Block - Block selected commands like /tp in combat!
  • Combat Log Prevention - Kills players who disconnect while in combat
  • Combat Status Messages - Customizable messages for entering/exiting combat
  • Reload Command - Reload plugin from game! No need to restart the server
  • Color Tags Support - Use &0-9 and &a-f for colors in config!(Minecraft Style)
  • Developer API - Simple API for other plugins to check combat status

No CombatLog permission

If you do not want to get tagged in combat, use this permission combatlog.bypass

Configuration

Config is located at mods/MP_CombatLog/config.json:

{
    "onlyPlayerDamageLog": true, , // Set to false to enable PvE combat logging
    "combatTime": 30, // Time in seconds that players stay in combat
    "showCombatTitle": true, // Set to false to disable combat title
    "blockCommandsInCombat": true,
    "blockedCommands": [
        "home",
        "spawn",
        "tpa",
        "tp",
        "warp"
    ],
    "messages": {
        "prefix": "&l&7[&c&lCL&l&7] &7>> ",
        "combatEnter": "&cYou have entered combat! &7Do not log out!",
        "combatExit": "&aYou are no longer in combat.",
        "combatTimeRemaining": "&6Combat: &e%seconds%s &7remaining",
        "combatLogBroadcast": "&e%player% &cwas killed for combat logging!",
        "commandBlocked": "&cYou cannot use this command while in combat!",
        "commandReloadSuccess": "&aConfig reloaded successfully!",
        "commandReloadFailed": "&cFailed to reload config: %error%",
        "commandInfo": "&7Running &eMPCombatLog &7v%version%",
        "combatTitleMain": "&cIN COMBAT",
        "combatTitleSub": "&7%seconds%s remaining"
    }
}

Commands

Command Description Permission
/combatlog Show plugin info Everyone
/combatlog help Show available commands Everyone
/combatlog reload Reload configuration Ops only

Developer API

MPCombatLog provides a simple API for other plugins to check and manage combat status.

Adding as Dependency

Maven

Add MPCombatLog as a dependency in your pom.xml:

<dependency>
    <groupId>com.minimalpulse.combatlog</groupId>
    <artifactId>MPCombatLog</artifactId>
    <version>1.1.0</version>
    <scope>provided</scope>
</dependency>

Hytale Manifest

Add MPCombatLog as a dependency in your manifest.json:

{
  "Dependencies": {
    "com.minimalpulse.combatlog": "*"
  }
}

Or as an optional dependency if you want your plugin to work without it:

{
  "OptionalDependencies": {
    "com.minimalpulse.combatlog": "*"
  }
}

API Usage

All API methods are static and accessible via CombatLogAPI:

import com.minimalpulse.combatlog.api.CombatLogAPI;

// Check if the plugin is loaded
if (CombatLogAPI.isAvailable()) {
    // Plugin is loaded and ready
}

// Check if a player is in combat
UUID playerUuid = player.getUuid();
if (CombatLogAPI.isInCombat(playerUuid)) {
    player.sendMessage(Message.raw("You can't do that while in combat!"));
    return;
}

// Get remaining combat time in seconds
int secondsLeft = CombatLogAPI.getRemainingCombatTime(playerUuid);

// Get the configured combat duration
int combatDuration = CombatLogAPI.getCombatDuration();

// Manually put a player into combat
CombatLogAPI.enterCombat(playerUuid, worldName);

// Manually remove a player from combat
CombatLogAPI.exitCombat(playerUuid);

API Methods

Method Description Returns
isAvailable() Check if MPCombatLog is loaded boolean
isInCombat(UUID) Check if player is in combat boolean
getRemainingCombatTime(UUID) Get seconds remaining in combat int
getCombatDuration() Get configured combat duration int
enterCombat(UUID, String) Put player in combat with world tracking void
exitCombat(UUID) Remove player from combat void

License

MIT License - Feel free to use in your own projects!

Author

MinimalPulse

Project description from CurseForge.

Recent files

MPCombatLog releases and Hytale builds

5 of 5 releases match

Looking for an older file? The official CurseForge project page is in Resources.