Skip to content

Commit

Permalink
Merge pull request #9 from ShaneBeee/fix/paper-1.20.5-relocation
Browse files Browse the repository at this point in the history
ReflectionUtils - remove unneeded packageVersion field
  • Loading branch information
eyesniper2 authored Apr 30, 2024
2 parents 421f1f4 + 6468243 commit 29c7dc1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
import java.lang.reflect.Field;
import java.lang.reflect.Method;

import org.bukkit.Bukkit;

/**
* Just a simple reflection class, just to not depend on Skript 2.2+ (I think it is the only thing I use from it)
* @author Tuke_Nuke
*/
public class ReflectionUtils {

public static final String packageVersion = Bukkit.getServer().getClass().getPackage().getName().split(".v")[1];

/**
* Check if a class exists.
* @param clz - The class path, like 'org.bukkit.entity.Player'
Expand Down Expand Up @@ -164,4 +160,4 @@ public static <T> T getField(Class<?> from, Object obj, String field){
return null;

}
}
}

0 comments on commit 29c7dc1

Please sign in to comment.