Skip to content

Commit 92723fa

Browse files
committed
Update config and README.md.
1 parent ccb64b5 commit 92723fa

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
![](http://mc3.roselle.vip:602/FastScript/animate_logo.gif)
22
***
3-
# About
3+
### About
44
FastScript is a Spigot plugin, which can run JavaScript-based scripts more efficiently.
55

66
> At present, the project is still unfinished and cannot be used.
7-
8-
# Build
7+
***
8+
### Build
99
In the project root directory:
1010
```
1111
./gradle jar
12-
```
12+
```
13+
***
14+
### Links
15+
16+
[<img src="http://mc3.roselle.vip:602/icons/github.svg" width="64" height="64"/>](https://github.com/Score2/FastScript)  [<img src="http://mc3.roselle.vip:602/icons/wiki.svg" width="64" height="64"/>](https://github.com/Score2/FastScript/wiki)  [<img src="http://mc3.roselle.vip:602/icons/discord.svg" width="64" height="64"/>](https://discord.gg/GVM6vx9)

src/main/kotlin/me/scoretwo/fastscript/config/ScriptOption.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ class ScriptOption {
55

66
companion object {
77

8-
class Object(clazz: String, args: Array<Any?>)
8+
interface HasMethod
9+
10+
class Object(clazz: String, args: Array<Any?>): HasMethod
911
class Static(clazz: String)
1012
class Method(name: String, args: Array<Any?>)
1113

src/main/resources/scripts/example.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# 脚本引擎
22
engine: nashorn
33

4+
# 从脚本指定方法开始
5+
# 如果不填写, 那么根据传统的方式开始.
6+
main: 'main'
7+
48
# 导入自定义 object 作为变量
59
import:
610
# a: 'static|org.bukkit.Bukkit#getServer|args1|args2...'

src/main/resources/settings.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ Options:
55
Auto-Reload-Files: true
66

77
Load-Script-Files:
8-
- 'plugins/CustomScriptFolder'
8+
- 'plugins/CustomScriptFolder'
9+
10+
Default-Script-Options:
11+
Engine: nashorn
12+
13+
Import:

0 commit comments

Comments
 (0)