官术网_书友最值得收藏!

Chapter 3. Creating Your First Bukkit Plugin

The Bukkit plugins that we will program will be written in the Java programming language. I am assuming that you already have basic knowledge of Java. If this is not the case or you find yourself not understanding parts of this book, then I suggest you visit codisimus.com/learnjava, which has an introduction to the Java language and information on various concepts that you will need to know in order to create good plugins throughout the course of this book.

We will use an IDE to write the plugins. An IDE is an Integrated Development Environment and it is the software that will aid us in writing the Java code. It has many tools and features that make programming much easier. For example, it automatically detects errors in our code, it often tells us how to fix these errors or even does it for us, and it provides us with many shortcuts, such as one keystroke to compile our code and build a jar, so that the code can be executed. In this chapter we will download and install an IDE, and prepare it for creating a new Bukkit plugin. We will cover the following topics and by the end of this chapter we will have written our first plugin which will be ready to test on our server.

  • Installing an IDE
  • Creating a new project
  • Adding Bukkit as a library
  • The plugin.yml file
  • The plugin's main class
  • Making and calling new methods
  • Expanding your code
主站蜘蛛池模板: 正宁县| 湘潭县| 抚远县| 福州市| 周口市| 鱼台县| 广丰县| 阿拉善左旗| 灵山县| 上饶市| 镇安县| 陆良县| 宣武区| 会理县| 崇明县| 泾川县| 上蔡县| 荣昌县| 卢湾区| 双桥区| 芜湖市| 阿瓦提县| 前郭尔| 西乌珠穆沁旗| 来宾市| 曲阳县| 唐河县| 满洲里市| 新安县| 济源市| 蓬溪县| 汉中市| 金塔县| 呈贡县| 宜兰县| 克拉玛依市| 历史| 时尚| 托里县| 韶关市| 娄底市|