📁YAML files

SmoothSync supports legacy (&c) and MiniMessage (<red>) color codes.

Config (config.yml)

redis:
  host: localhost
  port: 6379
  password: ""
  cluster: "SmoothSync"
mongo:
  uri: "mongodb://localhost:27017"
  database: "SmoothSync"

synchronization:
  timeouts: # Timeouts in milliseconds
    join: 2000
    updated-user-request: 2000
  prevent-damage: true # Prevent damage to the player while synchronizing
  features:
    inventory: true
    ender-chest: true
    game-mode: true
    experience: true
    potion-effects: true
    health: true
    food: true
    air: true
    location: false
    advancements: true
    statistics: true
    fly: true

data-update:
  # When Performance Mode is enabled (performance-mode: true):
  # - Regular Interval Update: REDIS
  # - Update on Quit: REDIS & MONGODB
  # - Update on Death: REDIS
  # - Update on Server Stop: REDIS & MONGODB
  #
  # When Performance Mode is disabled (performance-mode: false):
  # - Regular Interval Update: REDIS & MONGODB
  # - Update on Quit: REDIS & MONGODB
  # - Update on Death: REDIS & MONGODB
  # - Update on Server Stop: REDIS & MONGODB
  performance-mode: true
  save-interval: 300 # Interval in seconds between regular updates
  update-on-death: true

invsee:
  enabled: true
  menu:
    title: "&8%player%'s inventory"
endersee:
  enabled: true
  menu:
    title: "&8%player%'s enderchest"
smoothsync:
  edit-inventory:
    menu:
      title: "&8Edit %player%'s inventory"
  edit-enderchest:
    menu:
      title: "&8Edit %player%'s enderchest"

Messages (messages.yml)

event:
  data-sync-event:
    chat:
      enabled: false
      content:
        - "&aFirst line"
        - "<red>Second line</red>" # You can use mini-message format (https://docs.advntr.dev/minimessage/index.html).
    actionbar:
      enabled: true
      content: "&7Your data has been synchronized!"
    title:
      enabled: false
      title: "&cTitle"
      subtitle: "&dSubtitle"
      fadeIn: 0.5
      stay: 2
      fadeOut: 0.5
    sound:
      enabled: true
      content: "ENTITY_PUFFER_FISH_BLOW_UP"

command:
  smoothsync:
    no-permission: "&cYou don't have permission to execute this command."
    help:
      - "&a&lSYNC &8» &fAvailable commands:"
      - "&7/smoothsync reload &8- &fReloads the config files."
      - "&7/smoothsync edit-inventory <player> &8- &fEdits the inventory of a player."
      - "&7/smoothsync edit-enderchest <player> &8- &fEdits the enderchest of a player."
    reload:
      no-permission: "&cYou don't have permission to execute this command."
      success: "&a&lSYNC &8» &fThe config files have been reloaded."
    edit-inventory:
      not-a-player: "&cYou must be a player to execute this command."
      no-permission: "&cYou don't have permission to execute this command."
      usage: "&cUsage: /smoothsync edit-inventory <player>"
      loading: "&a&lSYNC &8» &fGetting the inventory of &a%player%&f..."
      user-not-found: "&cThe player &f%player% &cwas not found."
      success: "&a&lSYNC &8» &fOpening the inventory of &a%player%&f..."
      updated: "&a&lSYNC &8» &fThe inventory of &a%player% &fhas been updated."
    edit-enderchest:
      not-a-player: "&cYou must be a player to execute this command."
      no-permission: "&cYou don't have permission to execute this command."
      usage: "&cUsage: /smoothsync edit-enderchest <player>"
      loading: "&a&lSYNC &8» &fGetting the enderchest of &a%player%&f..."
      user-not-found: "&cThe player &f%player% &cwas not found."
      success: "&a&lSYNC &8» &fOpening the enderchest of &a%player%&f..."
      updated: "&a&lSYNC &8» &fThe enderchest of &a%player% &fhas been updated."
  invsee:
    not-a-player: "&cYou must be a player to execute this command."
    no-permission: "&cYou don't have permission to execute this command."
    usage: "&cUsage: /invsee <player>"
    loading: "&a&lSYNC &8» &fGetting the inventory of &a%player%&f..."
    user-not-found: "&cThe player &f%player% &cwas not found."
    success: "&a&lSYNC &8» &fOpening the inventory of &a%player%&f..."
  endersee:
    not-a-player: "&cYou must be a player to execute this command."
    no-permission: "&cYou don't have permission to execute this command."
    usage: "&cUsage: /endersee <player>"
    loading: "&a&lSYNC &8» &fGetting the enderchest of &a%player%&f..."
    user-not-found: "&cThe player &f%player% &cwas not found."
    success: "&a&lSYNC &8» &fOpening the enderchest of &a%player%&f..."

Last updated