ScriptsLab
WikiDownloadsSourcesSupport
ScriptsLab
DocumentationDownloadsGitHubDiscord

© 2026 ScriptsLab

Back to src/main/resources
Y

config.yml

YAML · 87 lines · 1.9 KB

src/main/resources/config.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# ScriptsLab Configuration
# Production-grade scriptable plugin framework

# General Settings
general:
  # Plugin language (en, ru)
  language: en
  
  # Enable debug mode (more verbose logging)
  debug: false
  
  # Auto-save interval in minutes
  auto-save-interval: 5

# Script Engine Settings
scripts:
  # Enable JavaScript scripting engine
  enabled: true
  
  # Auto-reload scripts on file change
  auto-reload: true
  
  # Script execution timeout in milliseconds
  timeout: 5000
  
  # Maximum memory per script context (MB)
  max-memory: 128

# Module System Settings
modules:
  # Auto-load modules on startup
  auto-load: true
  
  # Modules to load (empty = load all)
  enabled-modules:
    - demo
  
  # Modules to explicitly disable
  disabled-modules: []

# Storage Settings
storage:
  # Storage provider: yaml, json, sqlite
  provider: yaml
  
  # Enable caching
  cache-enabled: true
  
  # Cache size (number of entries)
  cache-size: 1000
  
  # Auto-save on shutdown
  auto-save: true

# Performance Settings
performance:
  # Enable metrics collection
  metrics-enabled: true
  
  # Async task pool size
  async-pool-size: 4
  
  # Event processing threads
  event-threads: 2

# Security Settings
security:
  # Enable script sandboxing (RECOMMENDED for public servers)
  # true = Restricted mode (safe, limited access)
  # false = Unrestricted mode (full access, use only on private servers!)
  sandbox-enabled: false
  
  # Allowed Java packages in sandbox mode
  allowed-packages:
    - org.bukkit
    - net.kyori
    - java.util
    - java.lang
  
  # Block dangerous operations
  blocked-operations:
    - file-write        # Запись в файлы
    - file-delete       # Удаление файлов
    - system-exec       # Выполнение системных команд
    - network-access    # Сетевые запросы
    - reflection        # Java Reflection API