[ECON] NPCTrader v1.1.4 - The Full featured localized shop system [RB740 - 766]

Discussion in 'Inactive/Unsupported Plugins' started by MatCat, Feb 13, 2011.

  1. Offline

    MatCat

    NPC Trader - The Full featured localized shop system

    Version 1.1.4 (Testing Version!)



    The first localized full featured shop system for Bukkit/iConomy, in NPC Form!

    What's better for a localized shop system then your very own NPC Clerk / Teller / Worker / Slave / Whatever word you want to call your NPC!

    Features
    • Localized system
    • Fully player controlled (No admin intervention needed)
    • Full Item and Metadata support (Colored wools, etc)
    • Item name or ID recognition
    • Partial name recognition (If online)
    • Complete internal permissions system for managers of the NPC
    • iConomy Based
    • MySQL data storage
    • Item stocking system
    • In-Game help for everything
    • Supports Permissions and GroupManager (Using FakePermissions) Plugins!
    Installation / Setup

    1. Put NPCTrader.jar in your plugins folder
    2. Put mysql-connector-java-bin.jar in your main minecraft folder
    3. Restart your server (Auto-generates config.yml in plugins/NPCTrader/)
    4. Edit the config.yml for MySQL and other config settings.
    5. Restart once more
    6. Enjoy!
    If for some reason the folder / config does not auto-generate, then you can open the .jar file with 7zip or winzip or other archiving utility that supports jars and extract the config.yml from the jar.


    NOTE: If you do not have or do not know if you have MySQL setup then you either have to setup MySQL or not use this plugin for now. Please do not post questions asking how to install MySQL as that is outside of the scope of this post. You can follow this tutorial (Thanks @Germata!) for detailed windows installation and setup, but I cannot provide support for installing and setting up MySQL, only support for my plugin specifically.

    Permissions

    Permissions will only be used if it is installed. The following is the permissions list:

    Code:
    npc.admin      - Give to admins for full access to all NPCs
    npc.admin.list - Access to /npc list npcs
    npc.user.*     - General user commands, you can specify by replacing * with command name, I.E. buy
    npc.manager.*  - NPC Manager commands
    npc.owner.*    - NPC Owner commands
    npc.create     - Ability to create an NPC 
    If permissions is used you may also specify limits on how many NPCs a specific player or group may have ownership flag on, please see config file for more information.

    Usage

    Once the plugin is installed and running, you can see the in-game help by typing /npc in your chat window. To interact with an NPC just right click on it first.

    Here is a simple tutorial for setting up an NPC named Bob that sell's bread, cooked fish, and cooked pork, and buys wheat, raw fish, and raw pork.

    1. Stand exactly where you want your NPC, including head position and body rotation.
    2. Type: /npc create Bob 6 10 This will create the NPC with 6 Item Slots, each holding 10 units.
    3. Right click on the newly created NPC
    4. Type: /npc setup 1 bread 1 2 0 true false This will setup Slot 1 with Bread, selling lots of 1 at 2 Coins, buying them from players at 0, True for NPC Selling it, False for buying from players.
    5. Repeat step 4 for Cooked fish and Pork
    6. Type: /npc setup 4 wheat 64 0 10 false true This will setup Slot 4 with Wheat, buying lots of 64 at 10 Coins. This one is set False to selling it to players, but true to buy from players.
    7. Type: /npc stock 1 20 This will stock the NPC with 20 breads on slot 1 (Assuming you have enough bread).
    8. Repeat step 7 for raw fish and pork.
    You know have a fully setup and functioning NPC.


    Known Issues / Bugs

    • Config folder does not get generated on Linux - Works on Windows
    • Cookies and beds, and pretty much any other 1.4/1.5 items.
    • Spams console when you stand close to an NPC
    • Gives error when an NPC is spawned (Can be ignored)
    • Head / Rotation is not being properly set on spawn / move. (Fixed in 1.14)
    • Does not work with actual permissions (works with GroupManager)
    • Rename command is broken
    Things Todo

    • Re-write item handling
    • Support for both GroupManager and Permissions
    • iConomy 5 Support
    • Add armor capacity
    • Tie into WorldGuard for checking for build rights (Will be optional)
    Misc


    If you installed MySQL for Windows just to run this plugin then check out this link to see how to create the initial minecraft database you will need.


    *** NOTE: SQLite IS NEVER GONNA HAPPEN! If you want to see an alternative, fork the src, make it work as an option, and I will include it in.***

    Changelog
    • Version 1.1.4
      • Changed out item name / id handling system
      • Now supports all current official items
      • Fixed Move Bug
      • Fixed NPC Creation Errors
      • Fixed a few other errors
      • Fixed Config creation on linux (hopefully!)
    • Version 1.1.3
      • Completely rewrote most of the code that directly interfaces with the NPC Library.
      • Now uses chunk loading/unloading to make sure only NPC's in loaded chunks are loaded (Way more efficient)
      • Changed banker command to only allow setting yourself as banker (to stop an exploit situation).
    • Version 1.1.2
      • Fixed upgrading stack counts for free bug
      • Fixed rename command not working on linux
      • Made it so an NPC must have 1 item slot to be created
      • Added permissions support for owned npc limits (By group or player)
    • Version 1.1.1
      • Fixed issues with quantities of '0'
      • Added rename command
      • Fixed iConomy hooking on startup
    • Version 1.1.0
      • Fixed Admin Override Permissions not working
      • Added Half and Double Slabs
      • Updated to work with B612+
    • Version 1.0.9
      • Updated to work on B531+
      • Updated to work with iConomy 4.*
      • Much needed overhaul of error handling and disabling procedures.
      • Converted integer based money to decimal based.
    • Version 1.0.8
      • Updated for newer builds
    • Version 1.0.7
      • Fixed more issues with ItemData, hopefully they are fixed for good.
      • Added log names
      • Added Coal/Charcoal distinction
      • Order of slots listed will always be in ascending order
    • Version 1.0.6
      • More meta-data issues, resolved.
    • Version 1.0.5
      • My restructuring of the code to try to support SQlite completely foobared the connect and close code, causing timeouts and errors. Fixed it.
    • Version 1.0.3
      • Fixed buy/sell/stock/unstock to use absolute values so that negatives cannot happen.
    • Version 1.0.2
      • Fixed bug where db connection was closed on /npc create
    • Version 1.0.1
      • Fixed bug with null Item Datas
    • Version 1.0.0
      • Fixed many many bugs
      • Added /npc list npcs as an admin command to let you see a full list of NPCs
      • Added recording transactions.
      • Added full permissions support
      • Better error handling and message delivery.
    • Version 0.94
      • Fixed not checking stock when doing /npc setup
      • Made the setup's error messages way more intuitive
    • Version 0.93
      • Fixed disappearing NPC bug.
    • Version 0.92
      • Fixed bug where selling was not checking player inventory.
    • Version 0.91
      • Fixed bug where giving improper arguments for upgrading and creating reported iConomy and NPC Trader out of sync.
    • Version 0.9
      • Initial Release
    You can download the jar here.



    You can download the mysql connector jar here.
     
  2. Offline

    woodzy

     
  3. Offline

    Avous

    i get this error on 677 i have permissions 2.7 and npctrader 1.1.2

    Code:
    2011-04-16 23:00:45 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin NPCTrader v1.1.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:626)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:589)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:583)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroup(Ljava/lang/String;)Ljava/lang/String;
        at com.MatCat.NPCTrader.NPCTrader.CanCreate(NPCTrader.java:118)
        at com.MatCat.NPCTrader.Commands.npcCreateCommand.Run(npcCreateCommand.java:42)
        at com.MatCat.NPCTrader.NPCTrader.onCommand(NPCTrader.java:354)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  4. Offline

    MatCat

    I am working on the next release, will be better optimized for re-visualizing NPC's, a fix to a potential exploit (Only just heard about it today and I have close to 100 NPC's running on my server), get rid of the nag.
     
  5. Offline

    Arcaian

    Code:
    2011-04-16 23:00:45 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin NPCTrader v1.1.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:626)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:589)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:583)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroup(Ljava/lang/String;)Ljava/lang/String;
        at com.MatCat.NPCTrader.NPCTrader.CanCreate(NPCTrader.java:118)
        at com.MatCat.NPCTrader.Commands.npcCreateCommand.Run(npcCreateCommand.java:42)
        at com.MatCat.NPCTrader.NPCTrader.onCommand(NPCTrader.java:354)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    Also getting this, CB 677 , Minecraft 1.4_01 , mySQL community server 5.5 and workbench 5.2
    Is it just a conflict with my group manager ?
     
  6. Offline

    jcgurango

    Hey, how come when I run it, it says "verify that config.yml is suited to your needs.." or something like that, but it doesn't create that file? I even tried creating that file myself, which got rid of a File Not Found error (nice programming. You forgot to create your own folder before writing to the file), but it didn't modify the config.yml file at all. I'm running CB 677, Minecraft 1.4_01. MySQL details are not needed at this point.
    EDIT: Oh, just read it in the issues. Now how the hell do I fix it? I'm running Windows.
     
  7. Offline

    Boelens

    I have seriously tried EVERYTHING. I use permissions added it all, but when using /npc create bob 5 10 for example, nothing happens. No error no nothing. And after a few restarts, it says unknown command. I cant give console logs atm.
    Using 677.
     
  8. Offline

    Kitzur

    ok my last error on cb 677:

    2011-04-17 20:10:42 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin NPCTrader v1.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254) at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:626) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:589) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:583) at net.minecraft.server.Packet3Chat.a(SourceFile:24) at net.minecraft.server.NetworkManager.a(NetworkManager.java:198) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72) at net.minecraft.server.NetworkListenThread.a(SourceFile:100) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283) at net.minecraft.server.ThreadServerApplication.run(SourceFile:375) Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroup(Ljava/lang/String;)Ljava/lang/String; at com.MatCat.NPCTrader.NPCTrader.CanCreate(NPCTrader.java:118) at com.MatCat.NPCTrader.Commands.npcCreateCommand.Run(npcCreateCommand.java:42) at com.MatCat.NPCTrader.NPCTrader.onCommand(NPCTrader.java:354) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35) ... 12 more
     
  9. Offline

    Atticusmas

    SQLITE NOW!!!!
     
    Boelens and Kitzur like this.
  10. Offline

    BSPiotr

    Hate to be a bother, but has anyone figured out the syntax for showing page 2 and beyond of "/npc list npcs"
     
  11. Waiting for a fix, this plugin won't delete NPCs and just shoots errors out at me all the time.
     
  12. Offline

    NachoDuck

    Love the idea behind this plugin, but I'm having a weird problem with it. It seems to ignore the buy, sell flags or at least doesn't interprete the commands properly. Whenever I buy or sell something it will just do both as in when I type the command to buy the item it will first sell the item (which I don't have) and then buy it leaving it in my inventory.

    My apologies if it's already been brought up but it's a nightmare to search through threads on here.

    brokennpx.PNG
     
  13. Offline

    tommy99

    i get an error why?

    Error:
    Code:
    20:59:40 [SCHWERWIEGEND] java.io.IOException: Das System kann den angegebenen Pf
    ad nicht finden
    20:59:40 [SCHWERWIEGEND]        at java.io.WinNTFileSystem.createFileExclusively
    (Native Method)
    20:59:40 [SCHWERWIEGEND]        at java.io.File.createNewFile(Unknown Source)
    20:59:40 [SCHWERWIEGEND]        at com.MatCat.NPCTrader.Resources.writeResource(
    Resources.java:10)
    20:59:40 [SCHWERWIEGEND]        at com.MatCat.NPCTrader.NPCTrader.onEnable(NPCTr
    ader.java:173)
    20:59:40 [SCHWERWIEGEND]        at org.bukkit.plugin.java.JavaPlugin.setEnabled(
    JavaPlugin.java:127)
    20:59:40 [SCHWERWIEGEND]        at org.bukkit.plugin.java.JavaPluginLoader.enabl
    ePlugin(JavaPluginLoader.java:578)
    20:59:40 [SCHWERWIEGEND]        at org.bukkit.plugin.SimplePluginManager.enableP
    lugin(SimplePluginManager.java:216)
    20:59:40 [SCHWERWIEGEND]        at org.bukkit.craftbukkit.CraftServer.loadPlugin
    (CraftServer.java:115)
    20:59:40 [SCHWERWIEGEND]        at org.bukkit.craftbukkit.CraftServer.loadPlugin
    s(CraftServer.java:93)
    20:59:40 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.e(Minecr
    aftServer.java:215)
    20:59:40 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.a(Minecr
    aftServer.java:202)
    20:59:40 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.d(Minecr
    aftServer.java:142)
    20:59:40 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.run(Mine
    craftServer.java:257)
    20:59:40 [SCHWERWIEGEND]        at net.minecraft.server.ThreadServerApplication.
    run(SourceFile:375)
    20:59:40 [INFO] Database configuration Error!
    Verify your config.yml settings are correct and valid for your MySQL setup.
    Returned Error: java.lang.NullPointerException
    20:59:40 [INFO] NPCTrader version 1.1.2 is disabled!
    pls help me i nedd this plugin
     
  14. Offline

    kahlilnc

    What do you mean your main minecraft folder, are you talking about inside appdata? Or inside your server folder or in my lib folder. I do have MySQL setup with other plugins. I am not getting the NPCTrader folder with config.yml either.
     
  15. Offline

    Pontus Lantz

    It means the folder where you have placed the bukkit jar.
     
  16. Offline

    footwo

    I'm getting a similar problem with Permissions. Only admins have tried to create so far and admins have all permissions:


    Code:
     [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc' in plugin NPCTrader v1.1.2
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroup(Ljava/lang/String;)Ljava/lang/String;
    
    The command /npc on it's own works, as I get the help list. But I cannot create any NPCs.
     
  17. Offline

    MatCat

    Looks like you have an invalid yml setting in your permissions file.
     
  18. Offline

    Pontus Lantz

    Do you have any clue when permissions will work again? Love the plugin but not being able to use permissions at the same time kinda makes it hard.
     
  19. Offline

    MatCat

    My plugin works just fine with permissions, I use it on my server with 20 so people on nearly all the time, with over 100 NPC's and I have no problems.
     
  20. Offline

    jdrez

    Getting this, too, whenever I try to create a NPC!
     
  21. Offline

    BSPiotr

    Great, then as the plugin maker, how do you show yourself page 2+ of the /npc list npcs page? :)
    /npc list npcs 2 does not work, nor does any combination of : , ; - etc.
     
  22. Offline

    woodzy

    Can YOU PLEASE get red OF THE trash that is spamming my consol!
    very anoying when trying to read the daily server log.
    i know u can unhard code it out since its just a debuger
    2011-04-19 11:14:31 [INFO] 39
    2011-04-19 11:14:31 [INFO] World Match... Added
    2011-04-19 11:14:31 [INFO] 42
    2011-04-19 11:14:31 [INFO] World Match... Added
    2011-04-19 11:14:31 [INFO] 102
    2011-04-19 11:14:31 [INFO] World Match... Added
     
    GingernutRanger likes this.
  23. Offline

    Pahtet

    When i try to create NPC i get
    Code:
    13:00:07 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc'
     in plugin NPCTrader v1.1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80
    )
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    54)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:637)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:600)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:594)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler
    .getGroup(Ljava/lang/String;)Ljava/lang/String;
            at com.MatCat.NPCTrader.NPCTrader.CanCreate(NPCTrader.java:118)
            at com.MatCat.NPCTrader.Commands.npcCreateCommand.Run(npcCreateCommand.j
    ava:42)
            at com.MatCat.NPCTrader.NPCTrader.onCommand(NPCTrader.java:354)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    Bukkit build 684
     
    GingernutRanger likes this.
  24. Offline

    HoloProject

    Fine, you allknowning creator, please fix this permissions file then:
    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mcmmo.skills.*'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'monstertamer.player.*'
                - 'monstertamer.player.befriend'
                - 'gastronomic.player.*'
                - 'npc.user.*'
                - 'npc.manager.*'
                - 'npc.Create'
                - 'npc.owner.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    
    The user section is there to, but for privacy issues, I'm not going to show that part
     
  25. Offline

    Boelens

    MatCat, dont be so ignorant . We are ALL having problems with this plugin.
     
    GingernutRanger likes this.
  26. Offline

    haymachel

    14:32:10 [SEVERE] java.io.IOException: No such file or directory
    14:32:10 [SEVERE] at java.io.UnixFileSystem.createFileExclusively(Native Method)
    14:32:10 [SEVERE] at java.io.File.createNewFile(File.java:883)
    14:32:10 [SEVERE] at com.MatCat.NPCTrader.Resources.writeResource(Resources.java:10)
    14:32:10 [SEVERE] at com.MatCat.NPCTrader.NPCTrader.onEnable(NPCTrader.java:173)
    14:32:10 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    14:32:10 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    14:32:10 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    14:32:10 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    14:32:10 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    14:32:10 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    14:32:10 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    14:32:10 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    14:32:10 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    14:32:10 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    14:32:10 [INFO] Database configuration Error!
    Verify your config.yml settings are correct and valid for your MySQL setup.
    Returned Error: java.lang.NullPointerException
    14:32:10 [INFO] NPCTrader version 1.1.2 is disabled!
    Any help would be great. Thanks
     
  27. Offline

    GingernutRanger

    Yes, Ive even joined your server to ask for help and all you keep saying is 'well mine is working, check your config'
    YOU DONT TELL US WHATS WRONG WITH THE CONFIG!
    Its YOUR plugin so YOU help us

    well, if your having a good time with it thats ok then, dont worry about us lot

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  28. Offline

    haymachel

    thanks for the help :mad:
     
  29. Offline

    Navist

    You need to create the folder in your Plugins Folder, addon doesn't do it for you. Name is NPCTrader.
     
  30. Offline

    HoloProject

    Here's my error and permissions file:

    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'mcmmo.skills.*'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'monstertamer.player.*'
                - 'monstertamer.player.befriend'
                - 'gastronomic.player.*'
                - 'npc.user.*'
                - 'npc.manager.*'
                - 'npc.Create'
                - 'npc.owner.*'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    
    Code:
    13:56:07 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'npc'
    in plugin NPCTrader v1.1.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80
    )
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    54)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:626)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:589)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:583)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler
    .getGroup(Ljava/lang/String;)Ljava/lang/String;
            at com.MatCat.NPCTrader.NPCTrader.CanCreate(NPCTrader.java:118)
            at com.MatCat.NPCTrader.Commands.npcCreateCommand.Run(npcCreateCommand.j
    ava:42)
            at com.MatCat.NPCTrader.NPCTrader.onCommand(NPCTrader.java:354)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  31. Offline

    MatCat

    IT appears that TheYeti's take over of niko's permissions may have changed API calls, I use GroupManager and FakePermissions, and is what I test against. I will check into it and see about making it compatible for both, but for the moment I am not guaranteeing that.

    And for the record I made this plugin for my server, and released it publicly because at the time there was no good solution for a localized shop system. I am a busy person with a lot of projects on my hands, a fairly successful server to run of my own, and very little time. I will continue to keep this plugin active, but I just don't have time to answer everyone's questions or problems.

    This plugin works just fine on my server, so therefor it is possible to get it to run and work fine on your server, however any number of things can effect this, I.E. other plugins making it incompatible, weird settings on your OS, improperly setup plugins/configs, etc etc. I cannot support or give answers to every possible thing that can go wrong, nor will I try.

    I will continue to do my best to keep this public for all, but on my time.

    I am working on a 1.5 update version, which will introduce a lot of fixes, though I will not release it until 1.5 and bukkit are stable, that may take a day or 3.

    And please, do not come on my server just to try to solve your problem, please post here. Anyone is welcome to come on my server to see it in action, and check us out, but it is not a support system. I do check this forum atleast once a day (generally more), and if I do not end up answering you it is probably because the answer was posted somewhere in the 30 pages of posts, and I am not going to keep repeating myself.
     

Share This Page