基于 DFYX 的 Landmarks 以及我对它进行的多种类型修改,并受 Thulinma 在 BukkitDev 上的后续版本(尤其是加入传送/注视功能)的启发重新编写。使用 Python 重写,并调用 dynmap API。
信息
特性
- 提供向世界中添加地标的方法,这些地标将在 dynmap 上显示。
- 地标可以拥有不同的图标和描述性标签。
- 它们具有持久性,使用 dynmap 的标记存储机制。
- 包含传送和注视命令,并为所有命令提供了权限控制。
额外内容
附带一套我早期为服务器模组化地标 v0.2 版本制作的自定义图标,共 5 个。其中 4 个经过编辑以适配 dynmap 的正常显示(无缩放),另一个图标在 dynmap 中的显示效果比单独查看时稍差一些。





源代码
只需使用你选择的任意文本编辑器或 IDE 打开存档中的插件 .py 文件即可 :)
使用方法
安装
更改默认图标
- 打开 config.yml
- 将 defaults.icon 更改为你默认 .png 图标的文件名
添加更多图标
- 将图标作为 .png 文件复制到 /plugins/dynmap-pylandmarks/icons/ 目录中
- .png 文件名去掉扩展名即为该图标对应的地标类型
命令/权限
- /lm set id [type [label]]
- 在当前所在位置创建一个新的地标,可选指定类型和标签;标签默认为大写形式的 id
pylandmarks.create
- /lm remove id c
- 移除一个地标
pylandmarks.create
- /lm type id type c
- 更改地标的类型
pylandmarks.modify
- /lm label id label c
- 更改地标的标签
pylandmarks.modify
- /lm list [types] c
- 列出所有地标
pylandmarks.create 或 pylandmarks.modify
- /lm warp id
- 传送到某个地标
pylandmarks.warp
- /lm find id
- 注视某个地标
pylandmarks.view
c:可从服务器控制台使用
即将推出的功能
“迷你标记”供玩家使用,允许玩家为自己或其他人标记位置。与正式的地标相比选项较少,但提供了其他一些与之交互的有用方式。
Based on Landmarks by DFYX and my own multi-type modification of it, re-inspired by its continuation on BukkitDev by Thulinma (especially the inclusion of warp/lookat), rewritten in python, using the dynmap API
Information
Features
- Provides methods for adding Landmarks to the world, which display on dynmap.
- Landmarks may be have different icons and a descriptive label.
- They are persistent, using dynmaps marker storage.
- Includes warp and look-at commands, permissions for all commands.
Bonus
Comes with a set of 5 custom icons that i made for our server for my modded landmarks 0.2 way back, 4 of them edited to properly display in dynmap (no scaling), the other one looks a bit worse on dynmap than by itself





Source
Just open the plugin .py from the archive in any text editor or IDE of your choice :)
Usage
Installation
Change Default Icon
- open config.yml
- change defaults.icon to whatever your default .png is named
Add more Icons
- copy icons as .png into /plugins/dynmap-pylandmarks/icons/
- name of .png minus extension is the landmark type for that icon
Commands/Permissions
- /lm set id [type [label]]
- creates a new landmark at your current position with optional type and label, label defaults to capitalized id
pylandmarks.create
- /lm remove id c
- removes a landmark
pylandmarks.create
- /lm type id type c
- changes the type of a landmark
pylandmarks.modify
- /lm label id label c
- changes the label of a landmark
pylandmarks.modify
- /lm list [types] c
- lists all landmarks
pylandmarks.create or pylandmarks.modify
- /lm warp id
- warps to a landmarks
pylandmarks.warp
- /lm find id
- looks at a landmark
pylandmarks.view
c:can be used from server console
Upcoming features
"Mini-marks" for players, that offer players a way to mark locations for themselves or others. Limited in options compared to proper Landmarks, but with some other useful ways of interacting with them.
评论 0
登录后参与评分
还没有评论,来抢沙发吧