Mapcoords
保存坐标!如需前往已保存的位置,可传送至该处!查找其他玩家的坐标!
与其像记录峡谷、废弃矿井或传送门等重要地点的坐标那样手动抄写,我决定制作一个插件,方便服务器上的其他玩家随时访问。当拥有所有坐标的人离线时,这尤其实用。
此插件允许玩家将坐标保存到各自独立的私有列表中。此外,还有一个供服务器上所有人查看的公共列表。
除了保存坐标外,你还可以传送到已保存的坐标位置,并查找服务器上其他玩家的坐标。
这些是主要功能:这个小巧的插件具备大量实用功能。
这是我为 Bukkit 开发的第一款插件,如果我发现自己有任何错误或可以改进的地方,请随意提交工单。谢谢,希望你喜欢使用!
功能
- 支持主世界、下界和末地!
- 支持具有多个世界的服务器
- 支持纯文本文件与 MySQL
- 私有列表与公共列表
- 传送到已保存的坐标
- 获取前往已保存坐标的指引
- 查找其他玩家的坐标
- 指南针可指向已保存的位置
待办事项
- 支持下界和末地 -
- 支持多世界 -
- 公共列表与私有列表 -
- 权限系统 -
- 自动更新检查器 -
- 传送命令 -
- 指引命令 -
- 查找命令 -
- 为未安装 MySQL 的用户提供纯文本文件支持 -
命令
以下是 Mapcoords 提供的可用命令列表。
请注意,你也可以使用 /mapcoords 代替 /mc。
- /mc [页码]: 列出所有可用命令
- /mc add [名称]: 将当前位置添加到私有列表
- /mc addp [名称]: 将当前位置添加到公共列表
- /mc delete [ID]: 从数据库中删除已保存位置的 ID
- /mc list [页码]: 列出你私有列表中的坐标
- /mc listp [页码]: 列出公共列表中的坐标
- /mc listo [用户名] [页码]: 列出另一位玩家的坐标列表
- /mc coords: 显示你当前的坐标
- /mc saycoords: 在聊天栏中播报你当前的坐标
- /mc goto [ID]: 获取前往某位置的指引
- /mc find [用户名]: 查找当前在线玩家的位置
- /mc tp [ID]: 传送到指定位置 ID
- /mc setc [ID]: 设置指南针指向该位置
- /mc reset: 重置指南针以指向出生点
- /mc publish [ID]: 将私有坐标移动到公共列表。此操作不可撤销。
- /mc rename [ID] [名称]: 重命名某个位置
- /mc perms: 查看你所拥有的权限
配置
Mapcoords 使用 MySQL 或纯文本文件来存储坐标。
如果你打算使用 MySQL 数据库,则需要在首次运行插件后生成的 config.yml 文件中编辑数据库名称、用户和密码。如果你选择使用纯文本文件,则无需进行任何设置。Mapcoords 默认使用纯文本文件。
配置文件内容如下所示:
settings:
checkForUpdates: true
permissions: true
useDatabase: false
folderName: coords
debug: false
database:
url: jdbc:mysql://localhost:3306/DATABASE_NAME
table: coords
username: user
password: pass
如果你正在使用数据库:
- 将 DATABASE 替换为你希望使用的数据库名称。
- 表名默认设置为 "coords",但如果你希望在多个服务器上使用该插件,可以将表名更改为唯一的名称。
- 该插件将创建的表包括:[表名]、[表名]_users 和 [表名]_worlds。因此,如果我的表名为 "coords",则生成的表将为:coords、coords_users 和 coords_worlds。
- 用户名和密码选项用于配置具有相应数据库权限(CREATE, INSERT INTO, DELETE FROM, SELECT)的 MySQL 用户。
权限
- mc.* - 所有权限
- mc.add.* - 所有添加坐标的权限
- mc.list.* - 所有列出坐标的权限
- mc.delete.* - 所有删除坐标的权限
- mc.goto.* - 所有坐标指引的权限
- mc.tp.* - 所有坐标传送的权限
- mc.compass.* - 所有指南针相关的权限
- mc.publish.* - 所有发布坐标的权限
- mc.rename.* - 所有重命名坐标的权限
- mc.add.public - 将坐标添加到公共列表
- mc.add.private - 将坐标添加到私有列表
- mc.list.public - 查看公共列表中的坐标
- mc.list.private - 查看私有列表中的坐标
- mc.list.other - 查看其他玩家私有列表中的坐标
- mc.delete.public - 删除公共列表中的坐标
- mc.delete.private - 删除私有列表中的坐标
- mc.delete.other - 删除其他玩家的私有坐标
- mc.coords - 使用 coords 命令(尽管玩家仍可按 F3 查看坐标,但此命令依然有效)
- mc.saycoords - 使用 saycoords 命令
- mc.goto.public - 获取前往已保存的公开坐标的方向指引
- mc.goto.private - 获取前往已保存的私有坐标的方向指引
- mc.goto.other - 获取前往其他玩家已保存坐标的方向指引
- mc.tp.public - 传送至自己已保存的坐标
- mc.tp.private - 传送至已保存的私有坐标
- mc.tp.other - 传送至其他玩家已保存的坐标
- mc.compass.public - 使指南针指向公开的坐标
- mc.compass.private - 使指南针指向私有的坐标
- mc.compass.other - 使指南针指向其他玩家的坐标
- mc.compass.reset - 将指南针重置为重生点方向
- mc.publish.private - 将私有坐标发布到公开列表
- mc.publish.other - 将其他玩家的坐标发布到公开列表
- mc.rename.public - 重命名公开坐标
- mc.rename.private - 重命名私有坐标
- mc.rename.other - 重命名其他玩家的坐标
截图
更新日志
版本 2.1.0
- 修复了首次保存新世界坐标时出现的“未知世界”错误
- 修复了默认权限中的漏洞,该漏洞允许用户将坐标发布到公开列表
版本 2.0.0
我说过上次更新很大吗?我是认真的,这次才是真正的大更新。大到版本号都升了一级 :O!
新功能
- 增加了对平面文件(Flat Files)的支持!如果你没有在电脑上运行 MySQL 服务器,现在也可以实际使用这个插件了!
- 增加了指南针命令
- 增加了 publish 命令
- 增加了 rename 命令
- 在 goto 命令中添加了飞行速度作为预计到达时间(ETA)
- 帮助菜单增加了页码。此外,即使你没有相关权限,帮助菜单也会显示所有命令。
- 新增 useDatabase 配置项
- 新增 debug 设置
- 稍微修改了配色方案
- 减少了代码冗余和杂乱之处,节省了 5 KB 的空间(如果你在乎的话)。
- 大幅增加权限控制,让你完全掌控玩家可访问的命令。
错误修复
- listo 命令现在可以正常工作了。
- 修复了 goto 命令在目的地对你显示为“未知”的错误。现在,如果 x/z 坐标正确但 y 坐标不同,它会提示你是在上方还是下方。
- 修复了 tp 命令将你传送到地面内并导致窒息伤害的错误。
权限
请查看主页以获取更新的权限列表。
版本 1.1.0
这是个大更新!我该从哪里说起呢……
- 增加了私有和公开列表!
每位玩家现在都可以访问自己的私有坐标!还有一个公开列表,任何拥有适当权限的玩家都可以查看。
- 修复了 plugin.yml 配置文件中的更新错误
- 增加了禁用权限系统的选项
新命令
- goto 命令
告诉你保存位置的距离,以及通过步行或冲刺到达那里所需的时间。
- find 命令
告诉你其他玩家的位置(他们的世界及 x、y、z 坐标)
- tp 命令
传送到你保存的任何位置!
新权限
由于新增了这么多功能,现在有了大量的新权限,让你完全控制玩家被允许执行的操作!
请查看主页的权限部分以了解具体权限。
版本 1.0.3
这是权限更新!它们来了!
- 增加了权限支持
- 自动更新检测!每次启动服务器时,脚本都会检查是否有更新。此外,每当管理员(OP)登录服务器时,他们会收到一条“有可用更新”的消息。
- 将玩家名称转换为用户 ID,并添加了 tablename_users 表。
- 代码现在更加整洁且易于维护。
下一次更新将会非常大。感谢使用我的插件!
版本 1.0.2
- 修复了导致数据库连接超时的数据库错误。
- 修复了阻止数据库连接关闭的错误(提示:我忘了添加关闭数据库连接的代码)。
- 增加了对多世界的支持!不幸的是,由于 Mapcoords 的先前版本将未命名为 "world*" 的世界存储为“未知”,因此拥有自定义世界的服务器必须重新输入这些坐标,以便准确反映它们所在的世界。
- 更改了 /mc list 的编号系统。不再是数字顺序,列表现在显示坐标的内部 ID。这是为了防止意外删除坐标。因此,/mc delete 命令现在需要坐标 ID。
版本 1.0.1
- 增加了对下界(The Nether)和末地(The End)的支持!
- 使 coords 和 saycoords 命令显示你所在的世界。
- List 命令显示坐标所在的世界,并按世界类型对所有存储的坐标进行排序。
版本 1.0.0
Mapcoords
Save coordinates! Teleport to saved locations if you want! Find the coordinates of other players!
Instead of having to write down the coordinates of important locations like a ravine, mineshaft, or portals, I decided to make a plugin that could be conveniently accessed by anyone else on the server. This would come in handy especially when the person who had all the coordindates was offline.
This plugin allows player to save coordinates into each of their own private lists. There is also a public lists that is viewable by everyone on the server.
In addition to coordinate saving, you can teleport to your saved coordinates and find the coordinates of other players on the server.
Those are the main features: There is a lot of functionality in this little plugin.
This is my first plugin that I have ever made for Bukkit so feel free to post a ticket if I am doing anything wrong or how I can make something better. Thanks and I hope you enjoy!
Features
- Supports The Overworld, Nether, and The End!
- Supports servers with multiple worlds
- Flat File & MySQL support
- Private and Public Lists
- Teleport to saved coordinates
- Get directions to saved coordinates
- Find coordinates of other players
- Compass can points towards saved locations
Todo
- Add support for Nether and The End -
- Add support for Multiple Worlds -
- Public and Private Lists -
- Permissions -
- Autoupdate checker -
- Teleport command -
- Directions command -
- Find command -
- Flat File support for users that don't have MySQL installed -
Commands
Here are the list of commands that are available with Mapcoords.
Please note that you can also use /mapcoords in place of /mc.
- /mc [page]: Lists all available commands
- /mc add [name]: Adds current location to private list
- /mc addp [name]: Adds current location to public list
- /mc delete [id]: Delete saved location id from database
- /mc list [page]: Lists coordinates from your private list
- /mc listp [page]: Lists coordinates from public list
- /mc listo [username] [page]: Lists another player's coordinates list
- /mc coords: Displays your current coordinates
- /mc saycoords: Says your current coordinates in chat
- /mc goto [id]: Gives directions to a location
- /mc find [username]: Finds a current player's location
- /mc tp [id]: Teleports you to location id
- /mc setc [id]: Set compass to point to location
- /mc reset: Reset compass to point to spawn
- /mc publish [id]: Move a private coordinate to the public list. This can't be undone.
- /mc rename [id] [name]: Rename a location
- /mc perms: View what permissions you have
Configuration
Mapcoords uses MySQL or Flat Files to store coordinates.
If you want to use a MySQL database, you'll have to edit the config.yml file that is generated after you run the plugin for the first time to setup database name, user, and pass. If you want to use flat files, you don't have to set anything up. Mapcoords uses flat files by default.
The config file will look like this:
settings:
checkForUpdates: true
permissions: true
useDatabase: false
folderName: coords
debug: false
database:
url: jdbc:mysql://localhost:3306/DATABASE_NAME
table: coords
username: user
password: pass
If you are using a database
- Replace DATABASE with the name of the database that you wish to use.
- The table is set to "coords" by default, but if you wish to use this plugin on multiple servers, you can change the table name to something unique.
- The tables that this plugin will create are: [table_name], [table_name]_users, and [table_name]_worlds. So if my table name was "coords", the tables that would be generated are: coords, coords_users, and coords_worlds.
- The username and passwords options are for a MySQL user that has the appropriate privileges for the database (CREATE, INSERT INTO, DELETE FROM, SELECT).
Permissions
- mc.* - All permissions
- mc.add.* - All coordinate adding permissions
- mc.list.* - All coordinate listing permissions
- mc.delete.* - All coordinate deleting permissions
- mc.goto.* - All coordinate direction permissions
- mc.tp.* - All coordinate teleporting permissions
- mc.compass.* - All compass permissions
- mc.publish.* - All coordinate publishing permissions
- mc.rename.* - All coordinate renaming permissions
- mc.add.public - Add coordinates to public list
- mc.add.private - Add coordinates to the private list
- mc.list.public - View coordinates on public list
- mc.list.private - View coordinates on private list
- mc.list.other - View coordinates on other player's private list
- mc.delete.public - Delete coordinates from public list
- mc.delete.private - Delete coordinates from the private list
- mc.delete.other - Delete other players' private coordinates
- mc.coords - Use coords command (Even though they can still push F3, but yeah)
- mc.saycoords - Use saycoords command
- mc.find - Get location of other players
- mc.goto.public - Get directions to public saved coordinates
- mc.goto.private - Get directions to private saved coordinates
- mc.goto.other - Get directions to other players' saved coordinates
- mc.tp.public - Teleport to their own saved coordinates
- mc.tp.private - Teleport to private saved coordinates
- mc.tp.other - Teleport to other players' saved coordinates
- mc.compass.public - Point the compass at public public coordinates
- mc.compass.private - Point the compass at private coordinates
- mc.compass.other - Point the compass at other players coordinates
- mc.compass.reset - Reset the compass to spawn
- mc.publish.private - Publish private coordinates to the public list
- mc.publish.other - Publish other players coordinates to the public list
- mc.rename.public - Rename public coordinates
- mc.rename.private - Rename private coordinates
- mc.rename.other - Rename other players coordinates
Screenshots
Change Log
Version 2.1.0
- Fixes Unknown world bug for 1st new world coordinates save
- Fixed bug in default permissions that allowed a user to publish coords to public list
Version 2.0.0
Did I say the last update was big? I really meant that this one is the big one. So big, it went up an entire version number :O!
New Features
- Added support for Flat Files! If you don't have a MySQL server running on your computer, you can now actually use this plugin!
- Added compass command
- Added publish command
- Added rename command
- Added flying speed as an ETA for the goto command
- Added page numbers for help menu. Also, help menu now displays all commands even if you don't have permissions.
- New useDatabase config setting
- New debug setting
- Modified the color scheme a little
- Reduced coding redundancies and messiness saving 5 kb of space (if you care to know).
- A whole lot more permissions for control of what commands your players have access to.
Bug Fixes
- Command listo actually works now.
- Fixed goto bug saying your destination is "unknown" from you. Now it'll say under/above if you are at the correct x/z but not y.
- Fixed tp bug that teleported you into the ground and caused suffocation damage.
Permissions
Look at the main page for the updated permissions.
Version 1.1.0
This is the BIG update! Where do I start...
- Added private and public lists!
Each player now has access to their own private coordinates! There is also a public lists that anyone can view if they are given the proper permissions.
- Fixed update bug in plugin.yml configuration
- Added option to disable permissions system
New Commands
- goto command
Tells you how far away a saved location is as well as how long it'll take you to get there via walking or sprinting.
- find command
Tells you are player's location (Their world and x, y, and z coordinates)
- tp command
Teleport to any of your saved locations!
New Permissions
Because of all of the new features, there is a plethora of new permissions that gives you complete control over what your players are allowed to do!
Look on permissions section of main page to see permissions.
Version 1.0.3
This is the permissions update! They are here!
- Added permissions support
- Auto update detection! Whenever you start up your server, the script will check for an update. Also, whenever an OP logs on to the server, they will receive an "update available" message.
- Converted player names into player ids and also added a tablename_users table.
- Code is much more clean and maintainable now.
The next update is going to be BIG. Thanks for using my plugin!
Version 1.0.2
- Fixed database bug that made the connection with the database timeout.
- Fixed bug that prevented database connection from closing (hint: I forgot to add code that closed connection to the database).
- Added support for multiple worlds! Unfortunately since previous versions of Mapcoords stored worlds that weren't named "world*" as "Unknown", servers that had custom worlds will have to redo those coordinates so that they accurately reflect which world they can be found in.
- Changed numbering system for /mc list. Instead of a numerical order, the list displays the coordinate internal ids. This is to prevent accidental deletion of coordinates. Thus, the /mc delete command will require the coordinate ids now.
Version 1.0.1
- Added support for The Nether and The End!
- Made the coords and saycoords command say what world you are in.
- List command says what world coordinates are in and also sorts all of the stored coordinates by world type.
Version 1.0.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧