btk5h/skript-mirror


Powerful reflection utilities for Skript

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.btk5h:skript-mirror:1.0.0'
	}
	dependencies {
		implementation("com.github.btk5h:skript-mirror:1.0.0")
	}
	<dependency>
	    <groupId>com.github.btk5h</groupId>
	    <artifactId>skript-mirror</artifactId>
	    <version>1.0.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.btk5h" % "skript-mirror" % "1.0.0"
        
        

                            
    :dependencies [[com.github.btk5h/skript-mirror "1.0.0"]]
        
        

Readme


skript-mirror

skript-mirror is a robust reflection addon for advanced scripters. It aims to combine the capabilities of Java with the easy-to-use development environment of Skript.

Documentation | Source

Looking for skript-mirror 1.x?

skript-mirror 1.x is currently being maintained at the 1.x branch.

Should I use skript-mirror?

If you were given a script or a code snippet that requires skript-mirror, the answer is: absolutely!

If you're looking to add skript-mirror to your scripting toolbox, it is highly recommended that you familiarize yourself with the basics of Java or another object-oriented programming language.

Are you considering writing an addon for Skript? Consider implementing your features in skript-mirror instead! skript-mirror offers several advantages over a traditional Skript addon:

  • Writing addons properly is difficult, especially if you're new to Java. skript-mirror will handle most of the boilerplate for you, allowing you to focus on maintaining high-quality Skript extensions.
  • Extensions written in skript-mirror can be tested quickly, just like any other script. Unlike a Skript addon, which requires compilation and a complete server restart, skript-mirror scripts can be refreshed with a simple sk reload.
  • Some features may require you to use reflection to access private methods, fields, and constructors. skript-mirror's built-in reflection allows you to access these private members seamlessly.
  • One of Skript's essential features is its customizability. Extensions written in skript-mirror promote this, allowing users to quickly make changes to your code, if necessary.