Forgot to add mkdir after reworking logic.

This commit is contained in:
Logan Gorence 2021-12-23 02:25:06 +00:00
parent 6b4bd2a987
commit fb1fd1a6e5
No known key found for this signature in database
GPG Key ID: 9743CEF10935949A

View File

@ -15,6 +15,7 @@ class UpdateCommand : CommandExecutor {
args: Array<out String>
): Boolean {
val updateDir = sender.server.pluginsFolder.resolve("update")
updateDir.mkdir()
if (!updateDir.exists()) {
sender.sendMessage("Error: Failed to create plugin update directory.")
return true