BoxxWorldMap 会创建一张世界地图(由 Google Maps 提供支持),并根据玩家在现实世界中的位置,在地图上放置玩家头像的图片。例如,如果你住在美国纽约,地图就会把你标记在纽约的位置!
功能
- 真实世界地图
- 托管在你的服务器上——本地或外部均可!
- 可选的玩家列表
- 基于 GeoIP 的位置映射
- 支持显示当前在线的玩家,或者所有在线及离线玩家。
- 自动刷新地图——实时数据!
安装
适用于 BukkitHTTPD(你还没有 Web 服务器):
- 下载 BukkitHTTPD,并将其放入你的 plugins 文件夹中。
- 启动你的服务器,以便生成 BukkitHTTPD 文件。然后再次停止服务器。
- 按照你的喜好配置 BukkitHTTPD。
- 转发端口 8107(或者你设置 BukkitHTTPD 所使用的其他端口)。
- 下载 BoxxWorldMap,并将 BoxxWorldMap.jar 放入你的 plugins 文件夹中。
- 将 “worldmap” 目录放入 BukkitHTTPD 文件夹中。
- 启动你的服务器。BoxxWorldMap 的配置文件将会生成,并且会自动下载并安装 GeoLiteCity.dat。
- 编辑你的配置文件并开始使用吧!
适用于 JSONAPI(你已有 Web 服务器):
- 下载 JSONAPI,并将其放入你的 plugins 文件夹中(包括 jar 文件和文件夹)。
- 按照你的喜好配置 JSONAPI。
- 转发端口 20059(或者你设置 JSONAPI 所使用的其他端口)。此端口可能还需要在你的 Web 服务器上进行转发。
- 下载 BoxxWorldMap,并将 BoxxWorldMap.jar 放入你的 plugins 文件夹中。
- 编辑位于 BoxxWorldMap 压缩包内的 “worldmap” 文件夹中的 config.php 文件。
- 将 “worldmap” 文件夹上传到你的 Web 服务器。
- 启动你的服务器。BoxxWorldMap 的配置文件将会生成,并且会自动下载并安装 GeoLiteCity.dat。
- 编辑你的配置文件并开始使用吧!
使用方法
适用于 BukkitHTTPD:
- 访问
- 查看地图。:D
- (请注意,端口号(即冒号后的数字)可能会根据你的 BukkitHTTPD 配置而改变。
适用于JSONAPI:
- 访问
- 查看地图。
- 请注意,URL 会根据你将 worldmap 文件夹放置的位置而改变。
配置
//除非你知道自己在做什么,否则不应更改此部分。
downloads:
//是否应自动为你下载数据库?
autoDownload: true
//应从何处获取?
databaseURL: http://boxxians.com/downloads/GeoLiteCity.dat.gz
//此部分用于 BoxxWorldMap 的设置。
settings:
//我们是应该显示离线玩家,还是仅显示在线玩家?
//false:仅显示在线玩家
//true:显示所有曾进入过你服务器的玩家
showOfflinePlayers: false
//如果显示离线玩家,最多显示多少个?
//(这是为了防止卡顿。最大值 = 1000)
offlinePlayerLimit: 250
//是否显示玩家列表侧边栏?
showSidebar: true
要配置 BukkitHTTPD,请参阅 BukkitDev 页面 此处。
要配置 JSONAPI,请参阅 Bukkit 论坛帖子 此处。
常见问题解答 (FAQs)
什么是 BukkitHTTPD?
BukkitHTTPD 基本上是在你的 Bukkit 服务器上托管一个网站,可以通过网络浏览器访问!这允许你为服务器创建网站,而无需向 Web/VPS 提供商租用空间。
BoxxWorldMap 使用 BukkitHTTPD 让地图托管在你自己的服务器上,这与 RaddaMap 不同。
所以不要害怕 BukkitHTTPD(就像我之前那样)。它非常有用且高效。
什么是 JSONAPI?
JSONAPI 允许你的 Web 服务器和 Minecraft 服务器之间通过 JSON 进行通信。它很棒!
我看不到我的地图!
- 确保你的 BukkitHTTPD 和/或 JSONAPI 设置配置正确。
- 确保你输入的地图 URL 正确无误
- 确保如果你更改了 BukkitHTTPD 或 JSONAPI 的端口,你在 URL 中也进行了相应的更改。默认端口分别为 8107 或 20059。
- 检查你的服务器是否在线。
- 检查你的 BoxxWorldMap 配置
- 查看 Bukkit 控制台或日志中是否有任何错误。
- 如果以上方法都无效,请寻求帮助。
我必须使用 BukkitHTTPD 或 JSONAPI 吗?
是的。
你抄袭了 RaddaMap 吗?
概念上也许吧。
但代码并没有被复制。除了 BukkitHTTPD 和 GeoIP 库之外,这都是我完全从零开始编写的。既然他的服务器(网站所在处)已经下线,且源代码未公开,我又怎么能抄袭呢?
你能添加某个功能吗?
当然!随时提出请求。我会查看并可能添加该功能。:D
下载
BoxxWorldMap 1.4 for BukkitHTTPD(不需要 Web 服务器)
BoxxWorldMap 1.4 for JSONAPI(需要 Web 服务器)
BukkitHTTPD
JSONAPI
致谢
更新日志
版本 1.4
- Web 界面大改版!
- 为玩家列表添加了滚动条
- 更改了玩家列表的大小和位置
- 为玩家列表添加了标题
- 实现了自动地图刷新 - 实时数据!
- 将玩家列表字体更改为 Andy。
- 添加了点击跳转功能。点击玩家列表中的用户,地图将缩放至其所在位置!
- 在玩家列表中添加了玩家计数
- 在地图和玩家列表的头像上添加了帽子
- 为玩家列表添加了边框
- 修复了 plugin.yml 的错误
- 修复了 onDisable() 的错误
- 更新说明:
- 用最新版本的 BoxxWorldMap.jar 替换旧文件。
- 删除你的 /worldmap/(Web)文件夹,其中包括 JSON 用户的 config.php。
- 将最新的 /worldmap/ 文件夹放置到原来旧文件夹的位置(BukkitHTTPD 用户放在 BukkitHTTPD 文件夹中,JSONAPI 用户放在你的 Web 服务器中)
- 对于 JSONAPI 用户:配置新的 config.php。
版本 1.3
- 添加了支持使用 Alec Gorge 的 JSONAPI 在外部 Web 服务器上运行 BoxxWorldMap 的支持。
版本 1.2
- 修复了在本地网络上托管时的一个 Bug。如果你在服务器本身上连接服务器(即家庭服务器),你会出现在非洲附近的海域。(总比崩溃好吧?)
版本 1.1
- 通过配置文件使玩家列表侧边栏变为可选。
- 需要更新的文件: BoxxWorldMap.jar
1.0 版本
BoxxWorldMap creates a world map (powered by Google maps) and places pictures of your players' avatars' head on the map, according to where they are in the REAL world. So if you live in Newyork, United States, it will put you on the map where Newyork is!
Features
- Real world map
- Hosted on your own server - Local or external!
- Optional player list
- GeoIP location mapping
- Ability to show players that are currently online OR all players that are online or offline.
- Automatic map refreshing - Live data!
Installation
For BukkitHTTPD (you don't have a webserver):
- Download BukkitHTTPD, and place it in your plugins folder.
- Run your server so that the BukkitHTTPD files generate. Stop your server again.
- Configure BukkitHTTPD how you like it.
- Forward port 8107 (or whatever port you have BukkitHTTPD on)
- Download BoxxWorldMap and place BoxxWorldMap.jar in your plugins folder.
- Place the "worldmap" directory in the BukkitHTTPD folder.
- Start your server. The BoxxWorldMap config files will generate, and GeoLiteCity.dat will download+install.
- Edit your configuration and enjoy!
For JSONAPI (you have a webserver):
- Download JSONAPI, and place it in your plugins folder (both the jar and folder)
- Configure JSONAPI how you like it.
- Forward port 20059 (or whatever port you have JSONAPI on). this port also may need to be forwarded on your webserver.
- Download BoxxWorldMap and place BoxxWorldMap.jar in your plugins folder.
- Edit config.php which is found in the "worldmap" folder that came in the BoxxWorldMap zip download.
- Upload the "worldmap" folder to your webserver.
- Start your server. The BoxxWorldMap config files will generate, and GeoLiteCity.dat will download+install.
- Edit your configuration and enjoy!
Usage
For BukkitHTTPD:
- Navigate to
- Observe the map. :D
- (please note that the port (the :numbers) may change depending on your BukkitHTTPD configuration.
ForJSONAPI:
- Navigate to
- Observe the map.
- Please note that the URL will change depending on where you put the worldmap folder.
Configuration
//This section shouldn't be changed unless you know what you are doing.
downloads:
//Should be automatically download the database for you?
autoDownload: true
//Where should be get it from?
databaseURL: http://boxxians.com/downloads/GeoLiteCity.dat.gz
//This section is for BoxxWorldMap settings.
settings:
//Should we display offline players, or just online?
//false: only display players that are online
//true: show all players that have entered your server
showOfflinePlayers: false
//If you display offline players, what's the max number to display?
//(this is to prevent lag.) Max = 1000
offlinePlayerLimit: 250
//Should we display the playerlist sidebar?
showSidebar: true
To configure BukkitHTTPD, see the BukkitDev page here.
To configure JSONAPI, so the Bukkit forum post here.
FAQs
What is BukkitHTTPD?
BukkitHTTPD basically creates a website hosted on your Bukkit server that is accessible from web browsers! This allows you to create websites for your server without renting from a web/VPS provider.
BoxxWorldMap uses BukkitHTTPD to let the map be hosted on your own server, unlike RaddaMap.
So don't be scared of BukkitHTTPD (like I was). It's very useful and efficient.
What is JSONAPI?
JSONAPI allows for communication between your webserver and Minecraft server, using JSON. It's awesome!
I can't see my map!
- Make sure your BukkitHTTPD and/or JSONAPI settings are configured correctly.
- Make sure you typed in the map URL correctly
- Make sure that if you change your BukkitHTTPD or JSONAPI port, you change it in the URL. The default is 8107 or 20059, respectively.
- Check that your server is online.
- Check your BoxxWorldMap configurations
- Look for any errors in the Bukkit console or logs.
- If all else fails, ask for help.
Do I have to use BukkitHTTPD or JSONAPI?
Yes.
Did you copy RaddaMap?
The concept? Perhaps.
The code however was NOT copied. With the exception of BukkitHTTPD and the GeoIP library, this was 100% made from scratch by me. How could I copy it if his server (where the website was) is down, and his source isn't given?
Can you add a feature?
Sure! Go ahead and request it. I'll take a look and possibly add it. :D
Downloads
BoxxWorldMap 1.4 for BukkitHTTPD (no webserver required)
BoxxWorldMap 1.4 for JSONAPI (webserver required)
BukkitHTTPD
JSONAPI
Credits
Changelog
Version 1.4
- Web overhaul!
- Added a scrollbar to the player list
- Changed size and location of the player list
- Added a title to the player list
- Implemented automatic map refreshing - live data!
- Changed playerlist font to Andy.
- Added click-goto feature. Click on a user in the playerlist and it will zoom to them!
- Added a player count to the playerlist
- Added hats to the avatars on the map and playerlist
- Added border to the playerlist
- Fixed plugin.yml derp
- Fixed onDisable() derp
- UPDATE INSTRUCTIONS:
- Replace BoxxWorldMap.jar with latest.
- Delete your /worldmap/ (web) folder, this includes config.php for JSON users.
- Place the latest /worldmap/ folder where the old one was (BukkitHTTPD folder for BukkitHTTPD users, your web server for JSONAPI users)
- For JSONAPI users: Configure the new config.php.
Version 1.3
- Added support for running BoxxWorldMap on an external webserver using JSONAPI by Alec Gorge.
Version 1.2
- Fixed a bug with hosting on local networks. If you connect to the server on the server (i.e. home server) then you will appear in the ocean near Africa. (better than breaking, right?)
Version 1.1
- Made the playerlist sidebar optional via config.
- Files to update: BoxxWorldMap.jar
Version 1.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧