Skip to content

qTechnologiesV2/CustomTransformerSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qProtect Custom Transformer Sample

Sample to use with qProtect's custom transformer system

How to use

  1. Add the qProtect API to your maven pom.xml
<repositories>
    <repository>
        <id>mdma</id>
        <url>https://nexus.mdma.dev/repository/maven-releases/</url>
    </repository>
</repositories>

<dependency>
    <groupId>dev.mdma.qprotect</groupId>
    <artifactId>qprotect-api</artifactId>
    <version>1.11.4</version>
    <scope>provided</scope>
</dependency>
  1. Create a new Class that extends ClassTransformer and implement the methods from the superClass
  2. Start writing your custom transformers in the method runOnClass using ObjectWeb ASM
  3. Compile your jar and put into:
  • Windows: %appdata%/qProtect/custom/
  • Linux: /home/qProtect/custom/
  • macOS: Library/Application Support/qProtect/custom/

About

Sample to use with qProtect's custom transformer system

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages