Possible to set player's skin?

Discussion in 'Plugin Development' started by hellgunman, Mar 16, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    hellgunman

    Hi everyone!

    I'm new to this game and its mods, bud i'd like to have something fo free users.

    I have a private server for me and some friends and we're free users.
    I'd like to have the same function as the premium user: custom skins.
    Is it possible to make a plugin able to do that?
    With for example "player.png" in a folder and set it to player?

    Also i'm new to java, i know a little c++ but that's all. Do you have good tuto?

    Thanks (and sorry for my english, i'm french)
     
  2. Offline

    Edward Hand

    No. Skins are client-side only. You can change them yourself on minecraft.net but that is all.
     
  3. Offline

    hellgunman

    Ah.. I thought if the skin is uploaded to minecraft.net, the skin is on a server so i don't understand why i couldn't do this on my server...
     
  4. Offline

    Edward Hand

    The client knows that it must look on the servers of minecraft.net to get skins. The server tells the client there is a player called 'Notch' for example, and the client looks for that player's skin on minecraft.net
    There's no way to make the client look somewhere new without making client modifications.
     
  5. Offline

    hellgunman

    Ok thanks. But is there an other way to set individual player skins?
    I wouldn't buy the game still in beta..
     
  6. Offline

    dwi

    You could sniff a HTTP request for player skin, then start up your own webserver and redirect amazonaws.com to your web server with those skins on it in proper directory structure. Well you could, i might work or not..

    btw you guys are _not_ free users. You are pirate users and having your own skin is one of benefits having paid few bucks for this game...

    EDIT: If you buy this game now, you buy full game... When Minecraft will be finished, it will costs more $
     
  7. Offline

    hellgunman

    Well, i agree with you, but my friends don't want to buy the game that's why i simply ask if there's an other way.

    Ok thank you both, solved!
     
  8. Offline

    ShAd3

    Buying the game no thanks consider that for me its like 4 times as much for the fact that PLN is shit and considering that the game is made in java, and sa for the skins go there is a way but it considers a bit more than one plug in its calle Mineshafter you and all your friends have to have the mineshafter client to see each others skins if you are not premium. hope it helps if any problems with set up u can send me a mesage
     
  9. Offline

    Afforess

    Yes - BukkitContrib v0.0.4 coming soon! (tm) will have the ability for plugins to set custom skins and cloaks, per player.
     
  10. Offline

    Jayjay110

    ™ is what I think you looking for! :p, Btw were is bukkitcontrib located?
     
  11. Offline

    Afforess

    http://forums.bukkit.org/threads/dev-bukkitcontrib-alpha-0-0-3-700-819.18192/

    It is going to be a client/server mod setup. The client mod is optional, and does not alter SP or MP gameplay, but exposes lots of new API to the server.

    So far, the client mod does this (e.g already coded & working & tested):
    • Set custom cloak
    • Set custom skin
    • Detect keyboard press events
    • Fixes Bubble GUI when using setMaximumAir and setRemainingAir
    Planned before the 0.0.4 release:
    • Ability to set custom names overhead animals AND players
    The BukkitContrib server side mod comes with a sophisticated API that allows tons of control over exactly how things are viewed by players.

    Example:
    Afforess logs onto server
    Player A sees Afforess skin as White Wizard
    Player B sees Afforess skin as Frodo Baggins

    Don't let that deceive you though, you can change the skin mid-game as many times as you want, and it will update fine.

    So as you see, you have extreme granulity. Skins can also be set for NPC's. The skin's are just a URL to a hosted skin png file that can be anywhere. I tested using a dropbox link and it worked fine.
     
  12. Offline

    Jayjay110

    Ohh man I almost jizzed... this is just great :D Man, I cant wait for this to be at 0.0.4 :p, What does it mean by client mod tho? do you have to actually install the client mod for it to work at this stage?
     
  13. Offline

    Afforess

    Players who get the extra functionality will have to install an optional client mod - yes. There is no way around this, unfortuantely. The client mod will be as small as possible, and not conflict with any other SP mods, nor alter gameplay nor harm servers that are not using BukkitContrib.
     
    Jayjay110 likes this.
  14. The first time the server starts "skinselector" this is working properly, but the second time when you close and re-will receive the following message:
    Code:
    2011-12-28 21:53:55 [INFO] [SkinSelector] (By Rahazan) v0.2.2 unloaded!
    2011-12-28 21:53:55 [INFO] [Turnstile] Closing all open Turnstiles...
    2011-12-28 21:53:55 [INFO] [ChestShop] version 3.3 shutting down!
    2011-12-28 21:53:55 [INFO] [Jobs v2.6.0] has been disabled succesfully.
    2011-12-28 21:53:55 [INFO] [MobArena] disabled.
    2011-12-28 21:53:56 [INFO] DungeonBuilder - Setting dungeon root folder to: plugins/dungeons
    2011-12-28 21:53:56 [INFO] MLog clients using java 1.4+ standard logging.
    2011-12-28 21:53:56 [INFO] [Permissions] (Yeti) was initialized.
    2011-12-28 21:53:56 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    2011-12-28 21:53:56 [SEVERE] java.lang.reflect.InvocationTargetException
    2011-12-28 21:53:56 [SEVERE] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2011-12-28 21:53:56 [SEVERE] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2011-12-28 21:53:56 [SEVERE] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2011-12-28 21:53:56 [SEVERE] 	at java.lang.reflect.Method.invoke(Unknown Source)
    2011-12-28 21:53:56 [SEVERE] 	at org.getspout.spout.packet.CustomPacket.addClassMapping(CustomPacket.java:146)
    2011-12-28 21:53:56 [SEVERE] 	at org.getspout.spout.Spout.onEnable(Spout.java:248)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:435)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.Bukkit.reload(Bukkit.java:187)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    2011-12-28 21:53:56 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:374)
    2011-12-28 21:53:56 [SEVERE] 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:564)
    2011-12-28 21:53:56 [SEVERE] 	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:541)
    2011-12-28 21:53:56 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    2011-12-28 21:53:56 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    2011-12-28 21:53:56 [SEVERE] Caused by: java.lang.IllegalArgumentException: Duplicate packet id:195
    2011-12-28 21:53:56 [SEVERE] 	at net.minecraft.server.Packet.a(Packet.java:25)
    2011-12-28 21:53:56 [SEVERE] 	... 21 more
    2011-12-28 21:53:57 [INFO] [Spout] Spout 644 has been initialized
    
     
  15. @cloud_strife_91 the problem might be you're too outdated.
    Still, this thread is months old, last post: Jun 5, 2011, so consider making a new one (not until you update your server and plugins!) instead of bumping old ones.

    Post in the plugin's thread if you have a problem with it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  16. Offline

    Zandie013

    I've found a way to: play spoutcraft(clientside) without premium and also to fix the main problem..Skinselector
    if you are reading this here are the links:
    http://iplaymc.com/download/iPlayMC.jar It is a spoutcraft server launcher, it IS cracked
    http://forums.bukkit.org/threads/51829 skinselector, great plugin

    also the skinselector problem is: when you tried to add new skins and capes you didnt put them in right, send a copy of the .yml

    **edit: your plugins are clashing with each other + you need spoutcraft server side

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  17. Offline

    snickers10m

    Just thought to clarify (7 months later because I happened to be looking at this) that the server sends the skins to the player. Hence why players in offline mode can still see the other players' skins. Also, the old Pail plugin could show you a players skin, so where did it get it from? hmm minecraft.net!
     
Thread Status:
Not open for further replies.

Share This Page