描述
即将推出的新功能
版本 2 预发布
V0.83 已发布,对任务处理进行了重要更新。
ShopAds2 V0.83
- 修复了干扰其他插件计划任务的问题
- 将版本检查移至启动后执行
- 修复了在更新商店时可能出现的并发事务错误
ShopAds2 V0.82
ShopAds2 V0.81
- 修复了删除商店时的错误
- 添加了 aworld 命令以将世界添加到广告中(别名:aw)
- 添加了 rworld 命令以从广告中移除世界(别名:rw)
- 修复了创建商店时可能发生的错误
- 轻微的错误修复
ShopAds2 V0.80
- 增加了游戏内配置操作功能
- 修复了重载/关机时玩家保存错误
- 增加了可配置的更改商店设置费用
- 增加了商店设置功能
- 大量改进和优化
-新增功能 -
现在,当您登录时,如果有任何新版本可用,插件会通知您。
注意:新版本 需要 Vault 才能实现完全兼容。
源代码包含在 jar 文件中!
对于那些喜欢帮助开发的朋友,请在您的配置中添加 'debug=true',并在工单请求中留下反馈、错误日志/报告。
用途
拥有经济插件并使用实体商店位置进行服务器交易?厌倦了玩家抱怨这些商店太难找了吗?ShopAds 向创作者收取每小时费率,以便在其他玩家面前宣传单个行文本和位置。其他玩家可以查看所有正在运行的广告,并可以传送至其中任意一个(如果设置了费用)。
当然,此插件除了用于商店广告外还有其他用途——您可以宣传任何地点!
当前版本为 1.73 或 ShopAds2 的测试版
ShopAds2 命令
/ad 可以在任何命令的任何时候替换为 /ads
/ad c(reate) [shopname] [number of hours] [message...] - 创建广告。
/ad c [shopname] [message] - 仅限管理员 - 无限期广告。
[shopname] - 这是其他人收到的消息标签,也是用于传送到该商店的名称。
[number of hours] - 您希望广告运行的时长。
[message] - 输入您希望其他人看到的消息。
/ad set [shopname] [property] [value] - 更改商店设置。
属性
- l(ocation)
- n(ame)
- ad(vetisement)
- w(orlds)
- shopcolor/sc
- adcolor/ac
值
- 无值
- 例如:MyShop
- 例如:This is my shop
- 例如:Skyworld
- 例如:blue
- 例如:white
/ad del(ete) [shopname] - 如果指定名称的商店存在且属于您,则将其删除。
/ad stats (player) - 列出您所有的广告及其剩余时间。
/ad rates - 显示当前 1 小时周期的费率。
/ad list - 列出当前正在运行的所有广告。
/ad ? - 显示插件帮助。
/ad - 显示插件帮助。
/ad on - 开启接收广告(针对每个玩家设置)。
/ad off - 拒绝接收传入的广告(针对每个玩家设置),这是新玩家的默认设置。
/ad adel(ete) [shopname] - 删除任何玩家的任何广告。
/ad reload - 重新加载广告和配置文件。
/ad disable - 禁用插件。
/shops - 显示所有当前正在做广告的商店
/shops - 列出您可以传送到的所有商店。
/shops [shopname] - 传送到请求的商店。
权限节点
- ShopAds.Creator : 用于访问所有创建者命令
- ShopAds.Creator.create : 允许创建广告
- ShopAds.Creator.set.self : 允许更改您拥有的商店的广告设置
- ShopAds.Creator.stats.self : 允许接收有关您拥有的商店的统计信息
- ShopAds.Creator.delete.own : 允许删除您拥有的商店
- ShopAds.Admin.set.other : 允许更改其他玩家拥有的广告的设置
- ShopAds.Admin.stats.other : 允许接收有关其他玩家拥有的商店的统计信息
- ShopAds.Admin.delete.other : 允许删除其他玩家拥有的商店
默认配置
'shopsPerPlayer' - 每个玩家允许的最大广告数量
'announceInterval' - 广告公告之间的时间间隔(秒数)[数字(秒)]
'randomOrder' - 广告是否应随机排序 [true/false]
'adcost' - 每小时广告的费用 [数字(货币)]
'maxAdRunTime' - 您希望广告运行的最长时间 [数字(小时)]
'sendToAll' - 是否无视玩家选择并向所有玩家发送 [true/false]
'tpCost' - 向玩家收取的传送价格(0 表示免费)[数字(货币)]
'tpCostDestination' - 从传送收集的资金去向 [商店/服务器]
'transWorldAddition' - 跨世界传送至商店时额外收取的费用(设为 0 可禁用)[数字(货币单位)]
'announceRadius' - 广告消息的传播距离,单位为方块(设为 0 表示无限制)[数字(方块数)]
'adsOverWorlds' - 控制是否将广告广播到其他世界 [true/false]
'enableTp' - 允许或禁止玩家传送至广告所示位置 [true/false]
'tpTimeout' - 玩家返回原位置前的等待时间,单位为秒(设为 0 可禁用)[数字(秒)]
'labelColor' - ShopAds 消息和商店消息中标签的颜色。[颜色]
'messageColor' - ShopAds 消息和商店消息中正文内容的颜色。[颜色]
'setLocationCost' - 更改商店位置的费用 [数字(货币单位)]
'setWorldCost' - 添加一个用于宣传商店的世界的费用 [数字(货币单位)]
'setShopColorCost' - 更改商店标签显示颜色的费用 [数字(货币单位)]
'setAdColorCost' - 更改广告颜色的费用 [数字(货币单位)]
'setNameCost' - 更改商店名称的费用 [数字(货币单位)]
'setAdCost' - 更改商店广告消息的费用 [数字(货币单位)]
颜色:
黑色
深蓝色
深绿色
青色
深红色
紫色
金色
灰色
深灰色
蓝色
亮绿色
浅青色
红色
淡紫色
黄色
白色
商店设置
shopsPerPlayer=1
adCost=20
maxAdRunTime=24
公告设置
announceRadius=0
announceInterval=240
sendToAll=true
randomOrder=false
adsOverWorlds=true
传送设置
enableTp=true
tpTimeout=60
经济设置
tpCost=0
transWorldAddition=0
tpCostDestination=shop
setLocationCost=0
setWorldCost=0
setShopColorCost=0
setAdColorCost=0
setNameCost=0
setAdCost=0
着色
labelColor=Gold
messageColor=Gray
defaultShopColor=Gold
defaultAdColor=Gray
视频教程
即将推出?
Description
New features coming
Version 2 Pre-Release
V0.83 has been released with an important update to task handling.
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?
评论 0
登录后参与评分
还没有评论,来抢沙发吧