https://github.com/minidigger/onlinetime
[Spigot] Displays the playtime of your players!
https://github.com/minidigger/onlinetime
Last synced: about 1 month ago
JSON representation
[Spigot] Displays the playtime of your players!
- Host: GitHub
- URL: https://github.com/minidigger/onlinetime
- Owner: MiniDigger
- Created: 2016-06-16T15:01:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T09:45:34.000Z (over 6 years ago)
- Last Synced: 2025-01-01T00:27:48.347Z (over 1 year ago)
- Language: Java
- Homepage: https://www.spigotmc.org/resources/onlinetime.24998/
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OnlineTime [](http://bender.minidigger.me:9090/job/OnlineTime/)
This is a simple spigot plugin to display the time a player spend on your server.
It uses the inbuild stats system so it will work right away and will not start at 0!
Download the latest dev build [here](http://bender.minidigger.me:9090/job/OnlineTime/lastSuccessfulBuild/artifact/target/OnlineTime.jar).
USE AT YOUR OWN RISK!
# Command
/onlinetime: Displays your online time
/onlinetime < player>: Displays the online time of < player>. < player> needs to be online!
/onlinetimerewards: Displays the online time rewards you have gained
/onlinetimerewards < player>: Displays the online time rewards < player> has gained. < player> needs to be online!
# Permissions
/onlinetime: onlinetime.self
/onlinetime < player>: onlinetime.other
/onlinetimerewards: onlinetimerewards.self
/onlinetimerewards < player>: onlinetimerewards.other
# Aliases
You can use the following alises:
/playtime, /onlinetime, /timeplayed
You can easily add your own alises by editing the plguin.yml in the plugins jar file. You can just open it in WinRAR or something similar.
#Rewards
You can define rewards players should get for playing x amount of time on your server.
Just add a new section to the rewards list. It should look like that:
```
rewards:
test-reward: // the name
message: "Wow, you have managed to play 1 hour on this server. Take this as a gift!" // the message the player should get when getting that reward
time: "1H" // the time he needs to have played, for info below
commands: // the commands that get executed %p% gets replaced with the players name.
- "say reward given"
- "give %p% DIAMOND_AXE"
```
Time:
1D = 1 Day
1H = 1 Hour
1M = 1 Minute
1S = 1 Second
1D2H3M4S = 1 Day + 2 Hours + 3 Minutes + 4 Seconds.
# Usefull Links:
CI: http://bender.minidigger.me:9090/job/OnlineTime/
GitHub: https://github.com/MiniDigger/OnlineTime
Spigot: https://www.spigotmc.org/resources/onlinetime.24998/