这个插件可以让你在服务器中为 Twitch 订阅者或关注者发放专属奖励。你可以给他们设置称号/权限组,或执行命令,不过在使用前需要先完成一些配置。
8080 端口上启动一个 web server(可配置)Yourname Minecraft Subscriber synchttp://your-server-ip:8080client IDclient secretredirect-uri 改成你在 Twitch 中设置的那个 redirect URI/twitchsync"You have successfully received the Twitch subscription rewards."debug-mode# The channel name(s) to check for subscription/follows.
channel-names:
- required
# The client ID given by Twitch.
client-id: required
# The client secret given by Twitch. Remember not to tell anyone this!
client-secret: required
# Port to host the HTTP server on
server-port: 8080
# Redirect URI for Twitch authentication. This has to be set as the same as Twitch
redirect-uri: http://localhost:8080
# How many minutes it takes for twitch sync URLs to expire.
expiry-time: 10
# Note that these messages are sent by the web server and use HTML, not chat formatting.
messages:
subscription:
no-subscription-program: "The channel does not have a subscription program set up."
success: "You have successfully received the Twitch subscription rewards."
follow:
success: "You have successfully received the Twitch following rewards."
success-both: "You have received both the following and subscription rewards."
# If you have subscription or following rewards disabled you might want to change this
# to say "You are not following" or "You are not subscribed" to make it clear
# that it's only possible to get rewards for one thing
not-both: "You are neither subscribed or are following the channel."
already-done: "You have already redeemed subscription and/or follow rewards."
state-not-found: "This link has either expired, or already been used."
player-not-found: "We cannot find you on the server. Are you online?"
invalid-url: "The URL is invalid"
unknown-error: "An unknown error occurred. Please try again."
# revoke subscriber/follow rewards every X days
# this will remove the rank and run revoke-commands
revoke-interval-days: 1
# What to do when somebody subscribes
subscribe:
enabled: true
# Rank to give a player. Only used if Vault and a permissions plugin is installed.
# Set to 'none' to disable.
rank: 'Subscriber'
# Commands to execute.
# You can use the following placeholders:
# %name% - name of the player who subscribed
# %channel% - channel their subscription is registered to
# %channelid% - channel id of %channel%
commands:
- 'broadcast %name% has subscribed!'
- 'give %name% diamond 1'
# commands to run when a player is no longer subscribed
# this only supports the %name% placeholder
revoke-commands:
- 'give %name% dirt 1'
# What to do when somebody follows
follow:
enabled: true
rank: 'Follower'
commands:
- 'broadcast %name% has followed the channel!'
revoke-commands:
- 'broadcast %name% has unfollowed :('
# Enable debugging information.
# If you encounter an unexpected error please enable this
# and send the results to the dev!
debug-mode: falsechannel-namesclient-idclient-secretserver-port8080redirect-uriexpiry-time/twitchsync 生成的同步链接过期时间,单位为分钟revoke-interval-daysrevoke-commandsdebug-modemessages 下的提示消息由 web server 发送subscribe.enabledsubscribe.rank'none' 可禁用subscribe.commandssubscribe.revoke-commands%name% 占位符follow.enabledfollow.rankfollow.commandsfollow.revoke-commands%name% - 完成订阅的玩家名称%channel% - 该订阅关联的频道名称%channelid% - %channel% 对应的频道 idVault/twitchsyncPlayerSubscriptionEventPlayerFollowEventPlayerEventgetChannelId() 的方法Discorddebug-moderedirect-uri 必须与 Twitch 后台设置完全一致,否则验证可能失败messages.not-both 的内容,以便向玩家清楚说明当前只能获得哪一类奖励"An unknown error occurred. Please try again.",可先多尝试几次;若仍失败,再开启 debug-mode 进行排查友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:1,246,994 | 历史访问人次:1,549,001
今日访问人数:4,242 | 今日访问人次:4,442
昨日访问人数:27,770 | 昨日访问人次:30,933
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6