[FUN] Citizens v2.0.11 - Human NPCs for Bukkit [1.7.2]

Discussion in 'Archived: Plugin Releases' started by Citizens, Mar 5, 2011.

  1. Offline

    Citizens

    Citizens - Human NPCs for Bukkit
    Version: 2.0.11
    Authors: @fullwall and @aPunch
    Source: Citizens on GitHub

    Citizens is now on BukkitDev

    This thread will no longer be updated. We encourage you to use our page on BukkitDev. You can find information, links to our wiki and website, and the download page there.

    Showing Your Support

    We work hard to maintain Citizens. We've been working on Citizens2 around the clock on new and exciting features. A little motivation never hurts, so feel free to donate to us - fullwall and aPunch.

    If you can't donate, we appreciate a "hello" every now and then. Stop by the IRC channel #citizens on irc.esper.net to discuss Citizens and give thanks!
     
  2. Offline

    Mordaith

    Yep. In fact when I changed back to the old Jar File, everything worked with out a hitch and the old NPC's were back.
     
  3. Offline

    Nibelton

    conflict with Backpack
    Code:
    2011-07-27 08:26:32 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.IllegalArgumentException: Invalid inventory size; expected 36
        at org.bukkit.craftbukkit.inventory.CraftInventory.setContents(CraftInventory.java:46)
        at com.citizens.npctypes.traders.TraderTask.clonePlayerInventory(TraderTask.java:374)
        at com.citizens.npctypes.traders.TraderTask.<init>(TraderTask.java:55)
        at com.citizens.npctypes.traders.Trader.onRightClick(Trader.java:167)
        at com.citizens.resources.npclib.HumanNPC.callRightClick(HumanNPC.java:163)
        at com.citizens.listeners.EntityListen.onEntityTarget(EntityListen.java:124)
        at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:684)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at com.citizens.listeners.PlayerListen.onPlayerInteractEntity(PlayerListen.java:103)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:845)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    possible to fix,or i have to choose between those 2 ?
     
  4. Offline

    aPunch

    I'm curious, who uses the built-in item economy? I'm currently planning out an economy code-refactoring, and am contemplating the option of removing built-in economy. It just seems that many servers use one of the economy plugins. Is anyone absolutely appalled by the idea of removing built-in item economy support?
     
    morizuki likes this.
  5. Offline

    Mordaith

    @aPunch My server used the built in economy up until we started using Iconomy. However, I see the use in an 'out of the box' program.
     
  6. Offline

    tonyt387

    i love this plugin but i was wondering how you change the type of the npc
     
  7. Offline

    messy

    We use the built-in economy for everything, if you would absolutely have to remove it for refactoring.. ok

    ..but I always liked the real representation of money in your inventory and the ease of access for the players. This is lost, when you're using an economy mod and the chat window only.

    EDIT: maybe the internal economy as a module? i've read that you plan to be doing modules for the npctypes.. this would fit there too..
     
  8. Offline

    Scyl

    Error went launching server with plugin version 1.0.9d, craftbukkit 1000
    log:
    Code:
    [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to date?): null
    java.lang.ExceptionInInitializerError
        at com.citizens.Citizens.registerTypes(Citizens.java:272)
        at com.citizens.Citizens.onEnable(Citizens.java:87)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
        at org.bukkit.util.config.ConfigurationNode.recursiveBuilder(ConfigurationNode.java:43)
        at org.bukkit.util.config.ConfigurationNode.getAll(ConfigurationNode.java:28)
        at com.citizens.properties.CachedYAMLHandler.load(CachedYAMLHandler.java:37)
        at com.citizens.properties.CachedYAMLHandler.<init>(CachedYAMLHandler.java:29)
        at com.citizens.properties.PropertyManager.<clinit>(PropertyManager.java:15)
        ... 12 more
     
  9. Offline

    RaginMc

    If your talking about trader / blacksmith or the others you get select the npc and type /toggle trader replace trader with other types
     
  10. Offline

    RestInPeace

    i´m working on gettin a trader for 2 hours now. i dont have iConomy and i want the trader to sell items for items. But i dont get it? what do i have to type in?
     
  11. Have you removed single quotes in npc-profiles.yml aswell ? I did that aswell and that error popped, so if you have a backup of that file, restore it.
     
  12. Offline

    RaginMc

    Try adding,.. lets say a peace of pork to the inv of the trader then type /trader buy 320:1 266:1
    320 is cook porks ID and 266 is golds id,.. to sell you just type /trader sell 320:1 266:2
    witch is saying your selling one pork for two gold bars,.. you can replace gold with w/e you wanna use to buy the pork with,.. if this dose not work try doing the command with out the :.. and just using a space /trader buy 320 1 266 1
     
  13. Offline

    Schlumpf

    Hello,
    is it available to support a Mysql Database? That all Configs/npc-profiles will be logged to a mysql Database?
    It's always nice to control a Server from a website and with mysql you can write simpel php Scripts to control it and edit the Server over a website;)
     
  14. Offline

    fullwall

    @ferretlegs - OK, after having checked over dreamland's source it looks like the problem is traceable. Unfortunately, it seems that DreamWorld does a few silly things when changing worlds (using non-standard load chunk methods). I'll trace what exactly causes the problem now.
     
  15. Offline

    Laguna

    Hello I have a question you will see. I can not find, what is the command to see the money you have saved the NPC. How is it?.

    Greeting ;)!
     
  16. Offline

    quickclay

    New error after just installing the 1.09d jar file. CB 1000
    Show Spoiler

    2011-07-27 07:05:15 [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to date?): null
    java.lang.ExceptionInInitializerError
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at java.lang.Class.getEnumConstantsShared(Unknown Source)
    at java.lang.System$2.getEnumConstantsShared(Unknown Source)
    at java.util.EnumMap.getKeyUniverse(Unknown Source)
    at java.util.EnumMap.<init>(Unknown Source)
    at com.citizens.CreatureTask.<clinit>(CreatureTask.java:22)
    at com.citizens.Citizens.onEnable(Citizens.java:109)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
    at com.citizens.SettingsManager$Constant.toInt(SettingsManager.java:159)
    at com.citizens.resources.npclib.creatures.CreatureNPCType.<clinit>(CreatureNPCType.java:8)
    ... 20 more
    2011-07-27 07:05:15 [SEVERE] Could not pass event PLUGIN_ENABLE to Citizens
    java.lang.ExceptionInInitializerError
    at com.citizens.listeners.ServerListen.onPluginEnable(ServerListen.java:37)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:548)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at com.citizens.SettingsManager$Constant.toBoolean(SettingsManager.java:150)
    at com.citizens.economy.EconomyHandler.<clinit>(EconomyHandler.java:11)
    ... 13 more
     
  17. Offline

    gebuswon

    Hey fixed my previous problem.. Finally! but now I have another problem.... ARGH!
    i cant get any of the other player on my world to access the traders. Could someone help me?
     
  18. Offline

    Chekkaa

    I always just used iConomy, but I'm sure others like to use the built-in one.

    I think the separation of this plugin into several modules (for the NPC types) would be great, and like messy said, the built-in economy might work as a module on its own.
     
  19. Offline

    ZNickel

    Hey can you make it so traders can speak because I set 2 npcs up that would talk when i created them and but they stopped talking when i restarted my server?
     
  20. Offline

    Kalindist

    I use the built-in item economy because it seems that it doesn't make the npcs disappear when the server stops or restarts.
    P.S. My first post! :cool:

    EDIT: Nvm, i thought it was because iconomy was on, but they still disappear. But they saved before i installed some plugins :confused: (SAME .JAR)
     
  21. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks
     
  22. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks
     
  23. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks
     
  24. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks.
     
  25. Offline

    RaginMc

    /npc create NpcName..

    a ok video i used to learn
    http://www.youtube.com/watch?v=fVnI_Vy2CI4&feature=related

    just do a search on Youtube.com for "citizens minecraft"
     
  26. Offline

    RaginMc

    select the npc then type /trader money
     
  27. Offline

    RaginMc

    i like it,.. how ever i have all ready set my server up around iconomy,.. but an idea i had was to let all my p;ugs that uses items based money use items for money... say red/yellow flowers you keep them in your backpak or chest,.. and i'd have a nother type of store that only sold flowers,.. call it a bank.. the iconomy money would be what you get if you sold flowers and when you needed money to buy from the stores you could go to the" bank" and "buy" flowers to buy stuff from the store...

    just a thought of working with both
     
  28. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks.

    also, i've managed to create a random npc using the comands on the wiki, trouble is, i've set him in the wrong place lol, is there a way to destroy them so as to start again?
     
  29. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks.

    also, i've managed to create a random npc using the comands on the wiki, trouble is, i've set him in the wrong place lol, is there a way to destroy them so as to start again?
     
  30. Offline

    StormKitten_1

    dumb question but how do you make citizens?
    I've installed the zip but 0 npcs have been created, so im wondering how to create my own... can someone post a video or something to show me how to do it, and also what it looks like in game plz?

    (i've never done coding before so if it involves coding could someone throw me a couple of random ones plz) thanks.

    also, i've managed to create a random npc using the comands on the wiki, trouble is, i've set him in the wrong place lol, is there a way to destroy them so as to start again?
     
  31. Offline

    Laguna

    Thank you very much!!! *0*
     

Share This Page