Countdown - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Countdown (/thread-1314.html) |
RE: Countdown - daniel0916 - 01-13-2014 (01-13-2014, 04:47 AM)STR_Warrior Wrote: You mean custom names for items? No MCServer doesn't support that yet. Okey. It is hard to implement it? I would be very nice. How can i get the items name? Player:GetInventory():GetEquippedItem():??? And is it possible to create a custom inventory and add there all players with skulls. And when i click on the skull you will be teleported to the player. How can i do this? But it isn't very good when the skull can't have the name of the player.. RE: Countdown - NiLSPACE - 01-13-2014 Quote:Okey. It is hard to implement it? I would be very nice.I've looked around a little bit, but I have no idea how to send it to the client. I can't find anything about a custom item name in the protocol. Quote:How can i get the items name?You get the item the player has equipped using cPlayer:GetEquippedItem() Quote:And is it possible to create a custom inventory....You could possible use the cLuaWindow RE: Countdown - daniel0916 - 01-13-2014 @STR_Warrior Okey. Why :: and now GetInventory()? And return this the name? Have you a example? Okey, i will try it. RE: Countdown - NiLSPACE - 01-13-2014 (01-13-2014, 05:42 AM)daniel0916 Wrote: Why :: and now GetInventory()?Sorry that was for C++. I've changed it. Quote:And return this the name? Have you a example?No it doesn't. If you want the name you can use: local ItemName = ItemToString(Player:GetEquippedItem()) RE: Countdown - daniel0916 - 01-13-2014 (01-13-2014, 05:45 AM)STR_Warrior Wrote:local ItemName = ItemToString(Player:GetEquippedItem()) Return this "Fireball" or "E_ITEM_FIREBALL"? RE: Countdown - NiLSPACE - 01-13-2014 it returns "Fireball" RE: Countdown - daniel0916 - 01-13-2014 I asked a friend for the custom item name. He is often working with protocols. He send me this link: http://wiki.vg/Slot_Data Do the link help you? RE: Countdown - NiLSPACE - 01-13-2014 I've seen that page many times but sadly I can't find anything about a custom name ;( RE: Countdown - xoft - 01-13-2014 http://minecraft.gamepedia.com/Player.dat#Display_Properties Probably. RE: Countdown - NiLSPACE - 01-14-2014 I think I have it. I'm testing now. Lets hope it doesn't crash the server or the client |