Rework to circumvent access modifiers
Dieser Commit ist enthalten in:
Ursprung
5643b6fc80
Commit
f4ea5c7b5c
10
pom.xml
10
pom.xml
@ -16,8 +16,8 @@
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>bungeecord-repo</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
<id>steamwar</id>
|
||||
<url>https://steamwar.de:81/maven</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
@ -46,9 +46,9 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.md-5</groupId>
|
||||
<artifactId>bungeecord-api</artifactId>
|
||||
<version>1.12-SNAPSHOT</version>
|
||||
<groupId>steamwar</groupId>
|
||||
<artifactId>BungeeCord</artifactId>
|
||||
<version>1.0</version>
|
||||
<type>jar</type>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
@ -1,8 +1,8 @@
|
||||
package de.steamwar.bungeecore;
|
||||
|
||||
import bungeepluginmanager.ModifiedPluginEventBus;
|
||||
import bungeepluginmanager.PluginUtils;
|
||||
import bungeepluginmanager.ReflectionUtils;
|
||||
import net.md_5.bungee.api.plugin.ModifiedPluginEventBus;
|
||||
import net.md_5.bungee.api.plugin.PluginUtils;
|
||||
import net.md_5.bungee.api.plugin.ReflectionUtils;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.plugin.Command;
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package bungeepluginmanager;
|
||||
package net.md_5.bungee.api.plugin;
|
||||
|
||||
import net.md_5.bungee.api.event.AsyncEvent;
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
@ -1,8 +1,7 @@
|
||||
package bungeepluginmanager;
|
||||
package net.md_5.bungee.api.plugin;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
import net.md_5.bungee.api.ProxyServer;
|
||||
import net.md_5.bungee.api.plugin.*;
|
||||
import org.yaml.snakeyaml.Yaml;
|
||||
|
||||
import java.io.File;
|
||||
@ -138,9 +137,7 @@ public final class PluginUtils {
|
||||
|
||||
// do actual loading
|
||||
Class<?> main;
|
||||
try (URLClassLoader loader = new PluginClassloader(
|
||||
new URL[]{pluginFile.toURI().toURL()}
|
||||
)) {
|
||||
try (URLClassLoader loader = new PluginClassloader(ProxyServer.getInstance(), desc, new URL[]{pluginFile.toURI().toURL()})) {
|
||||
main = loader.loadClass(desc.getMain());
|
||||
Enumeration<JarEntry> entries = jar.entries();
|
||||
while(entries.hasMoreElements()){
|
@ -1,4 +1,4 @@
|
||||
package bungeepluginmanager;
|
||||
package net.md_5.bungee.api.plugin;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
In neuem Issue referenzieren
Einen Benutzer sperren