Updated Basic tutorial (markdown)

filoghost 2014-07-26 07:32:51 -07:00
parent ef84193b41
commit f1fb327868

@ -1,17 +1,12 @@
# Basic tutorial
This tutorial explains how to use the HolographicDisplays API to dynamically create Holograms, as you would do with normal entities. You don't have to use any NMS code, and it's very simple.
This basic tutorial will explain you how to check that HolographicDisplays is enabled (if stricly required) and how to create your first hologram.
## 1) Use the latest version
First of all, always use the latest version of HolographicDisplays and ask your plugin's users to do the same. The API is constantly being expanded, and some methods could be missing in previous versions.
When using the API, compile your plugin with the latest version, and tell your users to use the **latest version** of HolographicDisplays, because there is no API in some older versions. Some features have also been added during the development, so pay attention to the version you use while coding.
### 1) Always use the latest version
First of all, use the latest version of HolographicDisplays while coding and ask your plugin's users to do the same. The API is constantly being expanded, and some methods could be missing in previous versions.
***
##2) Check if HolographicDisplays is enabled
To use the API, you have to check if the plugin is installed and enabled. You can use the following code in your onEnable() to check that the plugin is installed and is **enabled**.
To use the API, you have to check if the plugin is installed and enabled. You can use the following code in your plugin.yml and in your onEnable() to check that the plugin is installed and is **enabled**.
**Add a soft-dependency to your plugin.yml:**
```