skRayFall

skRayFall

297k Downloads

[SOLVED]About Holograms

yusufkandemir opened this issue · 5 comments

commented

I want to do a system when triggered by touching an hologram. Like

on hologram touch:
    if name of the event-string is "test":
        *my system goes here*

But i can't even run this correctly

on hologram click:
    broadcast "test"

In first one i think maybe skRayFall doesn't support that. If you add support for that I will be very happy. But I don't understand second one I tried on hologram click too but it doesn't do anything.Maybe I understanded it wrong. Please help me to solve my problem skRayFall is good but i can't understand my problem.

commented

Can you please post your startup log so I can see if everything is being enabled properly.

However in the meantime here is some clarification on the syntax elements:

[on] hologram (touch|click)

Will be triggered when ever a player right clicks a line on a interactive hologram.

[on] hologram pickup

Will be triggered when a player “picks up” an item from an interactive hologram. This can only be done with items in holograms, not text.

commented

I can't understand "interactive hologram". I created holograms but is there an extra thing to make it interactive?

commented
[11:25:21] [Server thread/INFO]: [skRayFall] Enabling skRayFall v1.7.3
[11:25:21] [Server thread/INFO]: [skRayFall] Yay! You are running skRayFall 1.7.3!
[11:25:21] [Server thread/INFO]: [skRayFall] Nathan and Lewis <3 you.
[11:25:21] [Server thread/INFO]: [skRayFall] Cooking Bacon...
[11:25:21] [Server thread/INFO]: [skRayFall] Citizens not found! Sorry you cant make friends, but don't worry we will still be your friend <3
[11:25:21] [Server thread/INFO]: [skRayFall] Got bacon for the EffectLib partical ninjas!
[11:25:21] [Server thread/INFO]: [skRayFall] No Votifier Found! *Checks oven for finished bacon*
[11:25:21] [Server thread/INFO]: [skRayFall] Bacon holograms found
[11:25:21] [Server thread/INFO]: [skRayFall] Enabling general 1.8 bacon!
[11:25:21] [Server thread/INFO]: [skRayFall] Getting the extra special 1.8.4 - 1.8.8 bacon!
[11:25:22] [Server thread/INFO]: [�[0;36;22mskRayFall�[m] �[0;31;1mAn update for skRayFall is available!�[m
[11:25:22] [Server thread/INFO]: [skRayFall] Bacon is ready!
[11:25:22] [Server thread/INFO]: [SkQuery] Enabling SkQuery v3.21.4
[11:25:22] [Server thread/INFO]: [skQuery] Snooping enabled from com.w00tmast3r.skquery.SkQuery
[11:25:22] [Server thread/INFO]: [skQuery] Locating classes from SkQuery...
[11:25:22] [Server thread/INFO]: [skQuery] Finished snooping of SkQuery with 163 classes.
[11:25:22] [Server thread/INFO]: [skQuery] Beginning to process a total of 163 from SkQuery
[11:25:22] [Server thread/INFO]: [skQuery] Out of 163 classes, 156 classes were loaded from SkQuery
[11:25:22] [Server thread/INFO]: [RandomSK] Enabling RandomSK v2.0
[11:25:22] [Server thread/INFO]: [RandomSK] Custom Trade GUI's aren't supported in this version, So they are disabled.
[11:25:22] [Server thread/WARN]: Server permissions file permissions.yml is not valid YAML.
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadCustomPermissions(CraftServer.java:774) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:328) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot-1.8.8.jar:git-Spigot-db6de12-07c3001]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_72]

It starts with skRayFall and finishes with Done!
Before I tried CraftBukkit and i tried older versions of skRayFall but it doesn't work.
I think I canuse touchscreen holograms instead of skRayFall. I can create custom commands and add it to hologram with touchscreen holograms. But anyways thank for answer.

commented

I think the issue is that you are not using interactive holograms. In order to register holograms with these listeners you must use this syntax when creating them.

For global:

create interactive holo object %string% with id %string% at %location%

For client side:

create interactive client side holo object %string% with id %string% at %location% to %player%

Also if you choose to edit the holograms you will need to specify that they are interactive with:

edit holo object %string% to %string%  [and set interactivity to %boolean%]

Or editing it line by line with:

edit holo object %string% [with] line [number] %number% to %string% [and set interactivity to %boolean%]

Hopefully this helps!

commented

Thanks for help!