About Playtime Commands
The "PlaytimeCommands" plugin for Rust allows server administrators to automate the execution of commands when players achieve specific playtime milestones. Upon initialization, it checks players' playtime at regular intervals and triggers configured commands when certain hour goals are reached.
NEW! Version 2.0.0 Doesn't requires any support plugin like PlaytimeTracker plugin and now stores playtime natively with most efficient methods.
Features
- Easy config, add unlimited playtime goals and their rewards
- Light plugin, no performance issues
- Saved playtime for each player natively using efficient methods
- Saved PlayerData to ensure they don't get repeat rewards
- Reset PlayerData when editing config values
- NEW! Send customized Broadcast message or personal messages
- NEW! Send discord webhook notification
Commands
- /playtime - View your playtime
- /playtime top - View the top playtimes
- /prc resetrewards [name|id] - Reset rewards (all or one player) Requires (PlaytimeCommands.admin)
- /prc resetplaytime [name|id] - reset playtime (all or one player) Requires (PlaytimeCommands.admin)
- /prc import - Imports playtime from PlaytimeTracker plugin data Requires (PlaytimeCommands.admin)
- /prc help - Shows all available admin commands Requires (PlaytimeCommands.admin)
Config
{ "Check how often it checks for playtime and execute commands?(In Seconds)": 600, "Number of players to show in the /playtime top list": 10, "Discord Webhook Settings": { "Enable discord notify": false, "Webhook URL": "", "Message": [ "PlaytimeCommands", "Excuted commands for {PLAYERNAME} - {PLAYERID}", "Executed Playtime ID {PLAYTIME}" ] }, "Reset data on new wipe": false, "Execute command upon playtime Minutes completation": { "60": [ "oxide.usergroup add {UserID} chads", "chat user add {UserID} chads", "msg: You have recevied chads role for playtime.", "broadcast: {Name} has recevied chad role for playtime" ], "120": [ "sr add {Name} 1000", "sr take {UserID} 100", "oxide.usergroup add {UserID} veteran", "msg: You have recevied veteran role for playtime.", "broadcast: {Name} has recevied veteran role for playtime" ] }, "Version": { "Major": 2, "Minor": 0, "Patch": 0 } }
Lang
{ "Prefix": "<color=#45b6fe>[PlayTime]</color> ", "NoPermission": "<color=#ff6b6b>You don't have permission to use this command.</color>", "Help": "<color=#45b6fe>Playtime Commands:</color>\n<color=#ffd479>/playtime</color> - view your playtime\n<color=#ffd479>/playtime top</color> - view the top playtimes\n<color=#ffd479>/prc resetrewards [name|id]</color> - reset rewards (all or one player)\n<color=#ffd479>/prc resetplaytime [name|id]</color> - reset playtime (all or one player)\n<color=#ffd479>/prc import</color> - import playtime from PlaytimeTracker", "Playtime.Self": "Your playtime: <color=#ffd479>{0}</color>", "Playtime.Other": "<color=#a1ff46>{0}</color> playtime: <color=#ffd479>{1}</color>", "Playtime.None": "No playtime has been stored for you yet.", "Playtime.Help": "See the top playtimes with <color=#a1ff46>/playtime top</color>", "Top.Title": "<color=#45b6fe>Top Playtimes:</color>", "Top.Format": "\n<color=#ffd479>#{0}</color> <color=#a1ff46>{1}</color> - <color=#ffd479>{2}</color>", "Top.Empty": "No playtime has been recorded yet.", "NoPlayerFound": "No player found matching <color=#a1ff46>{0}</color>.", "Reset.Rewards.All": "Cleared <color=#ffd479>all</color> players' rewards data.", "Reset.Rewards.Player": "Cleared rewards data for <color=#a1ff46>{0}</color>.", "Reset.Playtime.All": "Cleared <color=#ffd479>all</color> players' playtime.", "Reset.Playtime.Player": "Cleared playtime for <color=#a1ff46>{0}</color>." }
Found this useful? Leave a review and help others find it too!