[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

    Hpiz

    ShopAds - The Ad Agency Plugin

    NEW HOMEPAGE OF THIS PLUGIN - ALL FUTURE RELEASES WILL BE HERE

    Version: 1.72

    Purpose:
    To allow players to advertise to other players.

    Description:

    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.

    Features:
    • MULTI-WORLD
    • MULTI-ADS
    • 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. Offline

    Hpiz

    1.5 released with many many more features, multi-world and multi-ad support is here.
     
  3. Great update, thanks!!
     
  4. Getting this on /reload now:

    Code:
    2011-06-03 09:13:58 [SEVERE] Error occurred while enabling ShopAds v1.5 (Is it up to date?): null
    java.lang.NullPointerException
            at org.hpiz.ShopAds.ShopAds.reload(ShopAds.java:218)
            at org.hpiz.ShopAds.ShopAds.onEnable(ShopAds.java:162)
            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:134)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  5. Offline

    Hpiz

    As always thanks for notifying me on this error, it was a minor one that causes no harm and has been fixed, uploaded v1.51
     
  6. Caught a new one ;)

    Code:
    11:31:56 [INFO] [ShopAds] gatoraderob has expired
    11:31:56 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 1
    11:31:56 [SEVERE]       at org.hpiz.ShopAds.ShopAds.timeUpdater(ShopAds.java:1148)
    11:31:56 [SEVERE]       at org.hpiz.ShopAds.timerThread.run(timerThread.java:50)
    11:31:56 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    11:31:56 [SEVERE]       at java.lang.Thread.run(Thread.java:722)
     
  7. Offline

    Hpiz

    1.55 released with more functionality and bug fixes such as this one
     
  8. Offline

    Meteo

    Essentials with this would be boss :]...
     
  9. Offline

    Hpiz

    Hey I don't use Essentials economy so it's untested, but I have released 1.56 that I feel should work with it, let me know of any problems if you run into any
     
  10. Offline

    NEO

    @Hpiz

    Would it be possible to add a config option to put the user back to where they teleported from after a certain amount of time? This kind of ruins other transportation methods if you can freely warp to wherever an ad is made.
     
  11. Trace:

    Code:
    13:26:43 [INFO] [ShopAds] g has expired
    13:26:43 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ad' in plugin ShopAds v1.55
            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:294)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:714)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:680)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:673)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:431)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
            at org.hpiz.ShopAds.ShopAds.deleteShop(ShopAds.java:918)
            at org.hpiz.ShopAds.ShopAds.onCommand(ShopAds.java:711)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  12. Not seen above trace again.

    But have a request: iConomy support to charge currency for the /shops port.
     
  13. Offline

    GmK

    As an interim solution, use CommandIConomy and set /shops to use money.
     
  14. I really find you in every thread I post haha.

    We use that, obviously it also charges on checking /shops for the list, far from ideal ;)
     
  15. Offline

    GmK

    Ah damn - wasnt CommandIConomy able to do Regex? That it only charges if you use /shops <xy> instead of the pure /shops ?
     
  16. Yea not had time to really look into the non-basic stuff :D
     
  17. Offline

    fatmarley

    I sure do miss this plugin...
     
  18. Offline

    superbomb17

    Nice plugin! deserves more views!
     
  19. Offline

    cameron rees

    /shops (name) is having internal error... just downloaded... how is this fixable?
    Server log wants me to change the command execute but the last thing i want to do is screw with the .class'... can you help a bit?
     
  20. Ah seem to be getting an issue where this is only showing the first ad made, all others are not sequencing. Bukkit 1000.
     
  21. Error:

    Code:
    20:14:50 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ad' in plugin ShopAds v1.55
            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:320)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            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:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
            at org.hpiz.ShopAds.ShopAds.deleteShop(ShopAds.java:918)
            at org.hpiz.ShopAds.ShopAds.onCommand(ShopAds.java:711)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  22. Offline

    Juze

    @Hpiz : #818 inactive.
     
  23. Offline

    Hpiz

    I apologize for my absence, I started a new job and have not had time to maintain the plugin, I left it in an unusable state so I am going to be updating it this weekend, starting right now.
     
  24. Offline

    Hpiz

    I have released a repaired version of my plugin for build 1000. It has not been thoroughly tested, aside from checking addition, order, and deletion of ads. I will be awaiting feedback over the next few days and will immediately attempt to fix any issues that arise
     
  25. Offline

    fatmarley

    Could you add a charge for cross world teleporting with shop ads
    As well as, a possible option at the time of creation to select homeworld or multiworld and have a configurable multiplier?

    By the way, will install and test your plugin today...
     
  26. Offline

    Hpiz

    I have been implementing pay-per-tp and pay-across-worlds, nearly done on those, I will have to see about making it possible to select world that can tp to each shop but file formats will most likely have to change and if I can't find a clean way to do it this feature might not get implemented
    This is a great idea and I will try to work out a solution within my code.

    I will be working on the next update Today-Sunday, one or more updates may be released, more info to come.
     
  27. Offline

    NEO

    @Hpiz

    Awesome, glad to see you back :)
     
  28. Offline

    Hpiz

    Version 1.65 released, didn't get around to the tp timeout due to major changes/additions required, sorry missing my deadline.
     
  29. Sweet update, thanks!

    Not entirely sure, but tpCostDest=shop, means to shop owner, or the iConomy account "shop"?

    The iConomy charging is not working for us, the plugin says it charges, but the money is still there.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  30. A new issue:

    Code:
    13:44:49 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shops' in plugin ShopAds v1.65
            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.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
    *v
    ^
            at java.util.regex.Pattern.error(Pattern.java:1924)
            at java.util.regex.Pattern.sequence(Pattern.java:2090)
            at java.util.regex.Pattern.expr(Pattern.java:1964)
            at java.util.regex.Pattern.compile(Pattern.java:1665)
            at java.util.regex.Pattern.<init>(Pattern.java:1337)
            at java.util.regex.Pattern.compile(Pattern.java:1022)
            at java.util.regex.Pattern.matches(Pattern.java:1128)
            at java.lang.String.matches(String.java:2111)
            at org.hpiz.ShopAds.ShopAds.shopExists(ShopAds.java:1295)
            at org.hpiz.ShopAds.ShopAds.teleport(ShopAds.java:1221)
            at org.hpiz.ShopAds.ShopAds.onCommand(ShopAds.java:609)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Obviously I have no tabs in my config:
    Code:
    maxShops=1
    announceInterval=300
    cost=25
    maxAdRunTime=24
    random=true
    sendToAll=true
    tpCost=50
    tpCostDest=shop
    tpCostTransWorld=50
    
    So I presume something goes wrong writing a player's shop YML?
     
  31. Offline

    Hpiz

    That's not good, getting right on it. And for tpCostDest; shop sends the money to the shops owner while server consumes the money giving it to no one.

    Edit: Noticed a bug in the shops list as well, fixed that currently working on the iconomy fix, not sure how I can reproduce your error, it occurred on a line that checks if there are any shops currently active, did you have any shops made at the time of that error?
     

Share This Page