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. (This plugin requires PlaytimeTracker or PlayTimeRewards plugin to work.)
Features
- Easy config, add unlimited playtime goals and their rewards
- Light plugin, no performance issues
- 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
- /prc reset - Reset all player data(Requires 'PlaytimeCommands.admin' permission to use this command in chat.)
- prc reset - Reset all player data. (Console command)
Config
{ "Select Playtime plugin(0 - PlaytimeTracker, 1 - PlayTimeRewards)": 0, "Check how often it checks for playtime and execute commands?(In Seconds)": 1800, "Reset data on new wipe": false, "Discord Webhook Settings": { "Enable discord notify": true, "Webhook URL": "", // Discord webhook url "Message": [ "PlaytimeCommands", "Excuted commands for {PLAYERNAME} - {PLAYERID}", "Executed Playtime ID {PLAYTIME}" ] }, "Execute command upon playtime Minutes completation": { "20": [ //Playtime Minute number "oxide.usergroup add {UserID} chads", //commands - Placeholders are {UserID} & {Name} which will replace with SteamID and Player Name "chat user add {UserID} chads" //commands "broadcast: {Name} has recevied Chads role for 20 minutes playtime.", // use broadcast: to send the messages to all active players "msg: You have recevied role for your playtime." // use msg: to send a personal message to the player ], "30": [ //Playtime Minute number "sr add {Name} 1000", //commands "sr take {UserID} 100", "oxide.usergroup add {UserID} veteran", //commands - Placeholders are {UserID} & {Name} which will replace with SteamID and Player Name "chat user add {UserID} veteran" //commands "broadcast: {Name} has recevied Veteran role for 30 minutes playtime.", // use broadcast: to send the messages to all active players "msg: You have recevied role for your playtime." // use msg: to send a personal message to the player ] } }