-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from LazyAlienServer/dev
v0.2.0
- Loading branch information
Showing
8 changed files
with
118 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from mcdreforged.api.all import Serializable | ||
|
||
class COMMAND_CONFIG(Serializable): | ||
waypoints: str = "!!wp" | ||
whereis: str = "!!vris" | ||
here: str = "!!here" | ||
fastsearch_regex: str = "^(\w+)在哪??" | ||
fastsearch_prompt: str = "XXX在哪" | ||
|
||
class PLAYER_API_CONFIG(Serializable): | ||
prefix_regex: str = "(?:\[.+\])?", | ||
player_pos_command: str = "data get entity {player} Pos", | ||
player_dimension_command: str = "data get entity {player} Dimension", | ||
player_pos_regex: str = "^{prefix_regex}(\w+) has the following entity data: \[(-?[0-9.]+)d, (-?[0-9.]+)d, (-?[0-9.]+)d\]", | ||
player_dimension_regex: str = '^{prefix_regex}(\w+) has the following entity data: "minecraft:(\w+)"', | ||
player_notfound_regex: str = '^No entity was found', | ||
player_list_command: str = "list", | ||
player_list_sep: str = ", ", | ||
player_list_regex: str = '^There are [0-9]+ of a max of [0-9]+ players online: (.+)*' | ||
highlight_command: str = "effect give {player} minecraft:glowing 15 0 true" | ||
|
||
class CONFIG(Serializable): | ||
command: COMMAND_CONFIG = COMMAND_CONFIG() | ||
player_api: PLAYER_API_CONFIG = PLAYER_API_CONFIG() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
DEFAULT_CONFIG = { | ||
"command": { | ||
"waypoints": "!!wp", | ||
"whereis": "!!vris", | ||
"here": "!!here", | ||
"fastsearch_regex": "^(\w+)在哪??", | ||
"fastsearch_prompt": "XXX在哪" | ||
}, | ||
"player_api": { | ||
"prefix_regex": "(?:\[.+\])?", | ||
"player_pos_command": "data get entity {player} Pos", | ||
"player_dimension_command": "data get entity {player} Dimension", | ||
"player_pos_regex": "^{prefix_regex}(\w+) has the following entity data: \[(-?[0-9.]+)d, (-?[0-9.]+)d, (-?[0-9.]+)d\]", | ||
"player_dimension_regex": '^{prefix_regex}(\w+) has the following entity data: "minecraft:(\w+)"', | ||
"player_notfound_regex": '^No entity was found', | ||
"player_list_command": "list", | ||
"player_list_sep": ", ", | ||
"player_list_regex": '^There are [0-9]+ of a max of [0-9]+ players online: (.+)*' | ||
} | ||
} | ||
|
||
PLUGIN_ID = "where2go" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters