Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Commit

Permalink
添加插件初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
lightbrotherV committed Dec 24, 2018
1 parent 16090d8 commit eba0526
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ func (svr *Server) Init(name string, argv []string, workDir string) {
//初始化插件列表
svr.pluginList, svr.disablePluginList = plugin.CreatePluginsList(false)
svr.parserList = parser.CreateParserList()

//执行插件init
for _, v := range svr.pluginList {
v.Init(svr)
}
//设置端口
if svr.port == "" {
svr.port = "25565"
Expand Down

0 comments on commit eba0526

Please sign in to comment.