[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

    redworld2

    I have the newest version of citizens and bukkit version 798. I also have put the folder and jar in the plugins folder but every time I run the server I get this:
    [SEVERE] Could not load 'plugins/Citizens.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: Bad version number in .class file

    Can someone please helped me I checked the wiki no help...
     
  3. Offline

    d00ba

    I've come across three serious bugs with the Trader so far.

    1) The /trader list command doesn't list all items the trader is buying. You can see in the image below that I've already added dirt, but this does not show in the list.

    [​IMG]


    2) the /trader buy remove command doesn't operate properly.

    In order to remove an item from my traders Buy list, I have to type /trader SELL remove <item> otherwise it just says "The trader is not currently buying that item."

    [​IMG]

    3) And I've saved the worst bug for last..

    I set my trader to Buy 10 DIRT for 20 Pence (0.20) which appears to work fine initially. Once you've sold a load of dirt, the trader starts to pay more money for less blocks. So after selling 70 Blocks of dirt, the trader now says "Selling 20 Pence for 4 DIRT" instead of the specified 10 DIRT for 20 PENCE.

    [​IMG]

    Is there any way around these bugs?

    Regards,

    d00ba
     
  4. Offline

    revdogma

    you have to go to the plugins folder then go to the citizens folder and edit the citizens economy file .. make sure the two "use econoplugins" are set to true. that should fix your problem.
     
  5. Offline

    Grimmy777

    I love this plugin but it seems to cause crazy amounts of lag in the area that I am using it. Is anyone else having this problem? no where else in my world do we have lag issues...
     
  6. Offline

    gmore70

    Still having the same problem as reported by others on this forum. I have updated to the latest Recommend Build 803 and its still happening

    A reminder of the issue as post by me and others, when you give your npc a helmet it works, but then when you give the npc a chestplate, the helmet disappears, same with boots, leggings and/or any item held in hand.

    Here is what my citizen.item file looks like:

    #Minecraft Properties File
    #Sun May 22 21:27:28 CDT 2011
    25=0,0,0,0,0,
    23=0,0,0,0,0,
    19=0,0,0,0,0,
    21=0,0,0,0,0,
    18=0,0,0,0,0,
    9=0,0,0,0,0,
    20=0,0,0,0,0,
    7=0,0,0,0,0,
    15=0,0,0,0,0,
    5=0,0,0,0,0,
    13=0,0,0,0,0,
    12=0,0,0,0,0,
    11=0,0,0,0,0,
    2=0,0,0,0,0,
    0=0,0,0,0,0,

    All '0's though one is holding a sword. Seems to me the file is not getting updated or something.

    Tried updating my jar and my set up files - all of them - nothing works.

    I was working a few days ago. Before the 2 bukkit builds and the one citizen update.
     
  7. Offline

    VRYUKI

    Funny thing happened when I made my first NPC, I put a clone of myself just inside the front door to my castle, went wondering far off, and warped home. When I started down the castle stairs what do I see? About 20 zombies and 20 skeletons that spawned right where my NPC was. Have had this server for a long time, never seen anything like this. Was a son-of-a-B to kill them all. Simular things happen to anyone else?
     
  8. Offline

    jsimmons6422

    im having issues of were i cant create npcs and im owner. do i have to be on same computer as the servers running on ?
     
  9. Offline

    LololTroll

    I used this plugin earlier on, and it was awesome, the only complicated thing is about the trade... I'm not sure how I can do it, I searched the wiki for commands, tried many times but gives me back this reply, "Invalid item ID or name specified" I am confused, would anyone help me out?
     
  10. Offline

    Psycho Robot

    In build 803, this plugin causes tamed wolves to disappear. When I find a wolf in the wild and feed it bones, it disappears a fraction of a second after it gets tamed and sits down. When I spawn wolves pre-tamed with a mob control plugin, they disappear a fraction of a second after they appear. I am certain that this plugin is the culprit because I restarted my server without citizens and tamed wolves did not disappear, and when I restarted it with citizens back on, they began disappearing again. No errors appear in the console when this happens.
     
  11. Offline

    fullwall

    Items/color bugs are fixed in the next version. @d00ba - looking into your bugs.
     
  12. Offline

    redworld2

    Why can I not use Citizens. I am fully updated and keep on getting this:
    [SEVERE] Could not load 'plugins/Citizens.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: Bad version number in .class file

    HELP!!! Please
     
  13. Offline

    lulwutMC

    I have something wrong with mine. I hosted a server and im op. But when i try the NPC Create plugin, it says i dont have permission for it. So yeah, can someone please help me? Thanks.​
    :) - lulwutMC​
     
  14. Offline

    fullwall

    @redworld2 - you have an old java version maybe?
     
  15. Offline

    fullwall

    To all - found source of lag in minecraft code used for generating block effects, storms, and a sound. When there's an option to disable that code for npcs (hopefully in 1.6) it'll be done.
     
    Alesana likes this.
  16. Offline

    HippyJoe2004

    Hey, loving this plugin. Was just what I needed.
    Just one issue, it seems to be clashing with another plugin I use, called Backpack.
    If you haven't seen it yet, it's an inventory extender.
    When I've got the plugin active, right-clicking traders does nothing in-game and causes an error dump in the console.

    Code:
    2011-05-23 20:50:00 [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.fullwall.Citizens.NPCTypes.Traders.TraderTask.clonePlayerInventory(TraderTask.java:355)
        at com.fullwall.Citizens.NPCTypes.Traders.TraderTask.<init>(TraderTask.java:58)
        at com.fullwall.Citizens.NPCTypes.Traders.TraderInterface.handleRightClick(TraderInterface.java:50)
        at com.fullwall.Citizens.Listeners.EntityListen.onEntityTarget(EntityListen.java:195)
        at org.bukkit.plugin.java.JavaPluginLoader$52.execute(JavaPluginLoader.java:605)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
        at com.fullwall.resources.redecouverte.NPClib.CraftNPC.a(CraftNPC.java:70)
        at net.minecraft.server.EntityHuman.c(EntityHuman.java:472)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:847)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    It was the "invalid inventory size" that tipped me off.
    Anyway, I'll keep running Citizens for now, people won't miss Backpack TOO much for the time being.
    Just thought I'd point it out.
    Thanks again for a great plugin.
     
  17. Offline

    fullwall

    Hmmm... looks like Afforess artificially changes the player inventory size... you may want to ask him to change his code structure
     
  18. Offline

    Creylon

    If I add about 14 Items or more to a trader, I get an internal error and the items were deleted.
     
  19. Offline

    fullwall

    @Creylon - error please.
    @HippyJoe2004 - Afforess does some stuff to the player inventory to avoid saving it... he needs to change that.
     
  20. Offline

    sintri

    Extra inventory used to be store in a seperate file, it's now incorporated into the player.dat files, so not entirely sure if he will.

    Anyways, had an error creating npcs before, apparently essentials 2.2.16 wasn't enough.
     
  21. Offline

    fullwall

    As I say, the way in which he makes them save in player.dat (by doing sneaky inventory variable setting) causes this issue.
    You need essentials 2.2.17 or above.
     
  22. Offline

    Garyofstatues

    Hey guys, im getting an error when trying to create NPCs since the update. i have the latest build of bukkit and v1.0.8d. when i try to create it says 'An internal error occurred while attempting to preform this command'

    error is


    15:38:52 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin Citizens v1.0.8
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:127)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:699)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:666)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoSuchMethodError: com.earth2me.essentials.api.Economy.playerExists(Ljava/lang/String;)Z
    at com.nijikokun.register.payment.methods.EE17.hasAccount(EE17.java:40)
    at com.fullwall.Citizens.Economy.ServerEconomyInterface.playerHasEnough(ServerEconomyInterface.java:27)
    at com.fullwall.Citizens.Economy.ServerEconomyInterface.hasEnough(ServerEconomyInterface.java:94)
    at com.fullwall.Citizens.Economy.EconomyHandler.canBuy(EconomyHandler.java:121)
    at com.fullwall.Citizens.Commands.CommandExecutors.BasicExecutor.onCommand(BasicExecutor.java:49)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    any help would be much appreciated!
     
  23. Offline

    fullwall

  24. Offline

    GET_SOMMME

    Right now I only have the basics down, I want to know how to create traders, blacksmiths, etc. Can someone help me?
    By the way, the items that the NPC's have get deleted when I restart my server.
     
  25. Offline

    aPunch

    The wiki has some good tutorial videos that show you each type and how to create it. Also, type /citizens help in-game for a list of commands.
     
  26. Offline

    Soryo

    It'd be cool if you could make wizards change the weather... :confused:

    Edit... - that face was supposed to be :confused: .... not "confused"

    Edit again - Darn you smileys auto-changing my smiley typing!

    O _ o

    Edit (For the last time!! - Also... what's this "Bandit" file? :confused: Up and coming NPC that runs around and steals loot from other people and brings it to you? YES! lol
    I don't even know what I typed to get that "confused" smiley this time... now... I really am :confused:.
     
  27. Offline

    Mosh Mage

    Well, i just /basic create Mosh and tried to slap it, here's the outup of that:

    Code:
    17:52:31 [SEVERE] Could not pass event ENTITY_DAMAGE to AuthMe
    java.lang.NullPointerException
            at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCache.java:68)
            at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCache.java:76)
            at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
            at com.bukkit.fabe.AuthMe.Listener.AuthMeEntityListener.onEntityDamage(AuthMeEntityListener.java:30)
            at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:518)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:522)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:815)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  28. Offline

    blutherz

    this plugin is still useless, because MAJOR Bug #38 still not fixed.

    p.s. sorry for my bad english, hope it is diplomatic enough writen
     
  29. Offline

    Dixx

    Ok i found another bug! And that serious! If you buy somethin' from trader and you have 0,- money, it let you buy things from trader for free. It doesn't set your money to negative value or antyhing...
     
  30. Offline

    tommyboii

    Is Questing Enabled yet as see it in my Citizens Options folder?
    and how would i make a questing/questgiving npc?
     
  31. Hello! Great plugin!

    I dont use an economy on my server and have enabled goldbars as my currency however in certain circumstances the gold isn't being removed from the inventory . It wont let me perform a repair if I lack sufficient gold but then doesnt remove the gold when i do have it. The same thing happened for levelling up a healer however I was able to buy the level up without actually having the gold at all.

    Is this a bug or (more likely) have I simply set up something incorrectly in the economy settings?

    Any help would be greatly appreciated, thanks :)

    EDIT: I have discovered that the gold is being removed on repairs but the stack size isn't reducing immediately. If I click on the goldbar stack it alters by the correct amount. Healer level ups still not working though.

    One thing still puzzles me though, he says he charges 5 goldbars but when you actually repair something he only charges 1 goldbar. Have I set a value up wrong somewhere?
     

Share This Page