Minecraft Mods

۞ Combat Util ۞ - All about combat cheating prevention

  • 3,057 views, 2 today
  • 146 downloads, 0 today
  • 3
  • 0
  • 2
fillpant's Avatar fillpant
Level 65 : High Grandmaster Programmer
109
Combat Util
Prevent players from escaping their faith during combat!

Overview:
This plugin packs a list of Useful features to prevent players from leaving during combat allowing maximum customisation and soon comming up with an API for developers!

Features:
  • Customisable punishment for disconnecting during combat
  • Different fully customisable messages per cause.
  • A Powerful system to detect if a client disconnected because their network failed (To be fair).
  • Options like changing gamemode, removing potion effects, forcing the player to run commands and blocking specific commands for when the player is in combat
  • Bypass permission node included!

Configuration:
The configuration of this plugin is easy, the config comes with some default options that can be changed at any time.
Below you can see the default config:

Spoiler - Config
Prefix: "&7[&cCombat&7]"
InCombatTimeOver: "&c&lYou are no longer in combat, you may disconnect"
InCombatTimeStarting: "&3&lYou are now in combat! Do not disconnect!!"
CombatTimeSeconds: 10
EnableEconomy: false
JoinCombatActions:
ForceGamemodeSurvival: true
ClearPotionEffects: false
ExtinguishPlayer: true
KillNearbyMonsters: false
ForcePlayerCommands:
- '/god'
- '/deop %player%'
DisableCommands: 
- '/home'
- '/spawn'
Cause:
NETWORK_ISSUE:
Message: "%player% Disconnected while in combat because of network Failure"
Kill: false
DropInventory: false
ClearXP: false
TakeMoney: false
MoneyToTake: 0
ExecuteCommands: []
DISCONNECT_OR_CRASH:
Message: "%player% Disconnected while in combat on purpose!"
Kill: true
DropInventory: false
ClearXP: false
TakeMoney: true
MoneyToTake: 20
ExecuteCommands: []
POSSIBLE_HACKED_CLIENT:
Message: "%player% Disconnected while in combat! They are possibly using a hacked client!"
Kill: false
DropInventory: false
ClearXP: false
TakeMoney: false
MoneyToTake: 0
ExecuteCommands:
- '/tempban %player% 10 You have been baned, you where possibly using a hacked client.'
UNKNWON:
Message: "%player% Disconnected while in combat because of an unknown cause"
Kill: false
DropInventory: false
ClearXP: false
TakeMoney: false
MoneyToTake: 0
ExecuteCommands: []

An explanation of the fields on the config:
  • Prefix: The prefix used front of every message sent to the user by this plugin.
  • InCombatTimeOver: The message sent to the user when they are no longer in combat and they can disconnect.
  • InCombatTimeStarting: The message sent to the user when they get in combat.
  • CombatTimeSeconds: The ammount of time the player wont be able to disconnect or use certain commands after the last hit
  • EnableEconomy: If you are willing to take money from players violating the no disconnect period, you need to enable this.WARNING: if it is enabled, your server must have Vault installed.
  • JoinCombatActions: this is the section of what will happend when a player gets in combat with another player.
  • ForceGamemodeSurvival: Force the gamemode of the player in combat to survival
  • ClearPotionEffects: Remove all the potion effects of this player
  • ExtinguishPlayer: Put them out if they are on fire at the begining of the combat
  • KillNearbyMonsters: This will kill the monster entities near the player(s) when they are in combat
  • ForcePlayerCommands: A list of commands the player will be forced to execute when they are geting in combat.
  • DisableCommands: A list of commands that the player will not be able to execute while in combat.
  • Cause: This section is where you specify what will happend if a player disconnects while in combat, There are different causes of Disconnect, You can specify what will happend for each.
    Spoiler - Possible disconect causes
    NETWORK_ISSUE: if the player disconnected because of a connection issue, the actions will be fired.DISCONNECT_OR_CRASH: This is when a player disconencted because they intended to, or their minecraft has crashed.POSSIBLE_HACKED_CLIENT: Thats when the player disconnects with only litle life (1 heart), This is usually done automatically by clients...UNKNOWN: Unlikely but if the plugin is not able to determine the cause this will be called.
    For each cause you need to fill in some fields, Those are:
  • Message: The message broadcasted to other users online when a player disconnects during combat
  • Kill: Kill the player who disconnected? They will be respawned when they join back.
  • DropInventory: Drop the items in the inventory of the player
  • ClearXP: Remove all experience levels of this player
  • EcecuteCommands: Make the server run some commands if the player disconencts.Note: The following options require the setting "EnableEconomy" to be set to true and Vault being installed in the server.
  • TakeMoney: Remove money from the player's account.
  • MoneyToTake: If you set the option above to true, you need to specify the ammount to be removed.
Progress100% complete
Game VersionMinecraft 1.8.1
Tags

Create an account or sign in to comment.

1
11/05/2015 12:48 pm
Level 52 : Grandmaster Prince
Prince Oceanus
Prince Oceanus's Avatar
This is probably going to be very useful when 1.9 comes out, too. :)
1
11/05/2015 2:00 pm
Level 65 : High Grandmaster Programmer
fillpant
fillpant's Avatar
:) certainly will.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome