Reward players if they re-join after restart
Supported Games
depends on
- Smooth Restarter3.1.*
used by
What is it?
This plugin allows you to automatically reward players if they re-join after the server restart. Rewards are permission-based and configurable.
Configuration
{
"Notification frequency": 30.0,
"Reconnect threshold": 600.0,
"Rewards": {
"": [
{
"shortname": "rifle.ak",
"quantity": 1,
"durability": 0.3,
"skin": 0
},
{
"shortname": "ammo.rifle",
"quantity": 60,
"durability": 1.0,
"skin": 0
}
]
}
}
Notification frequency: How often to notify players that they will be able to receive rewards (in seconds, starts when the restart process was initiated). Set to 0 if you want notifications to be triggered everytime SmoothRestarter send it's notificationReconnect threshold: How long rewards will be available after restart (in seconds). Set to 0 for unlimited time (until the next restart)Rewards:key:valuepairs, wherekeyis the permission appendersmoothrestarterrejoinrewards.<key>andvalueis the item definition. Use "" as key for default rewards (given to all players regardless of permissions)
Permissions
Plugin permissions depend on Rewards configuration field. Read above for explanation.
Localization
{
"Chat prefix": "<color=#ffa04f>Rejoin Rewards</color>:",
"Chance to claim rewards": "If you rejoin after the server restart, you will receive rewards:\n{0}",
"Has unclaimed rewards": "You currently have unclaimed rejoin rewards, use /rjrewards to claim them",
"No unclaimed rewards": "You do not have any unclaimed rewards",
"Not enough space": "You do not have enough space in your inventory, some rewards ({0}) were not claimed. Free up some space and use /rjrewards to claim the remaining items",
"All rewards claimed": "All rewards were claimed"
}
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), 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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", 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.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), 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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", 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.

