CitizensDev / Citizens2

Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
https://citizensnpcs.co
Open Software License 3.0
583 stars 313 forks source link

/npc skin -t problem #1651

Closed gilles353 closed 5 years ago

gilles353 commented 5 years ago

Hello, I do not feel like posting the config since it is the default one. My problem is that when i use /skin -t (args) it says that a skin name is required. This i also get when i just have more then 2 args. /skin x y So i guess the feature is broken? Because i'd like to use my own skin files for my npc's

mcmonkey4eva commented 5 years ago

Uh... See skin information on the wiki page: https://wiki.citizensnpcs.co/Skins

gilles353 commented 5 years ago

I've read the wiki. What i'm saying is that the command does not work.

mcmonkey4eva commented 5 years ago

It sounds more like you aren't entering the command correctly. If you believe my assessment is incorrect (ie, you are entering it correctly): Please post exactly what you've tried entering. Also post the output of /version citizens.

gilles353 commented 5 years ago

Version 2.0.24-SNAPSHOT (build 1591) /npc skin -t [signature] I think this is correct. Even if i do /npc skin -t [uuid] [signature] it does not work. On the wiki it says /npc skin -t [uuid] [data] [signature]. I have no clue what data means because of the poor documentation. I tried to put the npc name, .... and everything i could think of in there and still it does not work.

gilles353 commented 5 years ago

And i probably have an outdated build because i have not bought the spigot version. I just donwloaded the free version on bukkit.

mergu commented 5 years ago

There is no premium version of citizens. If you read the page, the very first paragraph explains this and tells you that you can download the exact same builds for free. Here's the link: http://ci.citizensnpcs.co/job/Citizens2/lastSuccessfulBuild

Are you actually literally putting [uuid], [data], or [signature] in your command? Those mean "fill me in with the proper stuff". In this case, the stuff to fill those out with are the cryptographically signed skin texture & signature returned by a request to Mojang's skin servers. If you're not literally putting those in, please paste the exact commands you are trying.

If you read the wiki, it says If you don't know exactly what that is, just don't use it. It's a developer tool. I think this applies pretty well here.

If you want to do this on your own, you'll either need to equip the skin to yourself and use Mojang's api to get the texture data OR use a public api that does this for you (https://mineskin.org/) OR use a Denizen script I have created for this exact thing (https://one.denizenscript.com/denizen/repo/entry/154)

gilles353 commented 5 years ago

Please don't take me for some noob. Ofcourse i know that [uuid], [data], or [signature] mean "fill me in with proper stuff) I did not want to put stuff like nuvFbTRLbUqpYU1+3vHhScgtvPJj5FfqIhD/X5+zbhQtR9rOh8Sj5StZB5oj69wrP8oIhNHPI0JorwPx4O7fquS+sxcXjy42cTn3/zJiaCmIFIpB4x5whFCUrQl0CfDWtXv6ULqVHWwYI71fBD9OgdeDGHGlkyI4m4jwuVIc/irnMhSRTtzt5vWYASI8uaGdMtrcrjKSolzRfC4a91KEm76Xe/v8FQ1XVsJuyJnzoIyWd2/avZY4GEngdgiUFVy/1m3BVvBGGuFENFAp0F9F6SARibFpMRFtys4QYDaqXgXUL6sfn6WNrXuB0/qujYhxfIG43RdvesjR0Q4mAqOl/OW0nzw7/lQdlDmcPW+jaCwh1ZEkXtK9aqpO1+iVP3F3tPxO4ZTlOha6LWZL/fkqH7JabPfY3eA5CrYBiJUUtnV0j/7RgUjQ/sjaaqhOyAGQKopCkUZIXVtx+qq00PzNHFfYWTTh5kqnC5HYCDjkn6tvdlqBmh2o00LNwns3F0S+UoSoqbJZj0Yio4pU9+czuOXUIEHBD+WxZQH1RrXUKAdch3YVkOULuO+aFlYVJcqTHxSOXFP5dWRCcoOmvDyz1CD6VJi+wN3RZi+0my0v+yddSwJydAhwL3OQGyH692K8SnP5o4dAoapCTKHo/3vx+aOOZKwYuwNKinX2u9jFh8A= in the post. And i know what the tool does, and how the API works. I am trying to tell you that whatever i fill in, correct or not, it just gives me the same stupid error message.

mergu commented 5 years ago

Again, please post the full command you are using.

You can surround code between backticks here on github to separate it using a monospace font if you wish.

gilles353 commented 5 years ago

Nevermind. I figured it out. It seemed that the plugin magic's NPC function created some errors in the version of spigot i was using, that kept me from using some /npc commands. I solved it by getting a new spigot from the buildtools.

mergu commented 5 years ago

Awesome, sounds good. If all is fine feel free to close the issue.

gilles353 commented 5 years ago

Ok. Still, thanks for trying to help. :p