From cc6f28e46f1e959ea6308a3c8a541051161c9eb0 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 26 Jul 2014 14:08:35 -0700 Subject: [PATCH] Updated Basic tutorial (markdown) --- Basic-tutorial.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Basic-tutorial.md b/Basic-tutorial.md index 26f1433..e91be07 100644 --- a/Basic-tutorial.md +++ b/Basic-tutorial.md @@ -55,8 +55,9 @@ 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 "plugin" is your plugin's instance. -Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, player.getEyeLocation(), "Test hologram"); +// Suppose that "where" is a Location object obtained before (e.g. in a command), and "plugin" is your plugin's instance. +Location where = ... +Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, where, "Test hologram"); ``` Done! With just one line of code you created a hologram. @@ -67,6 +68,9 @@ If you want to add more lines when creating the hologram, add them at the end of ```java HolographicDisplaysAPI.createHologram(plugin, player.getEyeLocation(), "Test hologram", "Line 2", "Line 3", "Line 4"); ``` + +  + ### Static API methods `Hologram HolographicDisplaysAPI.createHologram(Plugin owner, Location location, String... lines)`