欢迎来到Minecraft插件百科!
对百科编辑一脸懵逼?
帮助:快速入门
带您快速熟悉百科编辑!
因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
查看“Bukkit/插件开发教程”的源代码
←
Bukkit/插件开发教程
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
、
巡查者
您可以查看和复制此页面的源代码。
=== Create a Project === Before starting you'll need to set up your workspace and files in Eclipse. Start Eclipse, then create a new Project by selecting ''File -> New -> Project:'' [[Image:Newproject.png]] Now, open up the ''Maven'' folder, and select ''Maven Project''. Click next, and then tick the ''Create a simple project'' box on the next page, and then click ''Next'': If you can't see ''Maven'' folder, then you need to go download the m2eclipse plugin from [http://eclipse.org/m2e/download/ here] [[Image:Newproject2.png]] Now, you need to name your group as follows: * If you have a domain name, the package would be the domain name in reverse. ** Ex: i-am-a-bukkit-developer.com your package would be com.i_am_a_bukkit_developer [http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html source] ** Avoid using a domain you do not own. * No domain? Here are some common conventions *# Create an account on a source control site such as GitHub or sourceforge *#* For GitHub, follow the instructions [http://pages.github.com/ here] and you will have a sub-domain, so your package would be io.github.<username><br /> *# Use your email. Ex: <username>@gmail.com would be com.gmail.<username><br /> *# This is the least preferred method. Simply use any unique group naming, again, use this as your last resort. There are several things that your group must '''not''' begin with and those are: * org.bukkit * net.bukkit * com.bukkit * net.minecraft Once you have the base group name, you will want to finish it off with the plugin name. Lets use the GitHub Pages example for this. If you are creating a plugin called ''TestPlugin'' your full group name would be ''io.github.<username>'', and your artifact name would be ''TestPlugin''. For the version, simply stick with the default for now. It can be changed later. Finish the wizard: [[Image:Newproject3.png]] If this is your first time using Eclipse, close the Welcome tab by clicking the "X" next to the Welcome tab on the tab bar. Now, you should have a window that looks like this: [[Image:Eclipsemain.png]] Click the arrow to the left of your artifact name, and let's get started!
本页使用的模板:
模板:Hide
(
查看源代码
)
模板:Info
(
查看源代码
)
模板:Main
(
查看源代码
)
模板:待修复
(
查看源代码
)
模板:待修正
(
查看源代码
)
模板:待完善
(
查看源代码
)(受保护)
模板:待更新
(
查看源代码
)
返回
Bukkit/插件开发教程
。
导航菜单
个人工具
登录
命名空间
页面
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
编辑相关
百科公告
编辑帮助
互助客栈
贡献分数
测试沙盒
发布条目
插件分类
管理
安全
聊天
编程
经济
修正
娱乐
综合
信息
机械
角色
传送
网页
整地
创世
付费
其它
工具
链入页面
相关更改
特殊页面
页面信息
相关网站
MCMOD百科
Minecraft中文百科
Minecraft纪念论坛
Minecraft百度贴吧
红石中继站
虚无世界Wiki