[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

    ReflexorZzZ

    no i they say i need 100 flowers for toggle guard how i give it meself?
     
  3. Offline

    NemDiggers

    Something very freaky occurred last night. Can anyone explain why this happened? It seems an NPC was assigned an entity ID and bukkit thought it was a player:


    Code:
    2011-08-21 22:11:32 [SEVERE] Could not pass event ENTITY_TARGET to Citizens
    java.lang.NullPointerException
        at com.citizens.npcs.NPCManager.setText(NPCManager.java:109)
        at com.citizens.utils.MessageUtils.getText(MessageUtils.java:69)
        at com.citizens.listeners.EntityListen.onEntityTarget(EntityListen.java:101)
        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:92)
        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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        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)
    Here's a YouTube video of it happening: http://www.youtube.com/watch?v=WYtEKT2uxcs

    Has this ever happened to anyone else? Is there a fix to prevent this from happening?
     
  4. Offline

    amunro

    Citizens seems to wipe new citizens I make every server restart. Also, some already existing citizens seem to dissapear however they still say the text when I walk close.
     
  5. Offline

    Lord_Kimpton

    Problem -- please help!! --

    I have set this all up with Iconomy, and that side all workd fine, but then i change his stock to unlimited he only sell's it once, and then when u buy it again in the same window, he gives you another one for free? then i do it again, and i get it for free, so i could end up with a hole invent, full off the item i have from paying once?! how do i stop this?!

    Thanks for your time in advance

    EDIT..:
    Everyting is up to date!
     
  6. Offline

    Smelyhobo

    um, could someone link me to wherever the citizens wiki is? I must be blind but i cant seem to find it in the original post.
     
  7. Offline

    Maverycke

    http://wiki.citizensnpcs.net/ They're in the process of updating it for 1.1
     
  8. Offline

    burst

    You need an economy plugin: "Compatible with Essentials Eco, BOSEcon and iConomy 4 & 5."

    Try '/citizens save' before restarting.

    http://wiki.citizensnpcs.net/index.php?title=Main_Page
     
  9. Offline

    mdragoon

    I am using PermissionsBukkit v1.1 :/ maybe I am doing something wrong? Im using the command /permissions players setperm [username] [the permission node] true. I even double checked to see if it was set to true and it was.
     
  10. Offline

    burst

    The command should be 'player' not 'players'. Not sure if that will make a difference or if you just miss typed it in your post. Personally, I find it easier editing the config.yml file instead of having to remember hundreds of commands :oops:. If you PM me your config.yml file I can take a quick look and see if I can figure out what is wrong.
     
  11. Offline

    Kusaki

    i couldnt make an account on github, so i gotta post it here. github hates me.
    anyways: i created some trader npcs around my server, blah blah blah, set em all up, so on, so forth, and when my players finnally tried to use them, it said for them"you have selected "insert npc name here"" and then when they right click again, nothing, no trader menu, nothing, but when i right click it opens the chest thing like normal. can you fix this?
     
  12. Offline

    burst

    You need to set permissions for your members to be able to use the trader.
     
  13. Offline

    MadcowD

    Code:
    17:09:44 [SEVERE] Error occurred while enabling Citizens v1.0.9 (Is it up to dat
    e?): null
    java.lang.ExceptionInInitializerError
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at java.lang.Class.getEnumConstantsShared(Class.java:2942)
            at java.lang.System$2.getEnumConstantsShared(System.java:1140)
            at java.util.EnumMap.getKeyUniverse(EnumMap.java:666)
            at java.util.EnumMap.<init>(EnumMap.java:112)
            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:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
            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>(Crea
    tureNPCType.java:8)
            ... 20 more
    
    With 1.0.9d
     
  14. Offline

    jesse1212

    with 1.1 dev build...


    17:53:26 [INFO] [Citizens] Report this error ASAP.
    17:53:26 [SEVERE] java.lang.NullPointerException
    17:53:26 [SEVERE] at net.citizensnpcs.SettingsManager.getBoolean(Unknown S
    ource)
    17:53:26 [SEVERE] at net.citizensnpcs.resources.npclib.creatures.CreatureN
    PCType.<init>(Unknown Source)
    17:53:26 [SEVERE] at net.citizensnpcs.resources.npclib.creatures.CreatureN
    PCType.<clinit>(Unknown Source)
    17:53:26 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    17:53:26 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    17:53:26 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    17:53:26 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
    17:53:26 [SEVERE] at java.lang.Class.getEnumConstantsShared(Unknown Source
    )
    17:53:26 [SEVERE] at java.lang.System$2.getEnumConstantsShared(Unknown Sou
    rce)
    17:53:26 [SEVERE] at java.util.EnumMap.getKeyUniverse(Unknown Source)
    17:53:26 [SEVERE] at java.util.EnumMap.<init>(Unknown Source)
    17:53:26 [SEVERE] at net.citizensnpcs.resources.npclib.creatures.CreatureT
    ask.<clinit>(Unknown Source)
    17:53:26 [SEVERE] at net.citizensnpcs.Citizens.onEnable(Unknown Source)
    17:53:26 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:126)
    17:53:26 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:878)
    17:53:26 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:272)
    17:53:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:162)
    17:53:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(Craf
    tServer.java:146)
    17:53:26 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:284)
    17:53:26 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:271)
    17:53:26 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:148)
    17:53:26 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:335)
    17:53:26 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:53:26 [INFO] [Citizens] Report this error ASAP.
    17:53:26 [SEVERE] java.lang.NullPointerException
    17:53:26 [SEVERE] at net.citizensnpcs.SettingsManager.getInt(Unknown Sourc
    e)
    17:53:26 [SEVERE] at net.citizensnpcs.resources.npclib.creatures.CreatureN
    PCType.<init>(Unknown Source)
    17:53:26 [SEVERE] at net.citizensnpcs.resources.npclib.creatures.CreatureN
    PCType.<clinit>(Unknown Source)
    17:53:26 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    17:53:26 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    17:53:26 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    17:53:26 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
    17:53:26 [SEVERE] at java.lang.Class.getEnumConstantsShared(Unknown Source
    )
    17:53:26 [SEVERE] at java.lang.System$2.getEnumConstantsShared(Unknown Sou
    rce)
    17:53:26 [SEVERE] at java.util.EnumMap.getKeyUniverse(Unknown Source)
    17:53:26 [SEVERE] at java.util.EnumMap.<init>(Unknown Source)
    17:53:26 [SEVERE] at net.citizensnpcs.resources.npclib.creatures.CreatureT
    ask.<clinit>(Unknown Source)
    17:53:26 [SEVERE] at net.citizensnpcs.Citizens.onEnable(Unknown Source)
    17:53:26 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:126)
    17:53:27 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:878)
    17:53:27 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:272)
    17:53:27 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:162)
    17:53:27 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(Craf
    tServer.java:146)
    17:53:27 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:284)
    17:53:27 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:271)
    17:53:27 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:148)
    17:53:27 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:335)
    17:53:27 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    17:53:27 [INFO] [Citizens] version [1.1] loaded.



    what am i doing wrong CB-1000 if that helps!
    Edit: CB 1060 doesnt change the problem.
     
  15. Offline

    coffeehedake

    @MadcowD & @jesse1212

    Do you have your citizens.yml handy, I'll take a look for you if you want.

    For those panicking about the move to the new permissions system: I decided to take the plunge, upgraded to PermissionBukkit and the PermissionsBridge plugins. 5 min later I was up and running. For those out there running McMyAdmin, it literally writes the updated and converted YML for you for PermissionsBukkit. (no need to convert them by hand if the nodes are the same) This whole switchover was no big deal. I'm now in the process of upgrading all of the available plugins to PermissionsBukkit versions and double checking that the nodes haven't changed. For those few plugins that don't subscribe to the new model, they're working right now with bridge, and report Permissions 2.7 is installed (it's not, the bridge is just doing it's job)
     
  16. Offline

    defaultsucks

    I keep getting this error in my console every time I left click on any npc.
    Code:
    2011-08-23 03:52:40 [SEVERE] Could not pass event ENTITY_DAMAGE to Essentials
    java.lang.NullPointerException
        at com.earth2me.essentials.EssentialsEntityListener.onEntityDamage(EssentialsEntityListener.java:50)
        at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:656)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:427)
        at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:180)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:566)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:883)
        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:89)
        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)
    
    Can someone help me?
     
  17. Offline

    coffeehedake

    @defaultsucks

    You want to leave single quotes on only two parts in citizens.yml (as stated in the op post):
    Code:
    items:
        item-list-on: true
        basic:
            select-items: '*'
            talk-items: 340,
    and here

    Code:
     defaults:
            enable-following: true
            talk-when-close: false
        debug-mode: false
        healers:
            pay-for-heal: true
            regen-health: true
        colors:
            use-npc-colours: true
            npc-colour: f
        wizards:
            regen-mana: true
            max-mana: 100
            wizard-max-locations: 10
        notify-updates: true
        chat:
            slashes-to-spaces: true
            selection-message: <g>You selected <y><npc><g> (ID <y><npcid><g>).
            default-text: Hello.;How are you today?;Having a nice day?;Good weather today.;Stop hitting me!;I'm bored.;
            creation-message: <g>The NPC <y><npc><g> was born!
            format: '[%name%]: '
    
     
  18. Offline

    defaultsucks

    I did exactly that. That doesn't solve the problem. Here's my citizens.yml file:

    Code:
    range:
        guards:
            default-bouncer-protection-radius: 10
            pathfinding: 16.0
        basic:
            look: 5
    items:
        item-list-on: true
        basic:
            select-items: '*'
            talk-items: 340,
        healers:
            give-health-item: 35
            take-health-item: 0
        wizards:
            mana-regen-item: 348
            interact-item: 288
    ticks:
        guards:
            respawn-delay: 100
        healers:
            health-regen-increment: 12000
        wizards:
            mana-regen-rate: 6000
        saving:
            save-often: true
            use-task: true
            delay: 72000
        pathing:
            max-stationary: -1
            max-pathing: -1
        waypoints:
            right-click-pause: 70
        general:
            delay: 1
    general:
        defaults:
            enable-following: true
            talk-when-close: true
        debug-mode: true
        healers:
            pay-for-heal: true
            regen-health: true
        colors:
            use-npc-colours: true
            npc-colour: f
        wizards:
            regen-mana: true
            max-mana: 100
            wizard-max-locations: 10
        notify-updates: true
        chat:
            slashes-to-spaces: true
            selection-message: <g>You selected <y><npc><g> (ID <y><npcid><g>).
            default-text: Hello.;How are you today?;Having a nice day?;Good weather today.;Stop hitting me!;I'm bored.;
            creation-message: <g>The NPC <y><npc><g> was born!
            format: '[&9NPC&f] %name%: '
        selection:
            quick-select: false
        use-bukkit-permissions: true
     
  19. Offline

    coffeehedake

    @defaultsucks
    Are you on the dev build or 1.0.9d?

    aPunch suggested earlier removing the color coding in your NPC names with 1.0.9d, I see you have them in there. Try taking them out, if you're on the non-dev build and see if that helps. Otherwise config looks good.

    format: '[&9NPC&f] %name%: '
     
  20. Offline

    defaultsucks

    I'm on 1.0.9d. I just tried removing the color code in the format, the problem still occurs. I've made that section look exactly the way it does when you posted it. I also tried getting the 1.1 dev build with no npcs at all, creating one and punching him. I tried removing citizens and installing the plugin again so it creates fresh config files. Nothing helped.
     
  21. Offline

    coffeehedake

    @defaultsucks

    Hmm. Well in that case, the only other thing I can think of was a problem that was posted waaaay back (+10 pages) with a conflict involving essentials. I tried searching for it but I can't seem to dig it up. Let me get back to my laptop and see if I can find it.

    I notice the event handler is referencing essentials and not citizens, therein may lie the key.
     
  22. Offline

    defaultsucks

    I suspect so as well. I've upgraded my essentials recently from 2.5.3 to 2.5.7 but as far as I can remember these errors didn't start happening right away. I was on bukkit 1k build at the time and I switched to 1060 for that reason alone to see if that would help.
     
  23. Offline

    defaultsucks

    I'm sorry, I got it working. Just tried downgrading to essentials 2.5.6 and it doesn't seem to have that problem anymore. Thanks a bunch for your help and sorry if I wasted your time ;)
     
  24. Offline

    coffeehedake

    Hey no problem, speaking of, you may have solved the same problem for other folks using essentials. Glad it worked out.
     
  25. Offline

    kingcole436

  26. Offline

    coffeehedake

  27. Offline

    kingcole436

    Alright, Thanks! Can't wait for 1.1, SpoutCitizens is adding a GUI Once they release 1.1 :D
     
  28. Offline

    mbsuperstar1

    There will be a GUI for creating NPC's possibly even before then.
    I'll take in feedback and develop the rest of the GUI's from there. :)

    Also you can find all commands in game with the help commands. Starting from /citizens help-
    iirc
     
  29. Offline

    Daxiongmao87

    I appreciate you trying to steer the community into the "right direction," but why not let the server admins decide what is best for their own servers and keep functionality for permissions? There are many other plugins that still use Just permissions, and removing that functionality puts us in the position to have to either do without citizens, or do without multiple other plugins? I unfortunately will not be upgrading to v1.1 because of this.
     
    jesse1212 likes this.
  30. Offline

    R4Z0R49

    Very nice Job guys cant wait till 1.1 is out.
     
  31. Offline

    Massimo1993

Share This Page