npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

koishi-plugin-minecraftpfp-custplugin

v0.1.3

Published

一个生成Minecraft玩家大头照的Koishi插件

Downloads

213

Readme

koishi-plugin-minecraftpfp-custplugin

npm

一个生成Minecraft玩家大头照的Koishi插件(移植于 Minecraft-PFP 项目,感谢他们)

alt text alt text alt text alt text alt text ![alt text][link6]

ChangeLog

v0.1.3

新增

  • 设置中可指定背景颜色渐变的默认方向
  • 指令中可追加背景颜色渐变的方向
    1. 方向1( 上 → 下 )
    2. 方向2( 右上 → 左下 )
    3. 方向3( 右 → 左 )
    4. 方向4( 右下 → 左上 )
    5. 方向5( 下 → 上 )
    6. 方向6( 左下 → 右上 )
    7. 方向7( 左 → 右 )
    8. 方向8( 左上 → 右下 )

修复

  • 本插件无法在指令管理界面设置别名和等级权限的问题

修改

  • Koishi的权限系统消息提示由自定义消息提示改为官方消息提示
  • 修改触发指令#PFPPFP
  • 指令的别名与等级设置均交予指令管理界面进行设置。
  • 精简插件设置

v0.1.2

修复

  • 释放渲染资源函数不可用的BUG(修来修去修回去了)

v0.1.1

修复

  • 检测图片区域是否为全黑时提前释放资源导致的BUG

v0.1.0

发布

  • 支持渲染 指定玩家 的大头照
  • 支持简单的Koishi的权限系统,默认为1级
  • 支持渲染的开关设置,需要手动去设置启用
  • 支持渲染的别名设置,默认为#PFPmcpfp
  • 支持设置缺省玩家名称
  • 支持是否显示披风(如果有)
  • 内置三个披风源(暂不可编辑)
    1. 官方源
    2. Optifine Cape源
    3. Minecraftcapes源
  • 支持选择默认的背景色(5个预设背景 + 1个自定义背景)
  • 支持背景演示的参数

Command

PFP -h

>> PFP -h
指令:pfp <玩家名称> [背景颜色..] [渐变方向]
渲染MC玩家大头照
别名:mcpfp。
可用的选项有:
    --<玩家名称>  待渲染的玩家ID
    --[背景颜色]  背景1~背景5(五种预设背景)
    --[背景颜色..]  两个十六进制的颜色(自定义)
    --[渐变方向]  方向1~方向8(八种预设背景)
使用示例:
    PFP Steve 背景2
    PFP Steve #00cdac #02aab0
    PFP Steve 背景2 方向4
    PFP Steve #00cdac #02aab0 方向4

Alias -> Cust CommandName

mcpfp -h

>> mcpfp -h
指令:pfp <玩家名称> [背景颜色..] [渐变方向]
渲染MC玩家大头照
别名:mcpfp。
可用的选项有:
    --<玩家名称>  待渲染的玩家ID
    --[背景颜色]  背景1~背景5(五种预设背景)
    --[背景颜色..]  两个十六进制的颜色(自定义)
    --[渐变方向]  方向1~方向8(八种预设背景)
使用示例:
    PFP Steve 背景2
    PFP Steve #00cdac #02aab0
    PFP Steve 背景2 方向4
    PFP Steve #00cdac #02aab0 方向4

Warning

  • 启用插件前,请先启用并设置好相关依赖插件 koishi-plugin-canvas 及其附属依赖 ,并确保其能正常运行。
  • 使用插件前,先填写并设置好所需信息。
  • 此插件依赖于Mojang的API,通信很可能受到 地区等 影响 (如果发生未知错误可大胆怀疑是 网络问题 )

常规设置

  1. enablePfp 指令 的总开关。(默认值:关闭)

  2. pfpAlias 指令 的别名。(默认值:mcpfp)

  3. pfpLevel 使用指令 所需的最低权限等级。(默认值:1)

  4. initName 指令 的缺省玩家名称。(默认值:steve)

  5. wallColors 自定义渲染的渐变背景色( 5种预设 + 1种自定义 )

    • 背景1(#00cdac → #02aab0)
    • 背景2(#6a82fb → #fc5c7d)
    • 背景3(#ffb88c → #de6262)
    • 背景4(#f45c43 → #eb3349)
    • 背景5(#b5ac49 → #3ca55c)
    • 自定义(自定义两者颜色进行渐变)
  6. isShowCape 是否显示大头照时同时显示披风。(默认值:关闭)

Usage

以下是所有命令的使用方法,请自行翻阅。

Minecraft 玩家大头照

PFP <玩家名称>

成功状态

>> PFP steve

alt text

>> PFP steve 背景2

alt text

>> PFP steve #e20000 #0078d7

![alt text][link6]

失败状态

名称不存在

>> PFP dandjashdnjaod

![alt text][link7]

  • 可能原因:玩家不存在、网络设置问题

档案未生效

>> PFP dandjashdnjaod
无法获取dandjashdnjaod的PROFILE
  • 可能原因:玩家信息未更新、网络设置问题

致谢

End

  • 都看到这了不得去试一下? -- Aegiszhy