-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugins.yaml
More file actions
56 lines (52 loc) · 1.66 KB
/
plugins.yaml
File metadata and controls
56 lines (52 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Plugin Server Configuration
# Dragonfly runs a gRPC server that plugins connect to
# Use Unix socket for best performance
server_port: "unix:///tmp/dragonfly_plugin.sock"
# Or use TCP for remote: "127.0.0.1:50050"
# List of plugin IDs that must connect before server starts
# This ensures custom items are registered before the resource pack is built
required_plugins:
- example-php
# Maximum time to wait for required plugins to connect (milliseconds)
hello_timeout_ms: 5000
plugins:
# - id: example-node
# name: Example Node Plugin
# command: "node"
# args: ["../examples/plugins/node/hello.js"]
# env:
# NODE_ENV: development
- id: example-typescript
name: Example TypeScript Plugin
#command: "node"
#args: ["../examples/plugins/typescript/dist/index.js"]
command: "npm"
args: ["run", "dev"]
work_dir:
path: "../examples/plugins/typescript"
env:
NODE_ENV: production
- id: example-php
name: Example PHP Plugin
command: "../examples/plugins/php/bin/php7/bin/php"
args: ["../examples/plugins/php/src/HelloPlugin.php"]
# command: "docker"
# args:
# - "compose"
# - "-f"
# - "../examples/plugins/php/docker-compose.yml"
# - "up"
# - "--abort-on-container-exit"
env:
PHP_ENV: production
- id: example-go
name: Example Go Plugin
command: "go"
args: ["run", "cmd/main.go"]
work_dir:
git:
enabled: true
#persistent: true # persistent can be set to true if you don't
# want the plugin to be cloned at every startup
#version: tags/v0.0.1 # can also specify commit hashes
path: https://github.com/secmc/plugin-go