Skip to content

Commit

Permalink
ReflectionUtils - remove unneeded packageVersion field
Browse files Browse the repository at this point in the history
- Paper stopped using craftbukkit relocation and this line causes errors in 1.20.5
  • Loading branch information
ShaneBeee committed Apr 29, 2024
1 parent 421f1f4 commit 6468243
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 6468243

Please sign in to comment.