Skip to content

Commit

Permalink
Fix compatibility with the UI Designer & Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Oct 23, 2018
1 parent 6925a7b commit dfa37c9
Show file tree
Hide file tree
Showing 3 changed files with 274 additions and 148 deletions.
25 changes: 24 additions & 1 deletion SubServers.Console/pom.xml
Expand Up @@ -17,6 +17,12 @@
</repositories>

<dependencies>
<dependency>
<groupId>com.intellij</groupId>
<artifactId>forms_rt</artifactId>
<version>7.0.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.md_5</groupId>
<artifactId>bungeecord-internal</artifactId>
Expand All @@ -43,12 +49,29 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>ideauidesigner-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<goals>
<goal>javac2</goal>
</goals>
</execution>
</executions>
<configuration>
<fork>true</fork>
<debug>true</debug>
<failOnError>true</failOnError>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<source>1.7</source>
<target>1.8</target>
</configuration>
</plugin>
Expand Down
Expand Up @@ -27,7 +27,17 @@ public final class ConsolePlugin extends Plugin implements Listener {

@Override
public void onEnable() {
SubAPI.getInstance().addListener(this::enable, this::disable);
SubAPI.getInstance().addListener(new Runnable() {
@Override
public void run() {
enable();
}
}, new Runnable() {
@Override
public void run() {
disable();
}
});
}

public void enable() {
Expand Down

0 comments on commit dfa37c9

Please sign in to comment.