Skip to content

Migration from NexEngine

nulli0n edited this page Feb 16, 2024 · 3 revisions

πŸ“ƒ Information

When migrating from NexEngine dependency to nightcore you will have to update the following things:

  1. Langauage config (color codes).
  2. Menu configs (button types).
  3. Main config (plugin prefix).

πŸ‡«πŸ‡· Language Config

nightcore uses new, modern Text Formation. This means all legacy color codes, such as &a, &l, #ff0000 will not work until you change them using nightcore formation.

However this might be a huge amount of work for some language configs, so you can enable Legacy Color Support in /nightcore/config.yml for a quick fix. BUT you should NOT use this option forever! You should anyway update your language config using new formation as soon as possible.

Also, you should update old Message Options to new Message Tags. However it's still compatible.

If some messages appears to be broken no matter what, just remove it completely to generate a working one on plugin reload.

πŸ–Ό Menu Configs

Some button types (the ones you set with Type setting) might be different from what was provided with NexEngine, so you have to change them. A list of all actual & available button types present in each menu config in comments above the Content section:

# ==================== GUI CONTENT ====================
# You can freely edit items in this section as you wish (add, remove, modify items).
# The following values are available as button Types:
# ACCEPT
# CLOSE
# RETURN
# ==================================================
Content:
  confirm:
    Type: accept
    # ...other things...

πŸ”§ Main Config

The only thing you need to change there is replace %plugin_name% placeholer in Plugin.Prefix setting with a plugin name (or whatever you want it to be).

🧭 Navigation Menu

🏠 General

🧩 Configuration

Clone this wiki locally