mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 05:30:55 +00:00
Forgot to add mkdir after reworking logic.
This commit is contained in:
parent
6b4bd2a987
commit
fb1fd1a6e5
@ -15,6 +15,7 @@ class UpdateCommand : CommandExecutor {
|
|||||||
args: Array<out String>
|
args: Array<out String>
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val updateDir = sender.server.pluginsFolder.resolve("update")
|
val updateDir = sender.server.pluginsFolder.resolve("update")
|
||||||
|
updateDir.mkdir()
|
||||||
if (!updateDir.exists()) {
|
if (!updateDir.exists()) {
|
||||||
sender.sendMessage("Error: Failed to create plugin update directory.")
|
sender.sendMessage("Error: Failed to create plugin update directory.")
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user