mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-22 18:35:14 +01:00
Updated Basic tutorial (markdown)
parent
ef84193b41
commit
f1fb327868
@ -1,17 +1,12 @@
|
|||||||
# Basic tutorial
|
This basic tutorial will explain you how to check that HolographicDisplays is enabled (if stricly required) and how to create your first hologram.
|
||||||
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.
|
|
||||||
|
|
||||||
|
### 1) Always use the latest version
|
||||||
## 1) 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.
|
||||||
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.
|
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
##2) Check if HolographicDisplays is enabled
|
##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:**
|
**Add a soft-dependency to your plugin.yml:**
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user