mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Adds a method that returns the File representation of the update folder. The previous method just returns the filename and doesn't provide the path
By: raphfrk <raphfrk@gmail.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
import java.io.File;
|
||||||
import org.bukkit.command.PluginCommand;
|
import org.bukkit.command.PluginCommand;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@@ -148,10 +149,20 @@ public interface Server {
|
|||||||
* Gets the name of the update folder. The update folder is used to safely update
|
* Gets the name of the update folder. The update folder is used to safely update
|
||||||
* plugins at the right moment on a plugin load.
|
* plugins at the right moment on a plugin load.
|
||||||
*
|
*
|
||||||
|
* The update folder name is relative to the plugins folder.
|
||||||
|
*
|
||||||
* @return The name of the update folder
|
* @return The name of the update folder
|
||||||
*/
|
*/
|
||||||
public String getUpdateFolder();
|
public String getUpdateFolder();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the update folder. The update folder is used to safely update
|
||||||
|
* plugins at the right moment on a plugin load.
|
||||||
|
*
|
||||||
|
* @return The name of the update folder
|
||||||
|
*/
|
||||||
|
public File getUpdateFolderFile();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a player object by the given username
|
* Gets a player object by the given username
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user