跳到正文

PolyHopper

作者:Ecorous

A highly-customisable discord chat link mod for Quilt

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A highly-customisable discord chat link mod for Quilt.

Features

  • PluralKit support
  • Optional Webhook mode, allowing different players to be displayed as separate ‘users’ on discord
  • All formats are configurable, see the Configuration section below.
  • Markdown and SimpleTextFormat (look at placeholder API) support

Configuartion

There is a configuartion file located at config/polyhopper/config.toml.
A default config is provided below

Default Config
[bot]
	# The bot token.
	# default:
	token = ""
	# The channel to limit commands to and where messages are sent.
	# default:
	channelId = ""
	# The guild that the bot is to be used in.
	# default:
	guildId = ""
	# The format that discord messages use in-game
	# default: [PolyHopper] <{username}> {message}
	ingameFormat = "[PolyHopper] <{username}> {message}"
	# Messages that start with these won't be proxied into minecraft (<@466378653216014359> is PluralKit's ping)
	minecraftProxyBlacklist = ["pk;", "pk!", "<@466378653216014359>", "\\\\"]
	# The channel where whitelist are logged
	# default:
	whitelistChannelId = ""
	# Toggle whitelist command
	# default: false
	whitelistCommand = false
	# Toggle account linking.
	# default: false
	accountLinking = false
	# How to send messages, can be either:
	#   MESSAGE - Simple discord messages.
	#   WEBHOOK - Message via webhook with custom name and avatar.
	# options: MESSAGE, WEBHOOK
	# default: WEBHOOK
	messageMode = "WEBHOOK"
	# Announce deaths?
	# default: true
	announceDeaths = true
	# Announce advancements?
	# default: true
	announceAdvancements = true
	# Announce player join/leave?
	# default: true
	announcePlayerJoinLeave = true

[webhook]
	# The name used for webhook messages, can substitute in {username} or {displayName}
	# default: {displayName} @ PolyHopper
	nameFormat = "{displayName} @ PolyHopper"
	# The url for player webhook image, can substitute in {uuid} or {username}.
	# default: https://crafatar.com/renders/head/{uuid}
	playerAvatarUrl = "https://crafatar.com/renders/head/{uuid}"
	# The url for server webhook image, can substitute in {uuid} or {username}.
	# default: https://cdn.ecorous.org/blackhole.png
	serverAvatarUrl = "https://cdn.ecorous.org/blackhole.png"

[message]
	# Format for player messages to take, can substitute in {username}, {displayName}, or {text}
	# default: <{displayName}> {text}
	messageFormat = "<{displayName}> {text}"

FAQ

Q: How do I get token????

A: Read this guide.

Q: When I send a markdown message on Discord (bold, italic, underline, headers, etc) it looks weird with asterisks and stuff!

A: Markdown support is coming in a later version.

Q: Account Linking doesn’t do anything!!!!

A: It’s not implemented yet. Please wait patiently.

常见问题

PolyHopper 支持哪些 Minecraft 版本?

PolyHopper 支持 Minecraft Java 版 1.19.2–1.20.2,共 6 个版本,可用的加载器:Quilt。下载时注意选择和你游戏版本一致的文件。

PolyHopper 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Ecorous 的其他作品

查看全部 →