Skip to content

Commit

Permalink
Set NCPCompatCBDev as optional dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Mar 13, 2015
1 parent e0318a6 commit 6c5c694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NCPPlugin/pom.xml
Expand Up @@ -99,6 +99,7 @@
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompatcbdev</artifactId>
<version>1.1-SNAPSHOT</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>fr.neatmonster</groupId>
Expand Down
Expand Up @@ -105,7 +105,7 @@ private MCAccess getMCAccessCraftBukkit(List<Throwable> throwables) {
// Only add as long as no stable module has been added.
// 1.8.3 (Spigot)
try{
return new fr.neatmonster.nocheatplus.compat.cbdev.MCAccessCBDev();
return (MCAccess) Class.forName("fr.neatmonster.nocheatplus.compat.cbdev.MCAccessCBDev").newInstance();
}
catch(Throwable t) {
throwables.add(t);
Expand Down

3 comments on commit 6c5c694

@mibby
Copy link

@mibby mibby commented on 6c5c694 Mar 13, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asofold Dev builds are failing to compile.
http://ci.md-5.net/job/NoCheatPlus/808/console

@Miaourt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mibby Seem to be a simple dependency problem, in compatnocheatplus ^-^'

@asofold
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - a dependency was missing on the build server, so builds would fail - now its working again.

Please sign in to comment.