[TP/CHAT/ECON] ShopAds v1.73 - Let shop-owners advertise to players [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Hpiz, May 11, 2011.

  1. Offline


    ShopAds - The Ad Agency Plugin


    Version: 1.72

    To allow players to advertise to other players.


    A full featured Advertising/Teleportation Plugin.

    Users are allowed to create advertisement messages to broadcast allowing other players to teleport to the stores of the advertisement.

    • Users with permission may send a message to the public
    • TP players to shops advertising with /shop.
    • Re-settable shop locations
    • Announcement radius
    • Flat-File ads system (Simple for you, and me)
    • When message is created, ShopAds records the position and can tp players there
    • All users may turn on or off, whether they receive the ads (Depending on 'sendToAll')
    • Refund for early termination (Soon to be Configurable [percentage returned])
    • Charges per hour of advertising (Configurable)
    • Multiple Shops per player (Configurable)
    • Max Ad run time (Configurable)
    • Sends ads on a fixed interval (Configurable)
    • Random or sequential order (Configurable)
    • Charge for tp and Inter-World tp (Configurable)
    • Choose whether to consume the money gathered or give to shop owner
    • And More
    Requires - Register, and economy plugin, and a permissions plugin

    Plugin Written By: Hpiz
    Special Thanks to Joy for the initial debugging
  2. Well yea, active plugin, so it was being used :p
  3. Offline


    Well I messed around a bit with the shopExists method so hopefully that error won't occur. iConomy had changed some of it api which is what cause all money functions to fail. 1.66 is done with fixes on deletion refund, tpcharge, cross world charge, shops list, and transworld functions.
  4. The currency now correctly is removed from teleporter, yet with mode set to "shop", I tested with an offline shop owner, he did not receive the currency.

    There's some bug in play here for sure:

    It somehow charged 75 + 125.


    So that should have charged 75 or 125, not both.

    Also still seeing this:

    16:55:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin DynamicMarket v0.6.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java: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:456)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
            at com.gmail.haloinverse.DynamicMarket.ItemClump.<init>(ItemClump.java:60)
            at com.gmail.haloinverse.DynamicMarket.iListen.shopShowItemInfo(iListen.java:438)
            at com.gmail.haloinverse.DynamicMarket.iListen.parseCommand(iListen.java:886)
            at com.gmail.haloinverse.DynamicMarket.DynamicMarket.onCommand(DynamicMarket.java:185)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  5. Offline


    at com.gmail.haloinverse.DynamicMarket.ItemClump.<init>(ItemClump.java:60),
    looks like an issue with the plugin DynamicMarket, also the command sent was shop not my plugins command shops, you should let the author of DynamicMarket know about this.

    As for the double charging I'll take a look and fix it today, it might be only charging the right one but sending both messages to the player.
  6. Ah sorry, that trace was another plugin :p

    The double port issue is clear now.

    Porting from same world as shop = charges 75.
    Porting from another world as shop = charges 2x75.
  7. Offline


    was this on 1.67 because I couldn't replicate the error. And I want to extend my gratitude to your patience and help with the debugging, I really hate releasing glitched versions, but to test every function of this plugin is difficult by myself with no one to help, such as payments to other players and such. And I hope you noticed my recognition of your amazing help in my O.P.
  8. Was still on 1.66, think that was latest at that point :p

    1.67 is working great and correctly so far, thanks!
  9. Offline


    just me or do the ads delete after a server restart?
  10. Offline


    Would it be possible to have the default for receiving ads or not a configurable option? So to have /ad on by default instead of /ad off? Thanks!
  11. Offline


    I noticed it happen a couple times but not every time, will have to delve deeper.

    Will add that to the next version for MC1.8
  12. Offline


    I am currently rewriting the entire plugin to be more object-oriented for ease of expandabillity, also working on tpTimeout. Expect a new version this weekend, maybe sooner. BTW I've transferred this project to dev.bukkit.org so please click the link in the description for future releases.
  13. Offline


    this really is excellent! thanks!
  14. Offline


    2011-09-25 01:24:52 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ad' in plugin ShopAds v1.67
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at org.hpiz.ShopAds.ShopAds.chargePlayer(ShopAds.java:805)
    at org.hpiz.ShopAds.ShopAds.writeShops(ShopAds.java:1016)
    at org.hpiz.ShopAds.ShopAds.onCommand(ShopAds.java:536)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    Getting this?? And a A internal error...
  15. Offline


    @Hpiz hey been patiently waiting, but no update yet!!! Please i love this plugin!!!
  16. Offline


    Sorry everyone for a long time before an update, life has caught up to me. I started this plugin when I had no job and wasn't going to school... now I do both. It's been really hard to find time to work on it.

    Now that that has been said, some good news. I have been working on it, despite what some of you might think. More functionality has been added. The only thing preventing a release right now is the complete re-organization of the plugin. Once its all in separate classes and runs without error I will release to the public. Sorry for the wait.
  17. Offline

    Ross Gosling


    Will a disable tp option be added in the config at any point?
  18. Offline


    Well it's been too long coming, but I have finally managed to release an update to this plugin. There is a bunch of new functionality. To name a few new features I have added, option to advertise across worlds or not, configurable ad broadcast distance, an option to toggle tp, fixes for various features that were already included... and a few others that I can't remember off the top of my head. The one thing not included that I wish I could have figured out is a tp timeout which would return the player to where they were before teleporting to the ad. Another feature I hope to add to future releases, is spout implementation, though I have no idea how to do this, and if anyone would like to help, please let me know, this is a one man operation since May 2011

    1.7 download on BukkitDev
  19. Offline


    This comes out:

    [SEVERE] Could not load 'plugins/ShopAds.jar' in folder 'plugins': Spout
    org.bukkit.plugin.UnknownDependencyException: Spout
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:139)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:104)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Do you know whats wrong?

Share This Page