File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,10 @@ public static bool LoadLabAPIProperties(LabPlugin plugin)
446446 ISerializer serializer = LabApi . Loader . Features . Yaml . YamlConfigParser . Serializer ;
447447 IDeserializer deserializer = LabApi . Loader . Features . Yaml . YamlConfigParser . Deserializer ;
448448
449- string configPath = Path . Combine ( Paths . IndividualConfigs , plugin . Name , $ "{ Server . Port } -properties.yml") ;
449+ string directory = Path . Combine ( Paths . IndividualConfigs , plugin . Name ) ;
450+ string configPath = Path . Combine ( directory , $ "{ Server . Port } -properties.yml") ;
451+
452+ Directory . CreateDirectory ( directory ) ;
450453
451454 if ( ! File . Exists ( configPath ) )
452455 {
Original file line number Diff line number Diff line change @@ -635,7 +635,10 @@ private static void LoadPluginsFromDirectory(string dir = null)
635635 continue ;
636636
637637 if ( PluginLoader . EnabledPlugins . Any ( p => p . Name == plugin . Name ) || Plugins . Any ( p => p . Name == plugin . Name ) || LabAPIPlugins . Keys . Any ( p => p . Name == plugin . Name ) )
638+ {
639+ Log . Info ( "Skipping loading duplicate LabAPI plugin " + plugin . Name ) ;
638640 continue ;
641+ }
639642
640643 Log . Info ( "Successfully loaded LabAPI plugin " + plugin . Name ) ;
641644 LabAPIPlugins . Add ( plugin , attempt ) ;
You can’t perform that action at this time.
0 commit comments