[INACTIVE][ECON] DMWrapper v0.14 - a DynamicMarket wrapper adding locations [617]

Discussion in 'Inactive/Unsupported Plugins' started by Magik, Feb 18, 2011.

  1. Offline

    Magik

    DMWrapper v0.14

    Links
    DMWrapper.jar (GitHub Source)
    DynamicMarket.jar ( 0.4.8.magik.28 ) (GitHub Source)
    DynamicMarket Thread ( slightly outdated, I forked it and have been maintaining my own version )

    Plugin Requirements
    • DMWrapper 0.14 was tested against Craftbukkit build #677
    • DynamicMarket ( 0.4.8.magik.28 - Shaniqua )
    • Permissions 2.7
    • iConomy 4.6.3 ( this is what DynamicMarket was compiled against )
    Intro
    I wanted DynamicMarket to be able to be locked down so that it wasn't a "global" shop command. This plugin enables that functionality by adding some /shop location commands. Basically you get to set up some locations in the world as shops, and you can restrict usage of the /shop to only those places. The plugin utilizes DynamicMarket's wrapper mode allowing me to pass commands as necessary to DynamicMarket. This plugin is just restricting location manager addon for DynamicMarket.

    HaloInverse's plugin thread can be found here: http://forums.bukkit.org/threads/econ-dynamicmarket-v-0-4-3-dynamic-price-shop-plugin-343.3266/


    Note: this has been barely tested, use at your own risk. And please for god's sake back things up before you try this! Any suggestions/comments are welcome, please post in this thread ( or an issue on github's issue tracker ).

    And thanks a ton HaloInverse for the great plugin that is DynamicMarket!

    Commands and Usage (open)
    Commands and Usage
    • /shop location - prints out the Usage for the location commands
    • /shop location enable - enables location-restricted shops
    • /shop location disable - disables location-restricted shops - DynamicMarket will work like normal here with a global /shop command
    • /shop location set - begins the shop location selection process - this will ask you to right click 2 corners to set the boundary box
    • /shop location cancel - cancels the shop setting process
    • /shop location remove <ID> - removes the shop location with id ID
    • /shop location check - tells you the shop location ID that you are currently in ( for deleting )
    • /shop location list - lists all the IDs of the shop locations
    • /shop location tp <ID> - teleports to the shop ID location
    Permissions (open)
    Permission Nodes:


    dmwrapper.location - allows usage of the /shop location command
    dmwrapper.admin - locations will not apply to a group with this node
    Installation Instructions (open)
    Installation Instructions:
    • Ensure you have DynamicMarket already installed and working ( with my latest compiled version here )
    • Add the permissions node to whomever you would like to be able to access the "/shop location" commands
    • Download the .jar - put it in the plugins directory
    • Once in-game ( with the location permission node ):
      • /shop location enable
      • /shop location set
    Changelog (open)
    Changelog:
    • 0.13
      • recompiled against CB#617 for Minecraft 1.4
    • 0.12
      • CB #602 update, as well as permissions/iConomy for that RB
    • 0.10
    • 0.09
      • added better integration into /shop help
    • 0.08
      • fixed command collisions with DynamicMarket ( also fixed in DynamicMarket 0.4.8.magik.18 )
    • 0.07
      • added debug-mode to config
    • 0.06
      • better player tracking for entering/leaving messages
    • 0.05
      • better world tracking
    • 0.04
      • fixed embarrassing stupid command error
      • fixed /shop location being ignored when locations disabled in shop.yml
    • 0.03
      • Updated to support newer DynamicMarket ( 0.4.8.magik.15 )
      • Craftbukkit Build #522
    • 0.02
      • minor command related bug fixes
      • tweaked intercept command code
    • 0.01
      • Initial Release
      • Added basic location based functionality to DynamicMarket
    To-do (open)
    To-do
    • Add custom/configurable messages for everything
    • Color up the current messages
    • Find a way to show the location command when passing /shop help to DynamicMarket
    • Add ability to pass administrative commands ( list/add/remove/etc... ) and ignore locations for those
    • Add ability to pass all commands if admin permissions?
    • Better handling of worlds ( currently I am assuming one world, and thus, this will probably break if you someone tries some sneaky things like setting one corner of a shop in one world, and another corner in another world ).
    • Fix getCenterOfShop() function to return calculated center instead of returning one of the set corners
    • Remove hard-coded plugin name/version/paths
     
  2. Offline

    Hunt800

    @Magik : Still there?

    Is this working in 1.5? I can use /shop and /shop help but whenever I try anything that would access the actual db (/shop buy, /shop list, etc) I get a big error message.

    Could it be that I'm testing the plugin with a test server (same computer, same config (including mysql settings), different port) and the plugin doesn't like to grab info from the database while the default server is using it? :/ I just want to upgrade all ready.
     
  3. Offline

    Revenger

    Yes it does work on Minecraft 1.5.

    On iConomy v5 this is now broken.

    Wrapper works by market doesn't

    Code:
    23:43:42 [SEVERE] com/nijiko/coelho/iConomy/iConomy loading DynamicMarket vv0.4.8.magik.29 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.gmail.haloinverse.DynamicMarket.DynamicMarket.onEnable(DynamicMarket.java:113)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
            at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
            ... 14 more
    
     
  4. Offline

    Hunt800

    It doesn't work on 1.5 ... >.<
     
  5. Offline

    Magik

    works for me fine so far on 1.5 - i've never had any issues with it on 617 670 or 740

    can u elaborate more as to how it does not work - an error message perhaps...

    also - you can't use a remote mysql server unless you've setup your mysql to allow remote access.... so judging from the limited amount of information you have provided, I would guess it is something related to that
     
  6. Offline

    Plague

    considered inactive
     
  7. Offline

    Hunt800

    I get this error: http://pastebin.com/KpEqubYU
    I don't get it when using /shop or /shop help, but I get it whenever I try to use a command that would access what is in the shop.
     
  8. Offline

    Crimsonfox

    Is this working for IConomy 5? I can't test it right now as I'm going to work but someone might now. =)
     
  9. Offline

    Oscarius

    Nope

    @Magik , DynamicMarket needs to be updated to support iConomy 5.
     
  10. Offline

    N3X15

  11. Offline

    Revenger

    How is the pricing done?

    I have a webpage and want to put the current prices on it.

    Had someone that knows mysql and php code take a look they cant exactly work it out.

    I know basic stuff where I can pull from a database but the pricing on out site would just be great.
     
  12. Offline

    Crimsonfox

    Cheers! I'll definitely try installing it later to see if it works okay. =)

    It works fine but the Wrapper isn't working, was it meant to with your fix or only the shop?

    EDIT: Stupid me, I could cause I'm an admin, don't worry, works fine for everyone else.

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

    Fluff

  14. Offline

    N3X15

    lolno
     
  15. Offline

    Joy

    I can't get the wrapper to work with N3X15
    Any chance you could update the wrapper to work with your fork + mysql?

    Get this error: http://pastie.org/1892329
     
  16. Offline

    Avatharian

    Much thanks to N3X15 for updating Dynamic market. It works great with iconomy5, although it had a minor error when selling materials that caused the amount they were sold for to appear twice. I managed to figure out how to fix it and recompile it, it can be downloaded here: http://dl.dropbox.com/u/28637251/DynamicMarket.jar
     
  17. Offline

    VoLLi

    Looks more like you have the wrong mysql settings for DynamicMarket.
     
  18. Offline

    Joy

    Then why does said market work flawlessly? <_<
     
  19. Offline

    Phanku

    10:29:41 [INFO] [DynamicMarket] hooked into iConomy.
    10:29:41 [INFO] CommandBook 1.5.1 enabled.
    10:29:41 [INFO] CommandBook: 0 banned name(s) loaded.
    10:29:41 [INFO] CommandBook: 1 kit(s) loaded.
    10:29:41 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    10:29:41 [INFO] [DynamicMarket] hooked into iConomy.
    10:29:41 [INFO] BorderGuard version 3.1 is enabled!
    10:29:41 [INFO] [DynamicMarket] hooked into iConomy.
    10:29:41 [INFO] [StealthLogin] version 1.1.0 Permissions detected...
    10:29:41 [INFO] [StealthLogin] version 1.1.0 enabled!
    10:29:41 [INFO] [DynamicMarket] hooked into iConomy.
    10:29:41 [INFO] DB Queue runner started
    10:29:42 [INFO] [uQuest] Loaded with SQLite!
    10:29:42 [INFO] [uQuest] v1.5 enabled! With 60 quests loaded!
    10:29:42 [INFO] [DynamicMarket] hooked into iConomy.
    10:29:42 [INFO] Stargate v.0.4.8 is enabled.
    10:29:42 [INFO] [Stargate] Loaded 1 gate layouts
    10:29:42 [INFO] [Stargate] {world} Loaded 0 stargates with 0 set as always-on
    10:29:42 [INFO] [Stargate] Found Permissions (v2.7.3)
    10:29:42 [INFO] [DynamicMarket] hooked into iConomy.

    It seems to be hooking into iConomy multiple times.. or its just reporting it when ever a plugin is enabled.
    I'll look at the code tonight if no one else has addressed this.
     
  20. Offline

    Revenger

    Seems with dmwrapper anything apart from the world in server.properties brings up a error on load.

    We need it to be on a second world as out main one is just a hub :/

    Code:
    2011-05-27 01:58:33 [SEVERE] Error occurred while enabling DMWrapper vv0.14 (Is it up to date?): null
    java.lang.NullPointerException
        at me.slaps.DMWrapper.ShopLocation.computeNewBlock(ShopLocation.java:91)
        at me.slaps.DMWrapper.ShopLocation.<init>(ShopLocation.java:27)
        at me.slaps.DMWrapper.LocationManager.loadConfigFile(LocationManager.java:73)
        at me.slaps.DMWrapper.LocationManager.<init>(LocationManager.java:45)
        at me.slaps.DMWrapper.DMWrapper.onEnable(DMWrapper.java:71)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:132)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:110)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  21. Offline

    Juze

    Is anyone going to update this to iConomy 6 sometime? I'm still staying on iConomy 5 for a long while, but just in preparation...
     

Share This Page