anticombatlog

last built 2 weeks ago
Build #2
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Community Plugin
This plugin is maintained by the RocketMod Community.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

AntiCombatLog

— AntiCombatLog —

A Rocket plug-in that punishes players who disconnect from the server after a configurable number of seconds after taking damage.

<CombatLogGracePeriod>15</CombatLogGracePeriod> - How many seconds after getting hit do you have to wait to not be considered combat logging.
 
<WarningMessageColor>red</WarningMessageColor> - The color of all the messages the plug-in prints.

<ShowCombatLogMessagesToGlobalChat>true</ShowCombatLogMessagesToGlobalChat> - Tell all players on the server about the combat logger.

<ReminderNotifications>true</ReminderNotifications> - Remind the player of how many seconds are left until they can safely log out.

<ReminderNotificationInterval>5</ReminderNotificationInterval> - How many seconds apart to show the reminder notifications.

— LIMITATIONS —

Currently combat loggers will not be punished if the server restarts before they log back on after combat logging. This is because the list of combat loggers is stored in memory. Looking into a solution.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<AntiCombatLogConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CombatLogGracePeriod>15</CombatLogGracePeriod>
  <WarningMessageColor>red</WarningMessageColor>
  <ShowCombatLogMessagesToGlobalChat>true</ShowCombatLogMessagesToGlobalChat>
  <ReminderNotifications>true</ReminderNotifications>
  <ReminderNotificationInterval>5</ReminderNotificationInterval>
</AntiCombatLogConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="punish_player_player" Value="You where punished for combat logging. Inventory cleared." />
  <Translation Id="combat_logger_chat" Value="{0} is a combat logger!" />
  <Translation Id="combat_logger_console" Value="has combat logged!" />
  <Translation Id="injured_warning_player" Value="You have been injured. Please wait {0} seconds before disconnecting to avoid being punished." />
  <Translation Id="safe_to_disconnect_player" Value="It is now safe to disconnect." />
  <Translation Id="seconds_remaining_player" Value="{0} seconds remaining until safe logout allowed." />
  <Translation Id="bleeding_player" Value="You are bleeding! Stop bleeding to allow safe logout." />
  <Translation Id="version_console" Value="Version {0} Loaded." />
</Translations>

Commands and permissions


This plugin doesn't have any commands.

Git changelog


1d2aea3ff26baf0 2019-05-12 10:34:38

Fixed.

    ac51cc629be9dfc 2016-02-27 15:29:38

    Fixing effects

      a354b3ec9c3bc10 2016-12-28 18:01:33

      - Changed references to not copy to output folder.

        4670d704fffc99b 2016-12-28 17:09:52

        - Added references to new lib folder.

          294433334b1480a 2016-12-28 16:50:16

          - Added lib folder to project.

            0f7a23a80474edb 2016-12-28 16:48:57

            - Changed folder structure to match Sven's for compatibility with Jenkins.

              0ab640fa4810e9f 2015-11-11 17:10:33

              - Updated to Rocket v4.6.3.1

                8158a4ea1ec17d8 2015-10-14 04:55:28

                - Removed unused constant.

                  f6daed62c53d74c 2015-10-14 04:24:53

                  - Fixed formatting error when logging the combat logger to the console.

                    cc0679f62a92c61 2015-10-14 03:26:38

                    - Implemented translations support.

                    • - Changed version message to read from assembly version instead of the manual constant.

                    adc066dcd875a3f 2015-10-11 20:27:41

                    - Incremented version number.

                      057f85ee73004ae 2015-10-11 19:51:07

                      - Combat log console message now shows the date and time.

                        f7532590b7ecfb8 2015-10-11 17:19:21

                        Updated README.

                          1e8df8f731ccac9 2015-10-11 17:12:21

                          Formatting change.

                            2f39d17e7221b2c 2015-10-11 17:02:57

                            - Added ability to have notifications informing the player how many seconds are left until they can safely log out. Two new configuration options exist for this: ReminderNotifications and ReminderNotificationInterval.

                            • - Fixed message spam while bleeding.
                            • - Less buggy.(tm)

                            b0f72701a2b9a6b 2015-10-11 15:46:03

                            Implemented Unload().

                              4a4eddc7b6aa5e1 2015-10-11 15:33:41

                              Removed unused variables.

                                da54a0352733213 2015-10-11 15:31:56

                                - Player component transition pretty much complete.

                                • - Messages no longer spam while bleeding. No lag protection yet.

                                93322e61c14fc81 2015-10-11 14:20:07

                                Mostly gotten the transition to player components completed.

                                  6b045759dd2dc9d 2015-10-11 12:59:43

                                  - Began work on transitioning over to using a player component for tracking player status.

                                    3f34bbca0fc8ccd 2015-10-11 12:30:13

                                    - Changed Damaged to InCombat to be more clear.

                                      88ca35188997bc8 2015-10-11 11:06:44

                                      - First implementation of the bleeding message spam fix. Not at all perfect.

                                      • - Incremented version number for future release.

                                      cb732d47ef6208c 2015-10-10 09:29:22

                                      Changed build release config.

                                        d5b535c3e996da2 2015-10-10 09:04:53

                                        Updated version number.

                                          1db1f3575c62e6a 2015-10-10 06:30:29

                                          Changed Rocket libs to be in a global shared folder.

                                            52961e8ee384476 2015-10-10 02:34:17

                                            Updated .gitignore.

                                              1bd85850e42ed59 2015-10-10 01:15:07

                                              Updated README.

                                                268fa4ac5f75980 2015-10-10 01:07:53

                                                Updated Rocket references.

                                                  fbc8b0f143ccdcc 2015-10-10 00:28:43

                                                  Added comments to most functions.

                                                    f120443c9e26d0b 2015-10-09 22:04:22

                                                    Updated .gitignore.

                                                      297d130f01099f6 2015-10-09 21:40:43

                                                      Added more regions.

                                                        478bb75656f6625 2015-10-09 21:35:56

                                                        Updated version number.

                                                          3bcfcf4a3bbb9f2 2015-10-09 21:34:33

                                                          Players now get damaged set to false when they die. Allowing them to disconnect without any sort of punishment if they die.

                                                            91e0c9c494909aa 2015-10-09 16:42:24

                                                            Updated readme.

                                                              fcc9912443a5337 2015-10-09 16:39:07

                                                              Added ability to show a message in all chat informing everyone that the player is a combat logger.

                                                                32681707364a36f 2015-10-09 16:29:42

                                                                Updated README.

                                                                  35387c67dca4fca 2015-10-09 16:28:04

                                                                  Updated README.

                                                                    df05880b0f483e4 2015-10-09 16:27:05

                                                                    Renamed README to markdown.

                                                                      fa940722036342d 2015-10-09 16:25:26

                                                                      Updated README.

                                                                        0cb02f36a6d42e2 2015-10-09 15:38:54

                                                                        First version up and running. Limitation being that the state is held in memory. Server restart would reset the combat loggers list.

                                                                          d9569134519e893 2015-10-09 01:28:26

                                                                          Starting filling out player database functions and added InventoryHelper class to easily clear inventories. Also added handling for OnPlayerDisconnect.

                                                                            adef16e2d45c756 2015-10-08 23:58:36

                                                                            Added CombatLogEntry utility class. Started actual work.