diff --git a/.gitignore b/.gitignore index d812df1..e611a9c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ Build.lnk bin/ gradlew.bat - Verknüpfung.lnk gradle.properties +.idea/ diff --git a/build.gradle b/build.gradle index 15d4282..6c47ecb 100644 --- a/build.gradle +++ b/build.gradle @@ -141,5 +141,10 @@ uploadArchives { } } } +idea { + module { + inheritOutputDirs = true + } +} diff --git a/build.properties b/build.properties index f078b60..9cc1200 100644 --- a/build.properties +++ b/build.properties @@ -1,3 +1,3 @@ minecraft.version=1.7.10 forge.version=10.13.4.1614-1.7.10 -yamcore.version=0.5.75 \ No newline at end of file +yamcore.version=0.5.76 \ No newline at end of file diff --git a/src/main/java/eu/usrv/yamcore/YAMCore.java b/src/main/java/eu/usrv/yamcore/YAMCore.java index d7df29e..1c354ee 100644 --- a/src/main/java/eu/usrv/yamcore/YAMCore.java +++ b/src/main/java/eu/usrv/yamcore/YAMCore.java @@ -31,7 +31,7 @@ public class YAMCore public static boolean isDebug() { - return ( tVersion.length() == 19 ) || tDebugFilePresent; + return ( tVersion.length() == 20 ) || tDebugFilePresent; } private LogHelper _mLogger = new LogHelper( "Yamcl" ); diff --git a/src/main/java/eu/usrv/yamcore/auxiliary/DonorController.java b/src/main/java/eu/usrv/yamcore/auxiliary/DonorController.java index eaf8dd3..d1a5631 100644 --- a/src/main/java/eu/usrv/yamcore/auxiliary/DonorController.java +++ b/src/main/java/eu/usrv/yamcore/auxiliary/DonorController.java @@ -4,17 +4,13 @@ package eu.usrv.yamcore.auxiliary; import java.io.InputStream; import java.net.URL; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.UUID; +import java.util.*; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import org.apache.commons.io.IOUtils; -import scala.actors.threadpool.Arrays; import eu.usrv.yamcore.YAMCore; @@ -94,13 +90,13 @@ public final class DonorController public boolean isDonor( UUID pPlayerUUID ) { - return( getDonor( pPlayerUUID ) != null ? true : false ); + return( getDonor( pPlayerUUID ) != null ); } public boolean hasExtraArg( UUID pPlayerUUID, String pDonorArg ) { Donor d = getDonor( pPlayerUUID ); - return( d != null ? d._mDonorExtraArgs.contains( pDonorArg ) : false ); + return( d != null && d._mDonorExtraArgs.contains( pDonorArg ) ); } public int getLevel( UUID pPlayerUUID ) @@ -173,7 +169,7 @@ public final class DonorController try { if( lineArgs.length > 2 ) - tArgs = new ArrayList( Arrays.asList( lineArgs[2].split( "$" ) ) ); + tArgs = new ArrayList( Arrays.asList( lineArgs[2].split( "!" ) ) ); else tArgs = new ArrayList(); }