Skip to content

nofishleft/ShopAds

Repository files navigation

ShopAds

In any economy, advertising is a wonderful tool to get things moving, now you can get it in your servers economy, without all the spammy messing!

Shop Ads lets your players pay in-game to have the server broadcast an ad for their shop or business. Optionally you can then have others warp to that shop, check it out and be popped back where they were before once they have had a good look.

Players pay depending on how many hours they want their ad to run for and Shop Ads handles all warps and costs.


Contents


Configuration

Option Default Type Description
shopsPerPlayer 1 Int Maximum number of ads allowed to each player.
adCost 20 Double/Currency Cost per hour of advertising.
maxAdRunTime 24 Int/Hours Longest time an ad can run for.
announceRadius 0 Int/Blocks Distance in blocks that an advertisement will be heard (0 for unlimited)
announceInterval 240 Int/Seconds Time in seconds between ad announcements.
sendToAll true Bool (true/false) Whether to send to all players, disregarding their choice.
randomOrder false Bool (true/false) Should the ads be in a random order.
adsOverWorlds true Bool (true/false) Whether ads are broadcasted over to other worlds.
enableTp true Bool (true/false) Allows or denies the tp of players to ad locations.
tpTimeout 60 Int/Seconds Time in seconds until player will be returned to previous location (0 to disable).
tpCost 0 Double/Currency Price to charge to teleport (0 for free).
transWorldAddition 0 Double/Currency Additional fee to tp to a shop in a different world (0 to disable).
tpCostDestination shop String (shop/server) Who receives the money from tp's.
setLocationCost 0 Double/Currency Cost to change the location of a shop.
setWorldCost 0 Double/Currency Cost to add a world to advertise a shop in.
setShopColorCost 0 Double/Currency Cost to change the display color of the shop label.
setAdColorCost 0 Double/Currency Cost to change the color of the ad.
setNameCost 0 Double/Currency Cost to change a shops name.
setAdCost 0 Double/Currency Cost to change an ad message of a shop.
labelColor Gold String/Color Color of both the label of ShopAds messages and shop messages.
messageColor Gray String/Color Color of both the ShopAds messages and shop messages.
defaultShopColor Gold String/Color Default shop label color.
defaultAdColor Gray String/Color Default ad message color.

Color Name Minecraft Color Code
Black §0
Dark Blue §1
Dark Green §2
Teal §3
Dark Red §4
Purple §5
Gold §6
Gray §7
Dark Gray §8
Blue §9
Bright Green §a
Aqua §b
Red §c
Light Purple §d
Yellow §e
White §f

Commands

Usage Description Permission
/ads create|c Creates a new ad shopads.create
/ads set loc Modify the location of an ad shopads.set.self | shopads.set.other
/ads set <name|ad> Modify the name/message of an ad shopads.set.self | shopads.set.other
/ads delete|del Delete an ad/shop shopads.delete.self | shopads.delete.other
/ads stats|stat [player] View stats for a player's ads shopads.stats.self | shopads.stats.other
/ads rates List current hourly ad cost shopads.commands.ads
/ads list List all ads shopads.commands.ads
/ads config List config options shopads.config
/ads config Set a config option shopads.config
/ads reload|rel Reload the plugin shopads.reload
/ads disable Disable the plugin shopads.disable
/shops List all shops shopads.commands.shops
/shops Teleport to a shop shopads.commands.shops

Permissions

Permission Description Children Default
shopads.* All permissions shopads.user
shopads.admin
shopads.user User permissions shopads.commands.ads
shopads.commands.shops
shopads.create
shopads.delete.self
shopads.stats.self
shopads.set.self
true
shopads.admin Admin permissions shopads.time.unlimited
shopads.count.unlimited
shopads.delete.other
shopads.stats.other
shopads.set.other
shopads.reload
shopads.config
shopads.disable
op
shopads.commands.ads Allows use of /ads
shopads.commands.shops Allows use of /shops
shopads.create Creation of shop ads
shopads.delete.self Deletion of YOUR ads
shopads.delete.other Deletion of OTHERS ads
shopads.stats.self Viewing YOUR stats
shopads.stats.other Viewing OTHERS stats
shopads.set.self Modifying YOUR ads
shopads.set.other Modifying OTHERS ads
shopads.time.unlimited Unlimited run time on YOUR ads
shopads.count.unlimited Unlimited ads
shopads.reload Reloads this plugin
shopads.config Configures this plugin
shopads.disable Disables this plugin

Authors


Rishaan Gupta

Maintainer

Hpiz

Former Author

License

TO DO


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages