ShopAds2
Description
New features coming
Version 2 Pre-Release
V0.83 has been released with an important update to task handling.
Download Here
ShopAds2 V0.83
- Fix for interfering with other plugins' scheduled tasks
- Moved version check to after startup
- Fix for a possible concurrent transaction error when updating shops
ShopAds2 V0.82
- Fix for teleporting after shops expire
ShopAds2 V0.81
- Fix for error on deleting shops
- Added aworld for adding a world to advertising (alias:aw)
- Added rworld for removing world from advertising (alias:rw)
- Fix for an error that can occur when creating a shop
- Minor bug fixes
ShopAds2 V0.80
- Addition of in-game config manipulation
- Fix for player save error on reload/shutdown
- Addition of configurable costs of changing shop settings
- Addition of shop settings
- Many many improvements and refinement
-NEW FEATURE - The plugin will now tell you when you log in if a new update is available.
Note: The new version requires Vault for complete compatibly.
Source is in the jar!
For those of you who love to help out, please add 'debug=true' to your config and leave feedback and error logs/reports in your ticket request.
Purpose
Have an economy plugin and use physical shop locations to do your servers trading? Tired of players complaining that these shops are too hard to find? ShopAds charges a creator an hourly rate for advertising a single line and a location to other players on the server. The other players can view all advertisements running and can tp to any of these (for a fee if set).
Of course, there are other uses for this plugin besides just advertising shops, Advertise any location!
The current version is 1.73 or the beta of ShopAds2
ShopAds2 Commands
/ad may be replaced with /ads at any time on any command
/ad c(reate) [shopname] [number of hours] [message...] - Advertisement Creation.
/ad c [shopname] [message] - Admins only - Neverending Advertisement.
[shopname] - This is what the tag for the message that others receive as well as the name to tp to.
[number of hours] - How long you want the ad to run.
[message] - Put the message you want other to see.
/ad set [shopname] [property] [value] - Changes shop settings.
Properties
- l(ocation)
- n(ame)
- ad(vetisement)
- w(orlds)
- shopcolor/sc
- adcolor/ac
Values
- NO VALUE
- eg:MyShop
- eg:This is my shop
- eg:Skyworld
- eg:blue
- eg:white
/ad del(ete) [shopname] - Deletes the specified shop if it exists for you.
/ad stats (player) - Lists all your ads and time left on them.
/ad rates - Shows the current rate for 1hr cycle.
/ad list - Lists all ads currently running.
/ad ? - Shows plugin help.
/ad - Shows plugin help.
/ad on - Turns receiving ads on per player.
/ad off - Denies incoming ads per player, this is the default when player is new.
/ad adel(ete) [shopname] - Deletes any ad for any player.
/ad reload - Reloads the ads and config.
/ad disable - Disables the plugin.
/shops - Display all current shops advertising
/shops -Lists all the shops that you can teleport to.
/shops [shopname] - Teleports to the shop requested.
Permission Nodes
- ShopAds.Creator : For access to all creator commands
- ShopAds.Creator.create : Allows creation of an ad
- ShopAds.Creator.set.self : Allows changing of advertisement setting on shops you own
- ShopAds.Creator.stats.self : Allows receiving statistical information on shops you own
- ShopAds.Creator.delete.own : Allows the deletion of shops you own
- ShopAds.Admin.set.other : Allows changing settings of advertisements owned by other players
- ShopAds.Admin.stats.other : Allows receiving statistical information on shops owned by other players
- ShopAds.Admin.delete.other : Allows the deletion of shops owned by other players
- ShopAds.Admin : For access to all commands
Default Config
'shopsPerPlayer' - The maximum number of ads allowed to each player
'announceInterval' - The time in seconds between ad announcements [number(secs)]
'randomOrder' - Should the ads be in a random order [true/false]
'adcost' - The cost per hour of advertising [number(currency)]
'maxAdRunTime' - The longest time you want an ad to run for [number(hours)]
'sendToAll' - Whether to send to all players, disregarding their choice [true/false]
'tpCost' - Price to charge the player to teleport (0 for free)[number(currency)]
'tpCostDestination' - The destination of the money that is collected from tp [shop/server]
'transWorldAddition' - How much more to charge when tp to a shop in a different world (0 to disable)([number(currency)]
'announceRadius' - The distance in blocks that an advertisement will be heard (0 for unlimited)[number(blocks)]
'adsOverWorlds' - Controls whether ads are broadcasted over to other worlds [true/false]
'enableTp' - Allows or denies the tp of players to ad locations [true/false]
'tpTimeout' - The time in seconds until returning player to previous location (0 to disable)[number(seconds)]
'labelColor' - The color of both the label of ShopAds messages and shop messages. [color]
'messageColor' - The color of both the ShopAds messages and shop messages. [color]
'setLocationCost' - The cost to change the location of a shop [number(currency)]
'setWorldCost' - The cost to add a world to advertise a shop in [number(currency)]
'setShopColorCost' - The cost to change the display color of the shop label [number(currency)]
'setAdColorCost' - The cost to change the color of the ad [number(currency)]
'setNameCost' - The cost to change a shops name [number(currency)]
'setAdCost' - The cost to change an ad message of a shop [number(currency)]
Color:
Black
Dark Blue
Dark Green
Teal
Dark Red
Purple
Gold
Gray
Dark Gray
Blue
Bright Green
Aqua
Red
Light Purple
Yellow
White
Shop settings
shopsPerPlayer=1
adCost=20
maxAdRunTime=24
Announcement settings
announceRadius=0
announceInterval=240
sendToAll=true
randomOrder=false
adsOverWorlds=true
Teleport settings
enableTp=true
tpTimeout=60
Economy settings
tpCost=0
transWorldAddition=0
tpCostDestination=shop
setLocationCost=0
setWorldCost=0
setShopColorCost=0
setAdColorCost=0
setNameCost=0
setAdCost=0
Coloring
labelColor=Gold
messageColor=Gray
defaultShopColor=Gold
defaultAdColor=Gray
Video Tutorial
Coming soon?
@hpiz
With the latest version, .83 im getting server lockups that happen directly after this is spammed in the console. http://pastebin.com/94DUabG5 Removing shop ads or reverting to a previous version fixes the problem.
.83 has fixed my thread issue. But this still spams 100 million times occasionally. http://pastebin.com/Q7YShBa1 :(
Having trouble deleteing... Its says i did but i can still tp to it. Funny thing is it said u fixed in 0.81.
Overall good plugin! Just keep fixing the bugs!
@Stylez84
fixed in update
@Streammy
That is a stupid place for that to happen, isn't it. I'll make that occur at a better time, I'm not sure if it causes an issue or not if the request fails, like a timeout of 30 seconds or some ridiculous bullcrap, but it is only checking a 4 character html document with the latest version number so I don't think that would cause much of a delay. Nonetheless, having this version check at start-up is naive, so it will be made to happen sometime after startup.
@KnightsOfTables
Probably becouse he makes the plugin connect to a website (version check) in the enable loop
This plugin has a ridiculously long load time, any reason for this?
Actually, while it worked on our test server it seems to simply not load on our prod server, anything you can think of that would cause that?
I'm getting this error in my console:
I just installed the plugin not long ago so I'm not sure how often I'm getting it or if it's a one-off thing.
Nothing, ever since the newest builds, everyone has been having an excellent ShopAds experience.
No errors, all the features work, it's great. Thanks for all your hard work.
@Zombiemold
Have there been any issues with 0.81?
I have to add that I have been running into a few issues.
Been getting quite a few errors with the new release, but it seems to be mostly functional, and passable for now.
Deleting an ad works, but throws an internal error.
No one can seem to modify their ad, it just doesn't work.
Sometimes, creating a shop throws an error, and still works. Other times it might throw an error, and not work. Seems to be related to Syntax, it I have found using capitals and punctuation can cause it to fail, but this might be random, you would know what is going on here.
http://pastebin.com/0Z6YQbFV
http://pastebin.com/h3KZJ6iw
http://pastebin.com/hs2svM4v
Yes! Glad to see this excellent plugin updated.
Thank you hpiz. Did you have a donation link somewhere?
@hpiz
Nice to see an update, i love this plugin. <3
I was able to get some work on it done last night. I am going to push tonight to try to get it ready for a final beta release. If there are any bugs other that the saving players one on shutdown/reload please LET ME KNOW, would hate to release a full version and have bugs that belong in beta
@fatmarleys
Delete your players.dat file in the ShopAds directory, there was a change for 1.1
Edit: This issue is confirmed and is not because of your setup/files, Working on it...
Please don't abandon this amazing plugin!
We miss it already!
Please add support for 1.2.4 :)
This is still being updated though?
@hpiz
here you go
http://pastie.org/3621833
@graywolf336
lol real hours
@Baffu
Haven't been running it very long on my own 1.2 server, but don't see any reasons why it wouldn't work on 1.2. Loads fine.