Updated Basic tutorial (markdown)

filoghost 2014-07-26 10:44:52 -07:00
parent bf679c9b79
commit 1dac880895

@ -44,8 +44,8 @@ public void onEnable() {
The API is a class called HolographicDisplaysAPI, all the methods are static. With the method `createHologram(...)` you can create a hologram with some lines. The method returns the hologram just created.
Example:
```java
// Suppose that "player" is a Player object obtained before (e.g. in a command), and "instance" is the plugin's instance.
Hologram hologram = HolographicDisplaysAPI.createHologram(instance, player.getEyeLocation(), "Test hologram");
// Suppose that "player" is a Player object obtained before (e.g. in a command), and "plugin" is plugin's instance.
Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, player.getEyeLocation(), "Test hologram");
```
####Static API methods