Offline Shaming

Offline Shaming 1.2

No permission to download

If you enjoy my plugins, please leave a rating!

A simple plugin that will detect when a player/tribe is offline raiding another player/tribe.
After being warned, if the player continues to attack, then their information will be broadcast in the global chat and also Discord.
The plugin does not prevent damage.

The warning message the player receives when they attack an offline tribe:
pic1a.JPG


The player is given plenty of warning:
pic2a.JPG


The player did not care and the Offline Shaming message is broadcast in global chat:
pic1.JPG


The Offline Shaming message broadcast to Discord:
pic4.PNG


Configuration:
JSON:
{
    "OfflineShaming": {
        "Enabled": true,    // enable module
        "DiscordWebHook": "",    // the public discord channel to send the shaming messages to
        "MapNameOverride": "",     // override the default map name   
        "Warnings": 5,    // the amount of warnings the player will receive before being shamed
        "WarningReset": 600,  // the amount of seconds to reset warning notification alerts for player
        "WarningMessageDisplayTime": 5, // the amount of seconds to display the warning message
        "WarningMessageTextSize": 2,
        "OffliningCooldown": 60,   // the amount of seconds a player must be logged out before the Offlining detection is enabled
        "AllowDemolitionAttack":  true, // if the structure can be demolished , then allow the player to damage it and ignore Offline Shaming rules
        "AllowAttackOnDecayDayNumber": 8, // the number of days of decay time allowed before Offline Shaming is ignored, on day 8, the plugin is ignored

        "ShamingMessageCooldown": 300,  // the amount of seconds in between sending shaming message to chat/discord if fplayer continues to attack
        "ShamingMessageColor": "<RichColor Color=\"0, 1, 0, 1\">",

        "StructureExemptions": [   // structures to ignore
            "FenceFoundation",
            "FenceSupport"
        ],
        "MessageIntervalInSecs": 5,
        "MessageTextSize": 1.4,
        "MessageDisplayDelay": 10,
        "MessageColor": [
            1.0,
            0.0,
            0.0,
            0.0
        ],
  
        // New Messaging config allows for multi language support.
        // In the example below you could add a Spanish group to Permissions and anyone win that group will see the messages in Spanish
        "Messages":{
            "Groups":{
                "Default": {
                    "SenderNameInChat": "OFFLINE RAIDING ALERT",
                    "Warning": "Warning",
                    "LastWarning": "LAST WARNING",
                    "WarningNotification": "You are Offline Raiding, if you continue, then your Name, Tribe and Location could be revealed to all players.",
                    "msgMap": "Map",
                    "msgPlayer": "Player",
                    "msgIs": "is",
                    "msgFromTribe": "from tribe",
                    "msgOffliningTribe": "offlining tribe"
                },
                "Spanish": {
                    "SenderNameInChat": "ALERTA DE RAIDING SIN CONEXIÓN",
                    "Warning": "Advertencia",
                    "LastWarning": "ÚLTIMA ADVERTENCIA",
                    "WarningNotification": "Estás incursionando sin conexión, si continúas, entonces tu nombre, tribu y ubicación podrían revelarse a todos los jugadores.",
                    "msgMap": "Mapa",
                    "msgPlayer": "Jugador",
                    "msgIs": "es",
                    "msgFromTribe": "de la tribu",
                    "msgOffliningTribe": "tribu delineante"
                }
            }      
        }
    }
}



Reload config command: os.reload

This plugin works well with Tier Protection.

If you enjoy my plugins, please leave a rating! I'd also like to give a shoutout to WebBatman and Pelayori for helping me with my plugin development. I highly recommend ALL of their plugins!!!

Please join my discord channel for any questions or support. Thank you!
Author
jraServerAPI
Downloads
60
Views
1,093
First release
Last update
Rating
5.00 star(s) 6 ratings

More resources from jraServerAPI

Latest updates

  1. Version 1.2 Update

    What's new in version 1.2 - Fixed the Error code: 126 while loading. As I forgot to include...
  2. Version 1.1 Update

    What's new in version 1.1 Updated the Messages config section for multi language support You...

Latest reviews

It's an excellent plugin. Thank you for developing a good plugin like this. Keep doing it. I will cheer for you.
nice plugin
i love it
Works great.

Thanks mate!
J
jraServerAPI
you are very welcome!
absolute madness ! loving it !
J
jraServerAPI
hahaha, glad to hear it!
very good Plugin
J
jraServerAPI
thank you!
Nice Plugin !
J
jraServerAPI
Thank you!
Top