Solved Adding commands from within the plugin

Discussion in 'Spigot Plugin Development' started by fishy_ydrib, Jan 19, 2020.

  1. Hello, I am trying to make a plugin where players can add new commands within the config file, but for versions 1.13+, I need the commands to be registered so they don't show up red when typed. My initial thought was to somehow modify the plugin.yml from within the plugin, but I'm not sure if that's possible. After doing some research, I came across the PlayerCommandPreprocess Event. I have found out that it is possible to disable commands with this, but I'm not sure about making new ones. I am open to any suggestions.
    Thanks!
     
    • Friendly Friendly x 1