在线时长奖励🔗
在线时长奖励(Playtime rewards)是一个系统,当玩家在服务器上累计达到特定游戏时长时,你可以执行命令。
你可以每 X 秒执行一次命令,或者总共执行 X 秒。因此,你可以为每 1 小时的游戏时长定期发放奖励,并为总共 6 小时甚至 24 小时给予更大的奖励。
默认命令 /cmi prewards 的别名默认启用,其 /prewards 会显示一个在线时长奖励列表,你可以在其中查看即将获得的奖励并领取一些奖励。
默认示例:
hourly1:
DisplayName: "&7Hourly reward"
AutoClaim: true
Description:
- "&2Get reward for every hour you are online"
- "&2Free heal and 20 bucks into your pocket"
PayEvery: 3600
Commands:
- asConsole! cmi heal [playerName] -s
- asConsole! cmi money give [playerName] 20
daily1:
DisplayName: "&7Daily reward"
AutoClaim: true
Description:
- "&2Get reward for every 24 hours of playtime"
- "&22000 bucks into your pocket!"
PayEvery: 86400
Commands:
- asConsole! cmi money give [playerName] 2000
1hour:
DisplayName: "&fOne hour reward"
AutoClaim: false
Description:
- "&2Get reward for 1 hour you have been online"
- "&2500 bucks into your pocket!"
PayFor: 3600
Commands:
- asConsole! cmi money give [playerName] 500
6hour:
DisplayName: "&f6 hour reward"
AutoClaim: false
Description:
- "&2Get reward for 6 hour's you have been online"
- "&22 000 bucks into your pocket!"
PayFor: 21600
Commands:
- asConsole! cmi money give [playerName] 2000
12hour:
DisplayName: "&f12 hour reward"
AutoClaim: false
Description:
- "&2Get reward for 12 hour's you have been online"
- "&25 000 bucks into your pocket!"
PayFor: 43200
Commands:
- asConsole! cmi money give [playerName] 5000
24hour:
DisplayName: "&f24 hour reward"
AutoClaim: false
Description:
- "&2Get reward for 24 hour's you have been online"
- "&215 000 bucks into your pocket!"
PayFor: 86400
Commands:
- asConsole! cmi money give [playerName] 15000
7days:
DisplayName: "&f7 day reward"
AutoClaim: false
Description:
- "&2Get reward for 7 days you have been online"
- "&250 000 bucks into your pocket!"
PayFor: 604800
Commands:
- asConsole! cmi money give [playerName] 50000
30days:
DisplayName: "&f30 day reward"
AutoClaim: false
Description:
- "&2Get reward for 30 days you have been online"
- "&2500 000 bucks into your pocket!"
PayFor: 2592000
Commands:
- asConsole! cmi money give [playerName] 500000
在上述示例中,"hourly1" 是该在线时长奖励(以下称为 PTR)的唯一标识。你可以随意设置,但每个 PTR 都必须不同。避免使用扩展字符、空格或下划线。保持简短简单作为唯一标识。
- DisplayName – 将定义在奖励列表中显示的名称。你可以使用颜色代码让自己与众不同。可以是任何你想要的内容。
- AutoClaim – 这将定义当玩家达到目标时奖励是自动发放给他,还是需要手动领取。如果是手动领取,玩家会每隔 X 分钟收到一次提醒(可在配置文件中设置),提示有等待领取的奖励。要看到这些消息,他需要拥有 cmi.prewards.notification 权限节点。
- Description – 将定义该奖励的描述,当悬停在奖励列表上时会显示。你可以添加任意多行,并在需要时使用颜色代码。
- PayFor – 将定义发放奖励的时间(秒)。这特别地只会在玩家累计达到特定总游戏时长时发放一次。
- PayEvery – 是重复奖励,每隔在服务器上玩 X 秒发放一次。
- StackRewards – 真或假。如果未提供,默认为真。定义你是否想堆叠奖励,并允许玩家在堆叠时一次获得多个奖励。
- Commands – 领取奖励时要执行的命令列表。支持专用命令。
命令、权限与占位符 (Commands, Permissions, and Placeholders)🔗
命令:
> cmi checkcommand reward
--------------------------------------------------
/cmi prewards (playerName)
>
权限:
> cmi checkperm reward
--------------------------------------------------
cmi.command.prewards.others.claim - Allows to claim rewards for others
cmi.command.prewards - Check playtime rewards
cmi.command.prewards.others - Check playtime rewards
cmi.prewards.[preward] - Allows to get particular playtime reward
cmi.prewards.notification - Allows to see playtime rewards notifications
>
占位符:
(内容由AI生成,仅供参考)