mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 11:39:39 +00:00 
			
		
		
		
	Forgot to add mkdir after reworking logic.
This commit is contained in:
		@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user