Holograms - Easily create floating texts!


#242

That's strange. Normally the legacy method of registering custom data should be working. (@gabizou ?)
Updating this plugin to api 6 means that api 5 is unsupported. Maintaining two versions of this plugin is also a hassle. I thought the the old method continues to work for api 6.


#243

It is supposed to work, however it may be failing for other reasons. I'll take a look.


#244

Possibly related: https://github.com/SpongePowered/SpongeCommon/issues/1364


#245

Not related, two separate issues. One issue (This one) is that the CauseTracker hasn't been told of a PluginContainer for registration yet, and the other is a missed method for a "name". I thought I fixed the other issue a while back, but I'm guessing I forgot to push the commit.


#246

Thanks for answering!

Which issue? CauseTracker or 'name'?
What should I do?


#247

Just update to SpongeForge 2384 when it's finished building and published. I fixed both bugs.

If you want, you can view the commits: SpongeCommon and SpongeForge.


#248

Thanks! :+1:

@Nipo @FiveEYZ ^


#249

awesome! thx for the fix :slight_smile:


#250

updated to spongeforge-1.11.2-2315-6.1.0-BETA-2384
still getting:

and error when trying to create a hologram


#251

Well, I've updated to spongeforge 2384, Holograms still doesn't work. Here is the error:

[12:18:24] [Server thread/ERROR] [Sponge]: Error occurred while executing command 'holograms create &e枪械购买' for source EntityPlayerMP['Nipo'/104, l='world', x=12.37, y=71.00, z=158.65]: A DataManipulatorBuilder is not registered for the manipulator class: de.randombyte.holograms.data.HologramData
java.lang.IllegalStateException: A DataManipulatorBuilder is not registered for the manipulator class: de.randombyte.holograms.data.HologramData
        at com.google.common.base.Preconditions.checkState(Preconditions.java:176) ~[minecraft_server.1.11.2.jar:?]
        at net.minecraft.entity.Entity.getOrCreate(Entity.java:3388) ~[sn.class:?]
        at de.randombyte.holograms.HologramsServiceImpl.createHologram(HologramsServiceImpl.kt:62) ~[HologramsServiceImpl.class:?]
        at de.randombyte.holograms.commands.SpawnTextHologramCommand.executedByPlayer(SpawnTextHologramCommand.kt:20) ~[SpawnTextHologramCommand.class:?]
        at de.randombyte.holograms.shaded.kosp.PlayerExecutedCommand.execute(PlayerExecutedCommand.kt:19) ~[PlayerExecutedCommand.class:?]
        at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:182) ~[ChildCommandElementExecutor.class:1.11.2-2315-6.1.0-BETA-2384]
        at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:359) ~[CommandSpec.class:1.11.2-2315-6.1.0-BETA-2384]
        at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:336) ~[SimpleDispatcher.class:1.11.2-2315-6.1.0-BETA-2384]
        at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:296) ~[SpongeCommandManager.class:1.11.2-2315-6.1.0-BETA-2384]
        at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) ~[bd.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:904) ~[mi.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:883) ~[mi.class:?]
        at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) ~[ip.class:?]
        at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) ~[ip.class:?]
        at org.spongepowered.common.network.PacketUtil.lambda$onProcessPacket$0(PacketUtil.java:153) ~[PacketUtil.class:1.11.2-2315-6.1.0-BETA-2384]
        at org.spongepowered.common.event.tracking.CauseTracker.switchToPhase(CauseTracker.java:161) [CauseTracker.class:1.11.2-2315-6.1.0-BETA-2384]
        at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:152) [PacketUtil.class:1.11.2-2315-6.1.0-BETA-2384]
        at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjk000(SourceFile:539) [fo$1.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fo$1.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_91]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_91]
        at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
        at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:256) [SpongeImplHooks.class:1.11.2-2315-6.1.0-BETA-2384]
        at net.minecraft.server.MinecraftServer.redirect$onRun$zhj000(MinecraftServer.java:3953) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:679) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:384) [lh.class:?]
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:624) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) [MinecraftServer.class:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]

#252

Then again @gabizou has to be summed.


#253

A fix is in the works.


#254

When Holograms are created, are they owned by a player and protected from other players so they won’t delete or move them?


#255

Holograms are generally an Admin tool, so you’d only give hologram permissions to your admins. So the answer to your question is almost definitely no.


#256

If that’s the case, I’d like to suggest user version of the Administrator tool.


#257

@yepidoodles is right.

I won’t implement an user mode. A re-design of the whole plugin is on my long long todo list. I have too many comissions going on that are prioritized over this plugin.


#258

Hi there! Works fine but how do i make a new line in a hologram?


#259

/holograms createmultiline


#260

Multiline holograms are just several normal holograms but placed vertically spaced. Simply create a normal hologram in the correct location and/or move it there.


#261

Holograms aren’t created. Here’s the error I’m getting.

26.12 10:49:48 [Server] Server thread/INFO [nucleus]: KingdomScythe ran the command: /holograms create Test
26.12 10:49:48 [Server] Server thread/ERROR [Sponge]: Error occurred while executing command 'holograms create Test' for source EntityPlayerMP['KingdomScythe'/3500, l='world', x=19905.68, y=65.49, z=-28316.60]: 'HologramsService' not available!
26.12 10:49:48 [Server] INFO java.lang.RuntimeException: 'HologramsService' not available!
26.12 10:49:48 [Server] INFO at de.randombyte.holograms.shaded.kosp.UtilsKt$getServiceOrFail$1.get(Utils.kt:13) ~[UtilsKt$getServiceOrFail$1.class:?]
26.12 10:49:48 [Server] INFO at de.randombyte.holograms.shaded.kosp.UtilsKt$getServiceOrFail$1.get(Utils.kt) ~[UtilsKt$getServiceOrFail$1.class:?]
26.12 10:49:48 [Server] INFO at java.util.Optional.orElseThrow(Optional.java:290) ~[?:1.8.0_151]
26.12 10:49:48 [Server] INFO at de.randombyte.holograms.shaded.kosp.UtilsKt.getServiceOrFail(Utils.kt:13) ~[UtilsKt.class:?]
26.12 10:49:48 [Server] INFO at de.randombyte.holograms.shaded.kosp.UtilsKt.getServiceOrFail$default(Utils.kt:12) ~[UtilsKt.class:?]
26.12 10:49:48 [Server] INFO at de.randombyte.holograms.commands.SpawnTextHologramCommand.executedByPlayer(SpawnTextHologramCommand.kt:19) ~[SpawnTextHologramCommand.class:?]
26.12 10:49:48 [Server] INFO at de.randombyte.holograms.shaded.kosp.PlayerExecutedCommand.execute(PlayerExecutedCommand.kt:19) ~[PlayerExecutedCommand.class:?]
26.12 10:49:48 [Server] INFO at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:182) ~[ChildCommandElementExecutor.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:359) ~[CommandSpec.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:336) ~[SimpleDispatcher.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:291) ~[SpongeCommandManager.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) ~[bd.class:?]
26.12 10:49:48 [Server] INFO at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:913) ~[me.class:?]
26.12 10:49:48 [Server] INFO at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:892) ~[me.class:?]
26.12 10:49:48 [Server] INFO at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) ~[im.class:?]
26.12 10:49:48 [Server] INFO at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) ~[im.class:?]
26.12 10:49:48 [Server] INFO at org.spongepowered.common.network.PacketUtil.lambda$onProcessPacket$0(PacketUtil.java:157) ~[PacketUtil.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at org.spongepowered.common.event.tracking.CauseTracker.switchToPhase(CauseTracker.java:163) [CauseTracker.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:156) [PacketUtil.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjj000(SourceFile:539) [fl$1.class:?]
26.12 10:49:48 [Server] INFO at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?]
26.12 10:49:48 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_151]
26.12 10:49:48 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_151]
26.12 10:49:48 [Server] INFO at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?]
26.12 10:49:48 [Server] INFO at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:239) [SpongeImplHooks.class:1.10.2-2477-5.2.0-BETA-2731]
26.12 10:49:48 [Server] INFO at net.minecraft.server.MinecraftServer.redirect$onRun$zhp000(MinecraftServer.java:3948) [MinecraftServer.class:?]
26.12 10:49:48 [Server] INFO at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]