[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

    globox44t

    No, I dont think so
     
  3. Ok. It's iConomy that's the problem with traders. Since it doesn't seem to get updated anymore I thrue it in the garbagebin and went for BOSEconomy instead. Damn, not only does it work with traders (and every other plugin that uses economy I've tried), the hole server runs smoother. :D

    One question: When configuring a trader to sell stuff, there isn't any way to make it sell potions, colored wool and other stuff that has an extra :<nr> after it's id?

    And what does the (data) stand for in /trader sell id:amount:data?
     
  4. Offline

    luigi_vampa


    Data is the sub-id of the item. If black wool is item 35, sub-id 15 (35:15) the command to sell 10 black wool for £1 or what ever currency you use is "/trader sell 35:10:15 1"
     
  5. Offline

    RasCas

    1.1.6. states it is 1.1.5 ???
    Just a forgotten number or wrong file in the zip?
     
  6. I tried that, didnt work. :(
     
  7. Offline

    dionnsai

    Having an issue straightening some things out in citizens. I'm taking over plugin development for another developer who...has disappeared. Problem I'm having at the moment, looks like he was working with older versions of citizens.

    Right now I'm calling for net.citizensnpcs.api.event.NPCListener; which no longer exists in citizens.

    He's using this to launch some spout guis for a few other plugins, spoutshops and a custom clan plugin, possibly some other things.








    public

    class Listener_NPC extends
    NPCListener {

    private LegendaryClans plugin
    ;
    public
    Listener_NPC(LegendaryClans plugin){
    this.plugin
    = plugin;
    }

    @Override
    publicvoid
    onNPCRightClick(NPCRightClickEvent event) {
    super
    .onNPCRightClick(event);
    Player player = event.getPlayer();
    HumanNPC npc = event.getNPC();
    if (npc != null
    ) {
    .... and so on

    New/alternative ways of handling this? A little research and i found that npclistener existed as late as 1.1.3, but disappeared by 1.1.5. There appears to be no documentation of this whatsoever, and searching everywhere I've only found one post even relating to it, and it was in this thread and had 0 replies. Further, the api documentation still seems to list NPCListener as a class.
     
  8. Offline

    fullwall

    dionnsai - you should use the new events system.
    Code:
    public class NPCListener implements Listener {
    @EventHandler
    public void onNPCRightClick(NPCRightClickEvent event) {
    }
    }
     
    // in onEnable
    getServer().getPluginManager().registerEvents(new NPCListener(), this);
     
  9. Offline

    dionnsai

  10. Offline

    Milhouse

    Hi. First of all, thanks for the plugin, it's great. I'm using it since 2 months, usually it's working great but right now I've a little issue:

    I'm using Essentials 2.8.2 and Citizens 1.1.6 on Craftbukkit 1.1 R4 1938 (but the issue was already present on R3) and players can buy stuff from traders for free, even if there is an amount set. They can also create NPC for free even though I set up a requirred amount of 10000 credits for creation.

    They can also repair tools and weapons for free. I'm not sure if it's an bug in Essentials or in Citizens, maybe anyone can help me?
     
  11. I had the same problem when running iConomy. Changed to BOSEconomy and it works now.
    No idéa if this helps you in any way, but atleast it's some info :p
     
  12. Offline

    Milhouse

    OK thanks. Currenty I'm using the eco plugin of essentials, if I install iConomy BOSEconomy they will probably conflict and I like a lot of other features of Essentials.. But I will give it a try.
     
  13. Offline

    Ethneldryt

    /guard delflag player -p
    not delete flag :(
     
  14. Offline

    Endimmion

    Don't know if it has been already reported, but "/suicide" make citizen report an error
     
  15. It's /guard delflag -p <player>
     
  16. Offline

    Ethneldryt

    not work in my npc profile if reload save or stop the server
     
  17. If you change the flag with "/guard delflag -p <player>" type "/citizens save" afterwards to save the config and then try to restart your server and see if it's still there. :)
     
  18. Offline

    jjp5

    i canspawn npcs but thats it.you cant select them or anything,they just stand there and stare at the sky.heres the error message on terminal:
    10:13:19 [SEVERE] java.lang.NoSuchMethodError: net.citizensnpcs.resources.npclib.PathNPC.getBukkitEntity()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
    10:13:19 [SEVERE]at net.citizensnpcs.resources.npclib.CraftNPC.getBukkitEntity(CraftNPC.java:70)
    10:13:19 [SEVERE]at net.citizensnpcs.resources.npclib.HumanNPC.getPlayer(HumanNPC.java:130)
    10:13:19 [SEVERE]at net.citizensnpcs.resources.npclib.HumanNPC.getWorld(HumanNPC.java:146)
    10:13:19 [SEVERE]at net.citizensnpcs.properties.properties.BasicProperties.loadState(BasicProperties.java:321)
    10:13:19 [SEVERE]at net.citizensnpcs.properties.PropertyManager.load(PropertyManager.java:46)
    10:13:19 [SEVERE]at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:161)
    10:13:19 [SEVERE]at net.citizensnpcs.resources.npclib.NPCManager.register(NPCManager.java:177)
    10:13:19 [SEVERE]at net.citizensnpcs.commands.BasicCommands.create(BasicCommands.java:226)
    10:13:19 [SEVERE]at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10:13:19 [SEVERE]at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    10:13:19 [SEVERE]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10:13:19 [SEVERE]at java.lang.reflect.Method.invoke(Method.java:597)
    10:13:19 [SEVERE]at net.citizensnpcs.resources.sk89q.CommandsManager.executeMethod(CommandsManager.java:530)
    10:13:19 [SEVERE]at net.citizensnpcs.resources.sk89q.CommandsManager.execute(CommandsManager.java:407)
    10:13:19 [SEVERE]at net.citizensnpcs.Citizens.onCommand(Citizens.java:220)
    10:13:19 [SEVERE]at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    10:13:19 [SEVERE]at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    10:13:19 [SEVERE]at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
    10:13:19 [SEVERE]at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
    10:13:19 [SEVERE]at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
    10:13:19 [SEVERE]at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:725)
    10:13:19 [SEVERE]at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
    10:13:19 [SEVERE]at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    10:13:19 [SEVERE]at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    10:13:19 [SEVERE]at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    10:13:19 [SEVERE]at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
    10:13:19 [SEVERE]at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    10:13:19 [SEVERE]at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    please help!
     
  19. Offline

    Izz9

    How can i make a healer/guard?
    it says invalid NPC ?
     
  20. Do you have healer.jar and guard.jar in the plugin/citizens/types/ folder?
     
  21. Offline

    Izz9

    Where do i get the .jars for that?
     
  22. Offline

    Meteo

    Is there any way to make it so that people can have a max of 10 quests? Cause right now, it saids I can only do 1 quest at a time.
     
  23. Offline

    Izz9

    Where do i get the .Jar Files for healers, guards, ect!?!?!!
     
  24. Offline

    dionnsai

    something about this i'm just not getting....at all
     
  25. Offline

    Medic0987

    I have all the .jar for the types, whats the command to change the type of the NPC? bcuz its NOT in the help and the wiki page gives me a 403 error sooooo.... :/
     
  26. Offline

    DaEgo

    It looks like that in god mode the Plugin cant handle the result when u die (/suicide)
    I know, die in god mode sounds stupid, of course^^

    Code:
    Could not pass event org.bukkit.event.entity.EntityDamageEvent to AuthMe
    java.lang.ClassCastException: com.earth2me.essentials.User cannot be cast to org.bukkit.craftbukkit.entity.CraftEntity
    at net.citizensnpcs.resources.npclib.NPCList.getNPC(NPCList.java:19)
    at net.citizensnpcs.resources.npclib.NPCManager.isNPC(NPCManager.java:41)
    at net.citizensnpcs.api.CitizensManager.isNPC(CitizensManager.java:43)
    at uk.org.whoami.authme.citizens.CitizensCommunicator.isNPC(CitizensCommunicator.java:32)
    at uk.org.whoami.authme.listener.AuthMeEntityListener.onEntityDamage(AuthMeEntityListener.java:50)
    at org.bukkit.plugin.java.JavaPluginLoader$66.execute(JavaPluginLoader.java:729)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at com.earth2me.essentials.commands.Commandsuicide.run(Commandsuicide.java:20)
    at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:97)
    at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:340)
    at com.earth2me.essentials.Essentials.onCommand(Essentials.java:267)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:411)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:784)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
    Could not pass event org.bukkit.event.entity.EntityDamageEvent to Citizens
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at com.earth2me.essentials.commands.Commandsuicide.run(Commandsuicide.java:20)
    at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:97)
    at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:340)
    at com.earth2me.essentials.Essentials.onCommand(Essentials.java:267)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:411)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:784)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    ... 19 more
     
    Caused by: java.lang.ClassCastException: com.earth2me.essentials.User cannot be cast to org.bukkit.craftbukkit.entity.CraftEntity
    at net.citizensnpcs.resources.npclib.NPCList.getNPC(NPCList.java:19)
    at net.citizensnpcs.resources.npclib.NPCManager.get(NPCManager.java:31)
    at net.citizensnpcs.listeners.EntityListen.onEntityDamage(EntityListen.java:29)
    ... 23 more
    
     
  27. Offline

    Medic0987

    Please update to build 1.1-R4

    Edit: Even in the title it SAYS you are 1.1-R4 on the download page there is ONLY a download for R3 and it dosnt work for R4 because there is issues with the NPC types, for some reason there is NO command to choose which type.
     
  28. Offline

    frdmn

    Hey,

    i got a problem with my Citizens v1.1.6. We use a huge amount of NPC (i think about 50) and they'r always disappear after 30 minutes if i reload the server. unfortunately, no error-msgs in the log file.

    My plugin-list:
    GroupManager, WorldEdit, FalseBookChat, FalseBookBlock, WorldInventories, MorePhysics, rTriggers, Vault, JSONAPI, Multiverse-Core, WorldGuard, RemoteToolkitPlugin, LazyRoad, MineBackup, Spectate, iConomy, BeardStat, Permissions, HawkEye, frdmn-cmd, FalseBookIC, FalseBookExtra, NoCheat, FalseBookCore, MobDisguise, MobArena, FalseBookCart, Essentials, Citizens, WorldBorder, EssentialsProtect, EssentialsSpawn, Multiverse-Portals, Multiverse-NetherPortals, LWC, dynmap, Dynmap-WorldGuard, AntiBuild, EssentialsChat, DeathTpPlus, Dynmap-Essentials, ecoCreature

    hope u guys can help me,
    frdmn.

    PS: when i disable and enable the plugin again through JSONAPI a error-msg shows up in the log:
    Code:
    15:35:20 [INFO] [Citizens] Unloading Citizens v1.1.6.
    15:35:20 [INFO] [Citizens] version [1.1.5] disabled.
     
    15:35:26 [INFO] [Citizens] Loading Citizens v1.1.6.
    15:35:26 [INFO] [Citizens] NPC types loaded: wizard, quester, trader, guard, healer, blacksmith, wizard, quester, trader, guard, healer, blacksmith
    15:35:26 [INFO] [Citizens] Permissions system found (GroupManager v1.7 (Phoenix))
    15:35:26 [SEVERE] Error occurred while enabling Citizens v1.1.6 (Is it up to date?): The permission citizens.admin.info is already defined!
    java.lang.IllegalArgumentException: The permission citizens.admin.info is already defined!
        at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:628)
        at net.citizensnpcs.permissions.PermissionManager.addPermissions(PermissionManager.java:133)
        at net.citizensnpcs.permissions.PermissionManager.<init>(PermissionManager.java:51)
        at net.citizensnpcs.Citizens.onEnable(Citizens.java:127)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379)
        at com.alecgorge.minecraft.jsonapi.dynamic.APIWrapperMethods.enablePlugin(APIWrapperMethods.java:502)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.alecgorge.minecraft.jsonapi.dynamic.Call.call(Call.java:114)
        at com.alecgorge.minecraft.jsonapi.dynamic.Caller$1.call(Caller.java:64)
        at org.bukkit.craftbukkit.scheduler.CraftFuture.run(CraftFuture.java:34)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    
     
  29. Offline

    nimenombies

    Sometimes, very rarely, guard npcs will fire over 9000 arrows (probably more like 500, but you get what I mean). This causes tremendous lag in the area, and once crashed my client. It has only happened that badly once or twice, but they have fired a few hundred arrows at once at the ground, and I have picked them up. (running r3 with 1.1.6)

    Try to fix if you can :)
     
  30. Offline

    nimenombies

    also, mobs don't seem to fight back against sword wielding guards, but do fight back against guards using bows.

    PS. Would it be possible to make it so that a guard has a sword and a bow, and uses the bow when he is far from his target, and uses the sword when he gets up close?
     
  31. Offline

    MaxxzBenedek

    Please help! it says command not recognised when i say: /npc create! Do i need SpoutPlugin or anything? Please Reply back quick!
     

Share This Page