[CitizenSpout Inactive]

Discussion in 'Inactive/Unsupported Plugins' started by mbsuperstar1, Aug 20, 2011.

  1. Offline

    mbsuperstar1

    CitizenSpout - Give your NPCs skins:

    http://dev.bukkit.org/server-mods/citizenspout/
    Please use the bukkit dev page instead, to make the conversion easier once this section is removed.
    Features:
    • You can add a players skin to an NPC by typing /sc skin add (player-name)
    • GUI for creating NPC's will be made available soon.
    • You can add a custom cloak or skin to an NPC by typing -/sc (cloak or skin) add (url)
    • You can now also hide an NPC's nameplate!
    How to use:

    Select an NPC and type /sc skin add (player-name) to give it that skin.
    Select an NPC and type /sc skin add (URL) to give it that cloak.
    If skins or cloaks are not re-added for any reason, you can type /sc update-
    to re-add them.

    Download:
    Download the latest CitizenSpout below!
    http://github.com/downloads/mbsuperstar1/CitizenSpout/CitizenSpout.jar

    Changelog:
    • Version 0.1.8 - Stripped features to get a quick working release.
    • Version 0.1.7 - Quick fix during exams... broke badly.
    • Version 0.1.6 - Permission fix for cloaks and changed the default for name-plates!
    • Version 0.1.5 - PermissionsBukkit support, hidable nameplates and configuration!
    • Version 0.1.4 - Reverted command to /sc to fix conflicts.
    • Version 0.1.3 - Added capes and more cleanup on the code.
    • Version 0.1.2 - Changed commands around and fixed skin loading. Also added custom URL skins.
    • Version 0.1.1 - The skin update command is now automated, but can be used if it fails to work.
    • Version 0.1 - Giving NPCs a change of clothes. (skin)
    Credit: - Citizens Developers - Bukkit Developers - Spout Developers
     
    nazhrenn, aPunch, jlu and 4 others like this.
  2. Offline

    sintri

    Just curious, would this give other players different skins while they're on the server as well?
     
  3. Offline

    mbsuperstar1

    I will test now.

    @sintri
    I think it is fixed.
    Apologies.
     
  4. Offline

    Mordaith

    Is this an add on to Citizens? Or a replacement?
     
  5. Offline

    mbsuperstar1

    This is an add-on.
     
    MrTechnocrack likes this.
  6. Offline

    Mordaith

    Interesting, looks good! Is there an option to have it point to a custom URL? Like if I had a drop box where I stored some skins, could I have it load from there?
     
  7. Offline

    mbsuperstar1

    That is on my TO-DO List! I just forgot to add it!
    Thanks for your support, all your credit goes to aPunch, fullwall and thempc :)
     
  8. Offline

    Mordaith

    This is what my players have been begging for since we put in Citizens. Works like a charm so far. I can't wait for custom skins. I'll be watching this thread with great hope :3 Thank you very very very much!
     
    mbsuperstar1 likes this.
  9. Offline

    mbsuperstar1

    Glad I could help; Also credit to the bukkit and spout folks for making this possible :p
     
  10. Offline

    kahlilnc

    AMG Thank you for making this!!
     
    mbsuperstar1 likes this.
  11. Offline

    mbsuperstar1

    Glad you find it useful :D
     
  12. Hmm, I've looked into the source (was curious how you managed that known issue with player - npc name mixup) and I saw you're hardcoding skin's url... you *really* shouldn't do that.

    Anyway, you're also wasting time calling useless stuff, for example, you could use <NPC>.setGlobalSkin() when NPC spawn and that's it, any player that connects after that will see the NPC with the custom skin, I'm using that, so just hook NPC spawn and set them individually.
     
  13. Offline

    mbsuperstar1

    Firstly; the source code is out of date, and I am using the global function.
    Secondly, I'm adding a second skin function to allow users to use their own URL.
    Thirdly, there was no mix-up it's just that npc.getPlayer(); can oddly be confused with the player by Spout. And some weird stuff happens if there are multiple NPC's with the same name and different skins.
    Fourthly, aPunch and fullwall put me under the impression the spawn event was only called on creation..
    Thanks for the heads up! :) ;P

    EDIT: Also, where did you get my source code? ;( De-compiler makes me sad.

    P.S. However you got it, you just fixed every single one of my current issues, thanks a million!
    Will add lots more features with the extra free time ;)
     
  14. Offline

    fullwall

    Good work, can't wait for reveal of other features ;).
     
    mbsuperstar1 likes this.
  15. Offline

    King Rat

    Ooh, very nice! Been wondering when someone would make this. I also stumbled across this site earlier, if it's helpful to anyone :D
     
  16. Offline

    undeadmach1ne

    can you skin 'evil' npcs?
     
  17. Offline

    BioRage

    undeadmach1ne likes this.
  18. Offline

    kahlilnc

    Hm as soon as I do the command I get an interval error. But the achievement comes up and his skin shows then when I go far enough not to see him it disappears. I do /skin update I get interval error again.

    Error:
    Code:
    2011-08-21 10:47:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'skin' in plugin CitizenSpout v1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/citizenspout/PropertyPool
        at com.citizenspout.SkinCommands.onCommand(SkinCommands.java:59)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 13 more
     
  19. Offline

    JargonTheRed

    Skins are not saving for me. The CitizensSpout folder and the corresponding files were not generated on startup.

    Is the Citizens.Skins file a plain text file?
     
  20. Offline

    undeadmach1ne

  21. Offline

    Zentek

    This is exactly what I've been waiting for! Will test it later when my friends come online.
    Many thanks!
     
    mbsuperstar1 likes this.
  22. Offline

    Mordaith

    Skins don't seem to survive reboot for me :3 I'm sure it is a known thingy. Still works great. My player base gave a huge cheer.
     
  23. Offline

    mbsuperstar1

    They should be re-added on NPC as they spawn, if this fails to happen you can type /skin update :)
     
  24. Offline

    Mordaith

    Hmm most odd. It isn't seeming to be with the working. I've gotta dodge out of the door and go to an event, however I'll check my logs when I get home.

    I lied! I have time now

    I got these errors in my logs.
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  25. Offline

    mbsuperstar1

    My bad, quick fix: Create a folder called CitizenSpout in your plugin folder.
    That "should" fix.

    I am trying to push a release but unfinished capes and GUI code make it messy..
     
  26. Offline

    Julianoz1224

    THANK YOU SO MUCH FOR MAKING THIS :D
    I have been wanting to give my NPC's skins ever since I got Citizens,
    Great plugin and keep up the good work :)
     
    mbsuperstar1 likes this.
  27. Offline

    Lotos

    I just would like to change npc skins by url, not by copy that from players.
     
  28. Offline

    mbsuperstar1

    This is planned with custom URL's in a future update.
     
    jlu likes this.
  29. Offline

    Lotos

    PlayerEditor plugin going to make it in next relase. So then this plugin will get usless.
     
  30. Offline

    mbsuperstar1

    This plugin aims to do more than just skins, it will include a creation GUI features and more. (1.1 incoming)
     

Share This Page