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?
is this good for 1.2
Are the hours real life hours or in minecraft hours?
@fatmarleys
Yes, but before you do try to delete the shopads directory and let it be regenerated. Could be a conflict with file versions.
v0.72 was spitting out errors on load...need a pastie?
It's in hibernation right now, seeing as there don't seem to be many issues with its current functionality, I can concentrate on my school work and job, and go snowboarding on the weekends. I don't get a lot of free time, but seeing as I am taking a java class at college I can work on it in class, and have been. I expect another update uploaded tonight if I can, since I have the java class. If not, within a week.
Edit: Sorry fellas, lost my updated project folder so got set back a bit. Hopefully an update by the time bukkit reaches recommended build for 1.2
I really support this plugin, please dont let it die :/ :)
@hpiz
Yeah, I spotted it a little while ago. Seems to be working much better thanks :)
@Zombiemold
I never uploaded it to the this site. The link at the top of the description is the latest version
I'm getting a message there is a new version. Is it going to be available here?
Came here to say that. Same problem right now I have -7.38 hours over-expired advertisement.
Ads don't seem to ever expire. Users are reporting their ads are just going into the negative (-15 hours)
No Errors.
RB Bukkit. ShopAds2 0.68
[SEVERE] Could not load 'plugins/ShopAds.jar' in folder 'plugins': Register ...... 10 other lines ... doesn't even create folder shopads in plugins folder, any solutions for my problem? Thanks
EDIT: nvm, downloaded the latest beta version and it's working. Great job! :-)
DAMN! yo hp its nahtan2001 how the hell did you make this and nice job this boss and congrats on your server!
@Zombiemold
I will have to think about how I want to do 1. 2 is fixed for now. I made it extend the time until it returns you to where you first teleported from. I will add a config option to switch between that and having tp disabled when at a shop already. 3 please, I need console logs at the very least, adding debug=true to your config would help even more. 4 I just implemented the framework for the customization of each shops colors, will be fully implemented when the assortment of set commands are ironed out.
Love the new version :D I am keeping a close eye on this plugin. It's amazing, and deserves to be on the top, and heavily used. Some suggestions and bug reports for you, in order of importance.
1) Teleports for shops, should at the very least have a warm-up time (a configurable time before the warp takes place, which is interrupted via damage). This will prevent PvP warping, or escaping from sure death. Without this, it will be easily exploitable, especially on PvP servers (has been happening on my server, almost immediately). In a perfect world, you might have warp cooldowns, or even optionally hook into "Essentials" warps (Plugins like Towny do this), which would be absolutely amazing.
2) Warping to a shop, while in a shop, will cause you to be teleported back to your original location, then ported back to the shop. This of course allows people to use ShopAds as a taxi service. Possibly restricting users for using shop warps, while browsing a shop, might fix it. (I love this new function btw, it greatly balances other warps for the server)
3) I am getting lots of internal server errors while using it. Functionality seems to be working, but the errors are confusing some players.
5) Coloration in ads (User chosen) would be pretty neato.
Keep up the good work. I was excited to see the release :) Our server desperately needs this to make the shop economy be viable.
@convictedsaint
Probably when shops expire or are deleted and leave no more shops in memory. Things like this are the reason I am rewriting the plugin, it was very confusing data flow when I first made it.
I get these errors from time to time:
02:17 AM [SEVERE] java.lang.NullPointerException
02:17 AM [SEVERE] at org.hpiz.ShopAds.ShopAds.getNumberOfShops(ShopAds.java:1010)
02:17 AM [SEVERE] at org.hpiz.ShopAds.timerThread.run(timerThread.java:24)
02:17 AM [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
02:17 AM [SEVERE] at java.lang.Thread.run(Unknown Source)
Just released a pre-release bugged version for those who are interested
UPDATE:
I am now at about 70% ready for a preliminary release.
Once I get to 80% I will release a BUGGY and INCOMPLETE version with limited functionality. What it will include is the basic functions of the plugin. It will allow the creation of ads, setting of ads on or off per player, free teleportation to ads, the list command, and advertising broadcast. All other functions will be either incomplete or non-functional. This is so there is at least a working version of the core features of the plugin. It will have full permissions functionality and limited economy functionality.