ServerAge 1.0

A placeholder add-on used to display the age of a server.

  1. Shockzeh
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    ServerAge
    A placeholder add-on used to display the age of a server, supporting both PlaceholderAPI and MVdWPlaceholderAPI. This plugin simply provides a placeholder which can display the time difference between the current and a given timestamp, meaning it can be used for different purposes too.

    Guide
    Use the placeholders shown below depending on your chosen placeholder plugin to retrieve the age of a server based on the given wildcard timestamp. The '#' below should be replaced with the server's start date in a UNIX timestamp format, which can be retrieved here by entering a date, selecting 'Convert' and then copying the resulting timestamp into your placeholder, most probably within a scoreboard or menu configuration. The plugin supports both past and future timestamps and will calculate the difference accordingly.

    Placeholders:
    • PlaceholderAPI: %serverage_#%
    • MVdWPlaceholderAPI: {serverage_#}
    Configuration
    You are not required to modify the configuration unless you use both PlaceholderAPI and MVdWPlaceholderAPI on your server. If this is the case, you should set the 'default-provider' option to the plugin you wish to use for ServerAge placeholders.
    Code (YAML):
    # ServerAge by AsyncJay

    # This is only required if you run both PlaceholderAPI and MvDWPlaceholderAPI
    # on your server. This will prevent the plugin from hooking into the incorrect
    # placeholder plugin.
    # Supported providers are: 'placeholderapi' or 'mvdwplaceholderapi'
    default-provider
    : placeholderapi
    API
    If you wish to supply your own result to the placeholder, you can create a PlaceholderSupplier implementation and then replace the default supplier with your own. An example of where this could be used is if you wish to use your own time formatting.
    Code (Java):
    if (Bukkit.getPluginManager().isPluginEnabled("ServerAge")) { // Make sure plugin is enabled
         ServerAgePlugin plugin = (ServerAgePlugin) Bukkit.getPluginManager().getPlugin("ServerAge"); // Get instance
         plugin.setSupplier(argument -> { // Replace the supplier (PlaceholderSupplier is a functional interface)
         long time = Long.parseLong(argument); // A raw long is expected, but should be checked
         return String.valueOf(time); // Parse time how you like and return result
      });
    }
    Terms and Conditions
    • You may not upload, share or distribute this resource elsewhere unless I given written permission. If this plugin is requested, please link this resource page.
    • You will private message me for support, do not use the reviews section.
    • I am not required to add a suggestion, although I do take every one into consideration.

Recent Reviews

  1. ronald
    ronald
    5/5,
    Version: 1.0
    Its actually good but how to add it on DeluxeMenu ? because i tried it and it didnt work. can you help me?
  2. nohaxsallskills
    nohaxsallskills
    5/5,
    Version: 1.0
    Amazing Plugin I am using it on my server play.venommc.net thanks so much! 808080808
  3. R00t
    R00t
    5/5,
    Version: 1.0
    Awesome Plugin, I’m excited to use when I get home in 5 days! I’ve been looking for a perfected version of this!
    1. Shockzeh
      Author's Response
      Thanks for the review — glad you like the plugin! :)
  4. mouad
    mouad
    5/5,
    Version: 1.0
    good plugin i like it
    but
    can you add bungeecord support
    thank you

    bla bla bla bla
    1. Shockzeh
      Author's Response
      I'm not exactly sure what you mean by BungeeCord support. Where are you hoping to use the placeholders on the BungeeCord side of things? You can install this plugin on any Spigot server and use the same timestamp if that's what you wanted, otherwise, PM me what you mean and I'll take it from there. Thanks for the review! :)
  5. UltimateGames
    UltimateGames
    5/5,
    Version: 1.0
    ( ͡° ͜ʖ ͡°) I see you old friend xd, 11/10 plugin. It's made by shock so you already know it'll work perfectly and flawlessly. On another note,

    I still miss you :(
    1. Shockzeh
      Author's Response
      Thanks for the review! I'm still around, just not a lot of time to release things on here currently — thought this would be something useful to quickly put together to kill some time when I was out and about. Happy holidays! :)