If the API is used before a command is called, the plugin crashes
Closed this issue · 0 comments
jasonw4331 commented
If the API is used before a command is called, the plugin crashes.
Essential variables for the API should not be defined for the first time by running a command as is bone here
https://github.com/Invy55/SimpleBanner/blob/master/src/Invy55/SimpleBanner/Main.php#L39-L43
Hard coded variables should be assigned to their variables on declaration to prevent crashes.
Currently, running $main->color()
or $main->layer()
without using the command first instantly crashes the server.