File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 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+
1523The 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((
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments