[1.17+] PlaytimeRewards icon

[1.17+] PlaytimeRewards -----

Reward your Players for their Playtime!



Config | Permissions | AutoSave | UpdateNotification
Update Time!

Config:
A Config.yml File got added. For now it's relatively empty, but nonetheless there are some Options. Let's look into it:

Code (YAML):
#Configuration File for [email protected]://www.spigotmc.org/resources/100231/ by ExoBite
EnableUpdateCheck
: true #This Option only Notifies you when a New Version is online, it doesn't download anything.
DataSaveInterval
: '1h' #Set to '-1' to Disable the Automatic Save Interval
The Option "EnableUpdateCheck" allows the Plugin to Check for an Update. For now it only checks for an Update, upon the Server Start.
If a newer Version is published, it'll tell you in the Console as well as it will notify Players with the new Permission "playtimerewards.notifyOnUpdate" upon Login.

The Option "DataSaveInterval" can be supplied with a Time, similiar to Rewards. If a Time is specified, it will automatically backup all Player-Related Data for all Players Online. You can set it to '-1' to disable this Function.

The Config.yml File will get generated in your Plugin Folder, upon executing the newer Version.

Messages:
The lang.yml File got updated.
Code (YAML):
- New Messages :
 - NOTIF_UPDATE_AVAILABLE -> Notifies Users with "playtimerewards.notifyOnUpdate"-Permission about a new Update
  - CMD_SUC_PT_OTHER -> The Message Players receive when looking at other Players Playtime
  - CMD_ERR_PLAYER_NOT_FOUND -> The Error that gets shown when the specified Player is not found
- Changed Messages
:
 - Renamed PTR_SUC_PLAYTIMECOMMAND to CMD_SUC_PT_OWN
Your lang.yml File will update itself upon starting the Plugin.

Permissions:
I've added a few Permissions (and changed one):

Code (Text):
- playtimerewards.*
- playtimerewards.notifyOnUpdate
- playtimerewards.cmd.playtime.other
- changed "timerewards.cmd.playtime.own" to "playtimerewards.cmd.playtime.own"
The first Permission is a wildcard Permission that grants all
The first second Permission was already explained above.
The third new Permission gets us to a new Function:

Commands:
The /playtime command now got a new Parameter: /playtime [player]

The [player] Parameter allows Players to specify a Playername in order to see their Playtime. Only Players with the Permission "
playtimerewards.cmd.playtime.other" can use this Command.

Everything else is getting an Updated Explanation in the "Documentation" Tab of the Plugin, or it is listed in the detailed, changelog.

Hope you have a nice Day!
Code (Text):
Changelog Version 0.1.2:
    - Added a Config.yml
        - Value "EnableUpdateCheck" (boolean) controls whether the Plugin Notifies the Admins about a new Plugin Version
        - Value "DataSaveInterval" (timeString) controls the Automatic Save Interval (-1 Disables the Autosave)
        - Hidden Value "debug_allowDebugTools" (boolean) allows the access to the DebugTools
        - Hidden Value "ColorCode" (char) sets the color code for the whole Plugin

    - Added a bunch of new Permissions:
        - Changed the Permission "timerewards.cmd.playtime.own" to "playtimerewards.cmd.playtime.own"
        - Added the following Permissions:
            - playtimerewards.*
            - playtimerewards.notifyOnUpdate
            - playtimerewards.cmd.playtime.other

    - Changes to Messages:
        - New Messages:
            - NOTIF_UPDATE_AVAILABLE -> Notifies Users with "playtimerewards.notifyOnUpdate"-Permission about a new Update
            - CMD_SUC_PT_OTHER -> The Message Players receive when looking at other Players Playtime
            - CMD_ERR_PLAYER_NOT_FOUND -> The Error that gets shown when the specified Player is not found
        - Changed Messages:
            - Renamed PTR_SUC_PLAYTIMECOMMAND to CMD_SUC_PT_OWN
        - The Lang class now recognizes Missing Messages. It Updates the lang.yml File and notifies the user.

    - Changed Commands:
        - /Playtime:
            - Added the Parameter no. 1 "[Player]" (optional)
                - Allows to check other Players Playtime
                - Needs Permission "playtimerewards.cmd.playtime.other" to execute
                - Sends Message "CMD_SUC_PT_OTHER"

    - Added an Auto Updater using the Spiget-API
        - For now it only checks for new Updates, it doesn't download them automatically.
        - Maybe i'll add this in the Future-
        - Players with the new Permission "playtimerewards.notifyOnUpdate" get a Notification upon login

    - Added in the MOTD-System from the earlier PlaytimeRewards Plugin(s)
        - Allows me (the Developer) to send MOTD's to ServerOwners, Notifying them about Hotfixes or similar stuff.

    - Added the Reward Option 'PermissionNeeded'
        - The Player needs the specified Permission in order to be able to earn the Reward
        - This is an optional Field

    - Made small changes to the Debug tools:
        - Now it is possible to store reflection instances returned from a Method (without Parameters)
        - update the debug#reflect help

    - Added the Auto Save Task
    - Added a link to the Plugin resource page on spigot to all default *.yml files
    - Changed the PLAYER_PER_CYCLE Constant to 50 (from 100)
    - The Plugin now fills the PlayerName in the <PLAYER> Placeholder
    - Added a new Placeholder: <PLAYERDISPLAY> -> Fills in the Players Displayname (including prefixes, suffixes etc.)


 
----------, Feb 24, 2022
Resource Information
Author:
----------
Total Downloads: 4,976
First Release: Feb 22, 2022
Last Update: Jan 15, 2023
Category: ---------------
All-Time Rating:
11 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings