Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 13:30:05 +01:00
Added an update on load feature for plugins. Thanks Raphfrk!
Any files placed in the configurable update folder are automatically copied into the plugins directory the next time a reload happens. This allows safe updating of the plugin .jar files. The name of the update folder is configurable through bukkit.yml.
Dieser Commit ist enthalten in:
Ursprung
54e2254904
Commit
99a7b91ef1
@ -87,6 +87,7 @@ public final class CraftServer implements Server {
|
|||||||
configuration.getString("database.password", "walrus");
|
configuration.getString("database.password", "walrus");
|
||||||
configuration.getString("database.driver", "org.sqlite.JDBC");
|
configuration.getString("database.driver", "org.sqlite.JDBC");
|
||||||
configuration.getString("database.isolation", "SERIALIZABLE");
|
configuration.getString("database.isolation", "SERIALIZABLE");
|
||||||
|
configuration.getString("settings.update-folder", "update");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadPlugins() {
|
public void loadPlugins() {
|
||||||
@ -239,6 +240,10 @@ public final class CraftServer implements Server {
|
|||||||
|
|
||||||
// End Temporary calls
|
// End Temporary calls
|
||||||
|
|
||||||
|
public String getUpdateFolder() {
|
||||||
|
return this.configuration.getString("settings.update-folder", "update");
|
||||||
|
}
|
||||||
|
|
||||||
public PluginManager getPluginManager() {
|
public PluginManager getPluginManager() {
|
||||||
return pluginManager;
|
return pluginManager;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren