BungeeOnlineTime 7.0

A very simple plugin which logs a players onlinetime.

  1. R3fleXi0n
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://github.com/R3fleXi0n/BungeeOnlineTime
    BungeeOnlineTime - by R3fleXi0n


    Description:

    This plugin saves the amount of time a player has played on your network into a SQL database.
    With a simple command you can check a players onlinetime.


    Features:

    - All messages are configurable
    - Supports both SQLite and MySQL
    - Possibility to add command aliases
    - Supports PlaceholderAPI
    - Possibility to only save the onlinetime of certain players
    - "API" for developers


    Commands:

    /onlinetime
    Displays your own onlinetime

    /onlinetime get <player>
    Displays another player's onlinetime

    /onlinetime top
    Displays the top 10 onlinetimes

    /onlinetime reset <player>
    Resets a players onlinetime

    /onlinetime resetall
    Resets the onlinetime of all the players


    Permissions:

    - onlinetime.save (*)
    - onlinetime.own
    - onlinetime.others
    - onlinetime.top
    - onlinetime.reset
    - onlinetime.resetall

    (*without this permission, a player's onlinetime won't be saved)


    Installation:

    Plugin:
    1. Stop the server.
    2. Copy the plugin into your BungeeCord pluginfolder.
    3. Start the server.
    4. Stop the server.
    5. If using MySQL, open the config.yml and enter your data.
    6. Add the permissions to your BungeeCord configfile.
    7. Start the server.
    8. Done.

    PlaceholderAPI:
    1. Drop the BungeeOnlineTimeExpansion.jar into the PlaceholderAPI expansions folder.
    2. The placeholders are %onlinetime_days%, %onlinetime_hours% or %onlinetime_minutes% if you want to get the onlinetime in days/hours/minutes.
    3. Note that some placeholder plugins, won't work with BungeeOnlineTime, but I can't do anything to fix that.
    4. Done


    "API":
    BungeeCord devs can use the API like this:
    Code (Java):
    BungeeOnlineTime.SQL...

    .getOnlineTime(UUID uuid)
    .getOnlineTime(String name)
    .updateOnlineTime(UUID uuid, String name, long timeInMillis)
    Or you can use this SQL Query:
    Code (Text):
    SELECT time, name FROM BungeeOnlineTime WHERE uuid = <uuid>;
    Code (Text):
    SELECT time FROM BungeeOnlineTime WHERE name = <name>;
    --------------------------------------------------------

    You have found a bug? Message me your problem (and your log error) via PM.​

Recent Reviews

  1. 110MinePolizei
    110MinePolizei
    5/5,
    Version: 7.0
    Beste Plugin. So viele Downloads und fast gar keine Resizionen. ------------------------------
  2. Gardemarin
    Gardemarin
    5/5,
    Version: 7.0
    Installed the plugin. Writing a command. Write " Player nick not found". What should I do?
  3. KevinYouTube
    KevinYouTube
    4/5,
    Version: 7.0
    Great!
    But dont write in database.
    I set perrmission for player = "onlinetime.save" and "onlinetime.own" but not working. Please update 1.15.2
  4. Cali_xd
    Cali_xd
    5/5,
    Version: 7.0
    Plugin works fine on 1.12.2 BungeeCord System but i cant work with Placeholder in other Plugins (example Scoreboard). I get Error1 when i insert %onlinetime_hours%
  5. shadowpotato
    shadowpotato
    5/5,
    Version: 7.0
    not working i have to install it on both spigot and bungee? please help me the plugin is not working
  6. fruitytime
    fruitytime
    4/5,
    Version: 7.0
    10:21:31 [SEVERE] java.lang.NullPointerException
    10:21:31 [SEVERE] at lu.r3flexi0n.bungeeonlinetime.OnlineTimeListener.lambda$onPluginMessage$2(OnlineTimeListener.java:109)
    10:21:31 [SEVERE] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
    10:21:31 [SEVERE] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    10:21:31 [SEVERE] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    10:21:31 [SEVERE] at java.lang.Thread.run(Unknown Source)
    10:21:31 [SEVERE] java.lang.NullPointerException
    10:21:31 [SEVERE] at lu.r3flexi0n.bungeeonlinetime.OnlineTimeListener.lambda$onPluginMessage$2(OnlineTimeListener.java:109)
    10:21:31 [SEVERE] at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
    10:21:31 [SEVERE] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    10:21:31 [SEVERE] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    10:21:31 [SEVERE] at java.lang.Thread.run(Unknown Source)
  7. iTzGamer_05
    iTzGamer_05
    4/5,
    Version: 7.0
    Hey. ich mag das Plugin sehr, aber bitte bearbeite das PlaceholderAPI Addon so das es von PlaceholderAPI erkannt wird LG. Jonas
  8. dfxphoenix
    dfxphoenix
    5/5,
    Version: 7.0
    Nice plugin. I love it. But i have a problem, i need this plugin fot 1.14.
    . Please update to 1.14!
  9. HowToKnxb4ck
    HowToKnxb4ck
    4/5,
    Version: 7.0
    Hey ich finde es an sich ein Gutes Plugin aber könntest du mir schreiben wie man es mit der neuen version macht das die zeit im Scoreboard angezeit wird LG Silas

    obj.getScore("§8•§7● Onlinezeit:").setScore(4);
    obj.getScore("§8➜" ).setScore(3);
  10. StefanStef
    StefanStef
    5/5,
    Version: 7.0
    A very good plugin that I was searching for a while. It does a great job with what it is supposed to do.