mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-03-23 05:05:50 -04:00
Create plugins folder by default
This commit is contained in:
parent
883a239af8
commit
3d64b3cc57
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@ public class PluginManager {
|
|||
private static final List<ViaProxyPlugin> PLUGINS = new ArrayList<>();
|
||||
|
||||
public static void loadPlugins() {
|
||||
if (!PLUGINS_DIR.exists() || !PLUGINS_DIR.isDirectory()) return;
|
||||
if (!PLUGINS_DIR.exists() || !PLUGINS_DIR.isDirectory()) {
|
||||
if (!PLUGINS_DIR.mkdirs()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
File[] files = PLUGINS_DIR.listFiles();
|
||||
if (files == null) return;
|
||||
|
|
Loading…
Reference in a new issue