TimePlayed [API] [SQL]

SpigotVIP TimePlayed [API] [SQL] ARCHIVE

TimePlayed [API] [SQL]
Tested Minecraft Versions:
  • 1.8
  • 1.9
  • 1.10
  • 1.11
  • 1.12
f4d301079fe7dd13d8eb1572a112e67a.png

TimePlayed keeps track of how often and long your players are playing on your server, you can use this to gain accurate understanding of how often both your players and staff are actually playing on your server and keep a record of their play time.

/TimePlayed Online will open the following UI, showing playtime infomation about all online players;
fb878fecace95641f95a65aec9ab403e.gif


/TimePlayed Active will open a UI that lists your most active players (Played within last week, ordered by Total play time).



/TimePlayed [Player] works for both online and offline players, and has some more in-depth information on that users playtime.



/TimePlayed Group [Group] will open a UI based of a grouping system you can use, specify as many groups as you want in the config.yml and then give your users the permission timeplayed.groups.<group>, then run the command above and it will open a UI containing all the players will that permission node.

/TimePlayed All
will open a UI that shows the TimePlayed stats for every player captured by TimePlayed (Since it was installed).
a7adf392bdb6e09025f2cc918d2579d2.png


94b3d172f9459b96bc8c137c030c8a6e.png

Edit the rewards.yml to send players messages and/or run commands for reaching certain amounts of total-playtime, average-playtime, playing X amount of times or a mixture of each.

- Add as many rewards as you want
- Add as many messages per reward as you need
- Add as many commands per reward as you need
- Both messages and commands support the %player% variable
- Commands are run through console
- Each reward is only handed out once per player

The default rewards.yml has 3 rewards;
- Reach 1 minute total-playtime and receive an apple
- Login 3 times and receive 3 apples
- Login 3 times and play for an average of 1 minute and receive a diamond



dec816aec6656cf91710a9a32c3f51a1.png

TimePlayed has a fairly solid API which you can hook into to get access to various methods. TimePlayed customers are welcome to lend their private developers the TimePlayed.jar but only so they can access this API.
Code (Text):
TimePlayed.getApi();
// Returns the API

TimePlayed.getApi().getTotalTimeString(player);
// Returns the playtime of the player, in a user readable format



37eb1a2144aea53191c6ff59e37c30db.png

TimePlayed will run fine the moment you download it. However there are some options in the config.yml you can change.





fa5668e9ed8211120828b13f4f2fe801.png

Groups
Groups can be setup which are used with the /TimePlayed Group [Group] command.
- Add a group under Groups: in the config.yml
- Give the users you want in that group the permission timeplayed.groups.<group>
- Thats the group setup
- However each user in that group will need to login at least once after it has been setup before they will show in the UI

f6dc9a33be118925c575296fe10249a9.png

Note: Permissions are also listed in the config.yml

timeplayed.commands.* All TimePlayed command permissions
timeplayed.commands.timeplayed Permission to view own timeplayed stats via /TimePlayed
timeplayed.commands.timeplayed.other
Permission to view other users stats via /TimePlayed [Player]
timeplayed.commands.timeplayed.online
Permission to view all online players live stats via /TimePlayed Online
timeplayed.commands.timeplayed.all
Permission to view all players stats via /TimePlayed All
timeplayed.commands.timeplayed.groups.*
Permission to view any group via /TimePlayed Groups [Group]
timeplayed.commands.timeplayed.groups.<group>
Permission to view specific groups via /TimePlayed Groups [Group]
timeplayed.cangrab
Permission to be able to grab heads from any of the /TimePlayed UIs
timeplayed.groups.<group> Adds user to the group, which will display them in the /TimePlayed Group [Group] UI (Make sure to also specify groups in the config.yml)
Images

Latest reviews

Permanent database error

Similar resources

Ace-Outposts * 1.7 - 1.12 * FactionsUUID, MassivecraftFactions, Kingdoms+ * HUGE API * Easy To Setup Haizivs
Outposts are an always going capture point that gives rewards to the controlling faction/kingdom!
0.00 star(s) 0 ratings
Downloads
91
Updated
Ace-Outposts * 1.7 - 1.12 * FactionsUUID, MassivecraftFactions, Kingdoms+ * HUGE API * Easy To Setup Sauron
Outposts are an always going capture point that gives rewards to the controlling faction/kingdom!
5.00 star(s) 2 ratings
Downloads
889
Updated
Advanced Shops.{Multi language|useful API|} XDhunterXD
The best 3 in 1 economy plugin-with API : An advanced Shop/Auction/Trade that will surely amaze you.
0.00 star(s) 0 ratings
Downloads
62
Updated
BlackSpigot General Chat
Rules Help Users
    BlackSpigot.com @ BlackSpigot.com: If you buy the models the 19.99 package does it give you nullbuilds also or is it seperate...
    Top