tdiant / bukkitdevelopmentnote Goto Github PK
View Code? Open in Web Editor NEWA guide to develop Minecraft Server plugins based on Bukkit.
Home Page: https://bdn.tdiant.net
A guide to develop Minecraft Server plugins based on Bukkit.
Home Page: https://bdn.tdiant.net
其他版本我没看过, 在 1.12.2 下, 如果玩家不在线, 应该是 OfflinePlayer 的, 而 getPlayer() 返回的是一个 Player 对象, 通过查看它的代码就可以发现它是先调用 getPlayerExact() 返回的是否为 null, 如果为 null 则进行另一步操作, 这步操作则是从在线玩家中遍历匹配玩家名字, 所以
假如服务器内有abc和ab这两个玩家, 如果你想获取abc的Player对象, 万一abc不在线, 你Bukkit.getPlayer("abc");返回的Player对象, 很有可能是ab的, 而不是abc的.
这一段话, 我觉得是不对的, 他最后返回的结果都是 Player, 如果玩家离线后, 他肯定是不在的, 再看代码可以发现他是使用 "playerList.a(id);" 这一段来获取的, 而这一段代码到最后的获取点则是一个 Map 集合, 它的键是以UUID形式的, 而他的值则是 NMS 里的 EntityPlayer, 既然是实体, 那下线了就是获取不到的啦。
1-3 第一段 每个区块都是X和Y为16*16的范围
应改为 每个区块都是X和Z为16*16的范围
在CHATCOLOR后紧跟了第一节最开始的内容
We have put four fucking buttons on the README page and.....it doesn't be friendly to mobile users, and it is stupid on its implement.(Pardon my poor html design....)
If you are Web Designer and wanna contribute our repo, help, pls!
RT.
自1.17版本以后Populate有了较大变动
请问有无意向编写一份 CONTRIBUTING.md
来引导路人为贵项目添砖加瓦?
章节大纲也可以让路人知道为完成的章节中将要写什么,规范统一的文字风格也许可以让读者理解更加容易。
可否编写文章:如何给插件创建API以供其他插件调用。我对于这一块不太理解,或者有好的文章可以推荐给我吗
出去一趟回来发现域名跳转不是原来的内容了 有没有本地版的能传一分release之类的?
4.2.2. BukkitTask runTaskTimerAsynchronously(Plugin plugin, java.lang.Runnable task, long delay, long period)
这是调度重复任务的方法, 所得的任务是同步的. 通常我们使用异步任务来处理非Minecraft的逻辑,比如数据库的CRUD(增删改查)操作.
在异步任务中, 需要特别注意线程安全问题, 比如您不能随意调用 Bukkit API. 这个问题会稍后予以详细的解释说明.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.