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. Mih
    Mih
    1/5,
    Version: 7.0
    does not work on java 11
    .
  2. zR4zzer
    zR4zzer
    1/5,
    Version: 7.0
    Plugin deletes playtime hours randomly without a reason, dropps many errors in the console and is a very bad choice for a good bungee playtime system.
  3. G4Bleee
    G4Bleee
    2/5,
    Version: 7.0
    20:15:50 [SCHWERWIEGEND] java.io.IOException: Server returned HTTP response code: 403 for URL: https://bitbucket.org/xerial/sqlite-jdbc/downloads/sqlite-jdbc-3.23.1.jar
    20:15:50 [SCHWERWIEGEND] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
    20:15:50 [SCHWERWIEGEND] at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:91)
    20:15:50 [SCHWERWIEGEND] at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1484)
    20:15:50 [SCHWERWIEGEND] at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1482)
    20:15:50 [SCHWERWIEGEND] at java.security.AccessController.doPrivileged(Native Method)
    20:15:50 [SCHWERWIEGEND] at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
    20:15:50 [SCHWERWIEGEND] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1481)
    20:15:50 [SCHWERWIEGEND] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)
    20:15:50 [SCHWERWIEGEND] at java.net.URL.openStream(URL.java:1045)
    20:15:50 [SCHWERWIEGEND] at lu.r3flexi0n.bungeeonlinetime.BungeeOnlineTime.downloadSQLite(BungeeOnlineTime.java:158)
    20:15:50 [SCHWERWIEGEND] at lu.r3flexi0n.bungeeonlinetime.BungeeOnlineTime.onEnable(BungeeOnlineTime.java:69)
    20:15:50 [SCHWERWIEGEND] at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:250)
    20:15:50 [SCHWERWIEGEND] at net.md_5.bungee.BungeeCord.start(BungeeCord.java:285)
    20:15:50 [SCHWERWIEGEND] at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62)
    20:15:50 [SCHWERWIEGEND] at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)


    Im Scoreboard (Spigot 1.8.8) klappts nicht... Errors in der Bungee Console gibt es auch genug...
  4. 110MinePolizei
    110MinePolizei
    5/5,
    Version: 7.0
    Beste Plugin. So viele Downloads und fast gar keine Resizionen. ------------------------------
  5. Gardemarin
    Gardemarin
    5/5,
    Version: 7.0
    Installed the plugin. Writing a command. Write " Player nick not found". What should I do?
  6. 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
  7. 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%
  8. 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
  9. 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)
  10. 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