Skip to content

aceinetx/rcml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rcml

Raven's Component Markup Language

RCML is a markup language for paper components, i made this because i found them tideous to write by hand

[color:0,255,17]Colored text
[italic:true]Italic text
[underlined:true]Underlined text
[bold:true]Bold text
[strikethrough:true]Strikethrough text
[color:0,255,17][bold:true]Combine tags!
Brackets can be used like this: [[ ]]

Tags

  • color
    • Description: Set text color for the following text
    • Value: RGB color, e.g. 123,255,255 or 123, 233, 144
  • italic
    • Description: Set italic flag for the following text
    • Value: true|false
  • underlined
    • Description: Set underlined flag for the following text
    • Value: true|false
  • bold
    • Description: Set bold flag for the following text
    • Value: true|false
  • strikethrough
    • Description: Set strikethrough flag for the following text
    • Value: true|false
  • reset
    • Description: Reset style
    • Value: (No value)

Errors

  • RCML01 - Unknown tag name
  • RCML02 - Invalid tag value
  • RCML03 - Unmatched tag value
  • RCML04 - Invalid integer
  • RCML05 - Value found in a non-valued tag

Setup (only maven for now)

    1. Add jitpack repository In your pom.xml in <repositories>:
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>
    1. Add RCML dependency In your pom.xml in <dependencies>:
<dependency>
    <groupId>com.github.aceinetx</groupId>
    <artifactId>rcml</artifactId>
    <version>1.4.0</version>
    <scope>provided</scope>
</dependency>

Use

    1. Import rcml
import ru.aceinet.rcml.RCML;
    1. Compile some rcml code
Bukkit.getConsoleSender().sendMessage(
  RCML.compile("Hello from [bold:true][color:255,0,0]RCML[reset]!")
);

rvnfml (a.k.a aceinetx) 2021-2025

About

Raven's Component Markup Language

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages