HomeJavaModsCustomServerTime
CustomServerTime
Other Plugins by ShermansWorld:
CharacterCards, Governor, SimpleLockpicking, RaidsPerRegion

CSTIcon.png

Dependencies:
PlaceholderAPI (PAPI)

Description:

This plugin allows you to set a custom date on your server (day, month, year) that actually updates with each Minecraft day!

Usage:

Do not forget to change the world in the config if it is not named "world"! The starting date can be changed in the config. Edit date.yml to set your initial date. Edit config.yml to edit months and the date format.

You would then need to reload the config with /customservertime reload to push changes.

Commands:
/date
-
Shows the date
/customservertime reload - Reloads the config.yml
/finddate [epoch time] - Find when a date happened or will happen given an epoch time timestamp

Permissions:
customservertime.reload - Gives access to the reload command

Placeholders:

Use %customservertime_date%

Example using PAPI with the TAB plugin:
[​IMG]
[​IMG]


Spoiler: config.yml
Code (Text):

# ========================================
# |   CustomServerTime by ShermansWorld  |
# ========================================

# Source: https://github.com/ShermansWorld/CustomServerTime

# This file contains configuration options for the plugin.
# To change the current date edit the "date.yml" file.

# !! Do not change this !!
config-version: 3

# =====================================
# |          GENERAL SETTINGS         |
# =====================================


# The world in which time will pass
World: world

# The names of each month along with size in days
Months:
  1:
    Name: "January"
    Length: 31
  2:
    Name: "February"
    Length: 28
  3:
    Name: "March"
    Length: 31
  4:
    Name: "April"
    Length: 30
  5:
    Name: "May"
    Length: 31
  6:
    Name: "June"
    Length: 30
  7:
    Name: "July"
    Length: 31
  8:
    Name: "August"
    Length: 31
  9:
    Name: "September"
    Length: 30
  10:
    Name: "October"
    Length: 31
  11:
    Name: "November"
    Length: 30
  12:
    Name: "December"
    Length: 31
   
# =====================================
# |              OPTIONS              |
# =====================================

# The date mode is used to determine the format in which to display
# Placeholders:
#  @DAY - The day value
#  @DAY_SUFFIX - The suffix of the day value (i.e. the 'st' in '21st')
#  @MONTH - The number value of the month
#  @MONTH_NAME - The name of the month
#  @MONTH_LENGTH - The length of the month
#  @YEAR - The year value

# The format with default configuration will appear as "February 20th, 1998"
DateFormat: "@MONTH_NAME @DAY@DAY_SUFFIX, @YEAR"

 

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CustomServerTime is a free Minecraft Java mod. Compatible with Minecraft 1.19, 1.20. Downloaded 495 times (via Spigot). Download it and open it directly in the game.

Explore more