Skip to content

Commit 7f595e9

Browse files
committed
add default config file in README.md
1 parent f9bbfd6 commit 7f595e9

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,18 @@
1212
- `command`: Command to get seed in console
1313
- `parser`: Parser for the command result
1414

15+
Default config file:
16+
```
17+
{
18+
'command': 'seed',
19+
'parser': 'Seed: [{}]'
20+
}
21+
```
22+
1523
The default configuration already supports most server software (without plugin/mods).
1624

17-
## More
25+
## Thanks to
26+
27+
This plugin was inspired by [`MCDReforged/Seed`](https://github.com/MCDReforged/Seed)
1828

19-
This plugn was inspired by [`MCDReforged/Seed`](https://github.com/MCDReforged/Seed)
29+
Thanks to @[alex3236](https://github.com/alex3236) for refactoring the code((

mcdreforged.plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Seed",
55
"description": "Get world seed without op permission.",
66
"author": [
7-
"OptiJava"
7+
"OptiJava"
88
],
99
"link": "https://github.com/OptiJava/Seed",
1010
"dependencies": {

seed/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_seed(server: PluginServerInterface):
4646
getting_seed = False
4747

4848

49-
def on_info(server: ServerInterface, info: Info):
49+
def on_info(server: PluginServerInterface, info: Info):
5050
global getting_seed, seed
5151
if getting_seed:
5252
result = parse(config['parser'], info.content)
@@ -61,7 +61,7 @@ def print_seed(source: CommandSource):
6161
RTextMCDRTranslation('seed.get_seed', RColor.yellow),
6262
RText('[', RColor.white),
6363
RText(seed, RColor.green, RStyle.underlined).
64-
h(RTextMCDRTranslation('seed.copy_to_clipboard')).
65-
c(RAction.copy_to_clipboard, seed),
64+
h(RTextMCDRTranslation('seed.copy_to_clipboard')).
65+
c(RAction.copy_to_clipboard, seed),
6666
RText(']', RColor.white))
6767
)

0 commit comments

Comments
 (0)