Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/thedevminertv/minimsg

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/thedevminertv/minimsg

  • v0.0.0-20241021161340-9c8d34b7c8f9
  • Source
  • Go
  • Socket score

Version published
Created
Source

minimsg

Tiny (incomplete) minimessage parser for Gate.

You can find the API docs here: https://pkg.go.dev/github.com/thedevminertv/minimsg.

Based on Gate's plugin template.

Features

If you're looking at this from pkg.go.dev, please open the GitHub page. Go's package registry doesn't render the checkboxes.

  • Reset (<reset>)
  • Fonts (<font:<FONT>>)
  • Colors (<color:<COLOR>>, <colour:<COLOR>>, <c:<COLOR>>, <COLOR>)
    • Hex (#fff, #ffffff)
    • By Name (gray, etc.)
      • Black
      • DarkBlue
      • DarkGreen
      • DarkAqua
      • DarkRed
      • DarkPurple
      • Gold
      • Gray
      • DarkGray
      • Blue
      • Green
      • Aqua
      • Red
      • LightPurple
      • Yellow
      • White
    • Rainbow (<rainbow[:[!][PHASE]]>)
    • Gradients (<gradient>)
      • Without phase (<gradient:<FROM_COLOR>:<TO_COLOR>[:COLORS...]>)
      • With phase (<gradient:<FROM_COLOR>:<TO_COLOR>[:COLORS...]:<PHASE>)
    • Transitions (<transition>)
      • Without phase (<transition:<FROM_COLOR>:[COLORS...]>)
      • With phase (<transition:<FROM_COLOR>:[COLORS...]:<PHASE>>)
  • Text
    • Normal text
    • Translatable text (<lang:<KEY>:<VALUE_1>:<VALUE_2>, <tr:<KEY>:<VALUE_1>:<VALUE_2>, <translate:<KEY>:<VALUE_1>:<VALUE_2>)
    • New line (<newline>, <br>)
    • Selector (<selector:<SELECTOR>[:<SEPARATOR>], <sel:<SELECTOR>[:<SEPARATOR>])
      • Won't be implemented, since you need a server that knows the entities
    • Score (<score:<NAME>:<OBJECTIVE>)
      • Won't be implemented, since you need a server that knows the scores
    • NBT (<nbt:<block|entity|storage>:<ID>:<PATH>[:<SEPARATOR>][:<INTERPRET>)
      • Won't be implemented, since you need a server that knows the NBT data
  • Decorations
    • Inverting (<!<DECORATION>>, <<DECORATION>:false>)
    • Bold (<bold>, <b>)
    • Italics (<italic>, <i>, <em>)
    • Underline (<underlined>, <underline>, <u>)
    • Strikethrough (<strikethrough>, <st>)
    • Obfuscated (<obfuscated>, <obfuscated>, <obf>)
  • Behaviour
    • Insertion (<insertion:<TEXT:<TEXT>>)
    • Hover (<hover:<ACTION>:<VALUE>>)
      • Show achievement
      • Show entity
      • Show item
      • Show text
    • Click (<click:<ACTION>:<VALUE>>)
      • Change page
      • Copy to clipboard
      • Open file
      • Open URL
      • Run command
      • Suggest command

License

This project is licensed under the MIT license. For more information, please see the included LICENSE file.

FAQs

Package last updated on 21 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc