Skip to content

Commit

Permalink
use say for all in !!loc info
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Feb 18, 2021
1 parent 6ca42fe commit 2ac53d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions LocationMarker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

PLUGIN_METADATA = {
'id': 'location_marker',
'version': '1.2.0',
'version': '1.2.1',
'name': 'Location Marker',
'description': 'A server side waypoint manager',
'author': 'Fallen_Breath',
Expand Down Expand Up @@ -310,14 +310,14 @@ def delete_location(source: CommandSource, name):
def show_location_detail(source: CommandSource, name):
loc = storage.get(name)
if loc is not None:
source.reply(RTextList('路标名: ', RText(loc.name, color=RColor.aqua)))
source.reply(RTextList('坐标: ', get_coordinate_text(loc.position, loc.dimension, precision=4)))
source.reply(RTextList('详情: ', RText(loc.description if loc.description is not None else '无', color=RColor.gray)))
source.get_server().say(RTextList('路标名: ', RText(loc.name, color=RColor.aqua)))
source.get_server().say(RTextList('坐标: ', get_coordinate_text(loc.position, loc.dimension, precision=4)))
source.get_server().say(RTextList('详情: ', RText(loc.description if loc.description is not None else '无', color=RColor.gray)))
x, y, z = map(round, loc.position)
source.reply('VoxelMap路标: [name:{}, x:{}, y:{}, z:{}, dim:{}]'.format(loc.name, x, y, z, loc.dimension))
source.reply('VoxelMap路标(1.16+): [name:{}, x:{}, y:{}, z:{}, dim:{}]'.format(loc.name, x, y, z, get_dim_key(loc.dimension)))
source.get_server().say('VoxelMap路标: [name:{}, x:{}, y:{}, z:{}, dim:{}]'.format(loc.name, x, y, z, loc.dimension))
source.get_server().say('VoxelMap路标(1.16+): [name:{}, x:{}, y:{}, z:{}, dim:{}]'.format(loc.name, x, y, z, get_dim_key(loc.dimension)))
# <Location Marker> xaero-waypoint:test:T:9987:71:9923:6:false:0:Internal-overworld-waypoints
source.get_server().broadcast('<{}> xaero-waypoint:{}:{}:{}:{}:{}:6:false:0:Internal-{}-waypoints'.format(PLUGIN_METADATA['name'], loc.name, loc.name[0], x, y, z, get_dim_key(loc.dimension).replace('minecraft:', '')))
source.get_server().say('<{}> xaero-waypoint:{}:{}:{}:{}:{}:6:false:0:Internal-{}-waypoints'.format(PLUGIN_METADATA['name'], loc.name, loc.name[0], x, y, z, get_dim_key(loc.dimension).replace('minecraft:', '')))
else:
source.reply('未找到路标§b{}§r'.format(name))

Expand Down

0 comments on commit 2ac53d9

Please sign in to comment.