add luckperms plugin
This commit is contained in:
22
LuckPerms.Torch/Impl/LpClassPathAppender.cs
Normal file
22
LuckPerms.Torch/Impl/LpClassPathAppender.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Reflection;
|
||||
using java.nio.file;
|
||||
using me.lucko.luckperms.common.plugin.classpath;
|
||||
|
||||
namespace LuckPerms.Torch.Impl;
|
||||
|
||||
public class LpClassPathAppender : ClassPathAppender
|
||||
{
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
public void addJarToClasspath(Path p)
|
||||
{
|
||||
if (p.endsWith(".dll"))
|
||||
Assembly.Load(p.toString());
|
||||
}
|
||||
|
||||
public void close()
|
||||
{
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user