Automatic decay notifications and a command for upkeep status in minutes

Supported Games
GameServerKingsGameServerKings

This is a simple plugin that sends automatic decay notifications to players with authorized tool cupboards when they have a set number of minutes left before their base begins to decay or if it has already begun decaying.

Players must be within the privilege zone in order for the command and notifications to work at the moment.

Permissions

  • decaynotifications.use -- Allows players to use the /tcstatus chat command

Chat Commands

  • /tcstatus -- Show the number of minutes left before decay begins

Configuration

{
  "AutomaticNotificationsEnabled": true,
  "MinutesLeftNeededToSendNotification": 30.0,
  "NotificationIntervalInMinutes": 10.0
}

Localization

{
  "PrimaryDecayNotification": "<color=lime>DecayNotifications<color=cyan>: Your base is going to decay in <color=lime>{0} minutes ",
  "FinalDecayNotification": "<color=lime>DecayNotifications<color=cyan>: You have no items in your tool cupboard and your base has started to decay!",
  "NoPriviledge": "<color=lime>DecayNotifications<color=cyan>: You do not have any building priviledge",
  "NoPermission": "<color=lime>DecayNotifications<color=cyan>: You do not have permission to use this command",
  "HelpTextAPI": "<color=yellow>/tcstatus - Check the amount of minutes left you have before your tool cupboard decays!"
}
<p>MIT License</p>
<p>Copyright (c) 2019 Ankawi</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.</p>