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. 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
  2. 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!
  3. 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);
  4. 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.
  5. SomaSom
    SomaSom
    5/5,
    Version: 7.0
    This is the plugin that my network was looked for weeks.
    Thank you so much! I hope it is get supported for a long time.
  6. tntbaz
    tntbaz
    5/5,
    Version: 7.0
    this plugin is very good but when i put it in bungeecord plugins and run the server when i write /onlinetime or /ot it says command is unknown please fix this
    1. R3fleXi0n
      Author's Response
      Log errors?
  7. CrackLP
    CrackLP
    4/5,
    Version: 7.0
    Wie kann man die Api benutzen?
    Aber sonst ist es ein gutes Plugin.-.-.-.-.-.-.-.-
    1. R3fleXi0n
      Author's Response
      Gibt keine richtige API, aber schau mal in die Beschreibung, habe da einen "API"-Abschnitt hinzugefügt.
  8. Playerpressident
    Playerpressident
    3/5,
    Version: 7.0
    Ich hab ein Problem. Bei mir die online zeit nie dazu gerechnet. Also wenn ich /ot mache dann steht da der Spieler wurde nicht gefunden. Obwohl ich der spieler selber bin. Aber mit der Databank MySQL stimmt schon alles ich konnte mir schon onlinezeit cheaten und dann konnte ich /ot machen
    1. R3fleXi0n
      Author's Response
      Man braucht die BungeeCord-Permission "onlinetime.save" damit die Zeit gezählt wird.
  9. AlexW
    AlexW
    5/5,
    Version: 7.0
    Sehr gutes plugin aber die Placeholder werden nur wenn man joint aktualisiert und das ich nicht grade schön
  10. IdrisMCNL
    IdrisMCNL
    3/5,
    Version: 7.0
    Cool plugin but the Bungeeonlinetimeexpansion isnt working i get error1 please fix it because its a key feature