mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-09-21 03:12:24 +02:00
Codestyle cleanup (codeclimate)
This commit is contained in:
parent
5271e76b75
commit
5a37643562
@ -1,6 +1,5 @@
|
||||
package fr.xephi.authme.command.executable.authme;
|
||||
|
||||
import com.google.common.primitives.Ints;
|
||||
import fr.xephi.authme.command.ExecutableCommand;
|
||||
import fr.xephi.authme.task.purge.PurgeService;
|
||||
import org.bukkit.ChatColor;
|
||||
|
@ -73,6 +73,11 @@ public class PlayerAuth {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the player's auth quit location.
|
||||
*
|
||||
* @param location the quit location
|
||||
*/
|
||||
public void setQuitLocation(Location location) {
|
||||
Objects.requireNonNull(location.getWorld(), "world not loaded!");
|
||||
x = location.getBlockX();
|
||||
|
@ -1,6 +1,5 @@
|
||||
package fr.xephi.authme.security.crypts;
|
||||
|
||||
import com.google.common.primitives.Ints;
|
||||
import de.rtner.misc.BinTools;
|
||||
import de.rtner.security.auth.spi.PBKDF2Engine;
|
||||
import de.rtner.security.auth.spi.PBKDF2Parameters;
|
||||
|
@ -1,6 +1,5 @@
|
||||
package fr.xephi.authme.security.crypts;
|
||||
|
||||
import com.google.common.primitives.Ints;
|
||||
import de.rtner.security.auth.spi.PBKDF2Engine;
|
||||
import de.rtner.security.auth.spi.PBKDF2Parameters;
|
||||
import fr.xephi.authme.ConsoleLogger;
|
||||
|
@ -8,7 +8,6 @@ import fr.xephi.authme.util.RandomStringUtils;
|
||||
|
||||
import javax.crypto.Mac;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
@ -2,7 +2,6 @@ package fr.xephi.authme.security.totp;
|
||||
|
||||
import com.google.common.collect.HashBasedTable;
|
||||
import com.google.common.collect.Table;
|
||||
import com.google.common.primitives.Ints;
|
||||
import com.warrenstrange.googleauth.GoogleAuthenticator;
|
||||
import com.warrenstrange.googleauth.GoogleAuthenticatorKey;
|
||||
import com.warrenstrange.googleauth.GoogleAuthenticatorQRGenerator;
|
||||
|
@ -55,7 +55,8 @@ public class HelpTranslationGenerator {
|
||||
Map<String, Object> helpEntries = generateHelpMessageEntries();
|
||||
|
||||
String helpEntriesYaml = exportToYaml(helpEntries);
|
||||
Files.write(helpFile.toPath(), helpEntriesYaml.getBytes(StandardCharsets.UTF_8), StandardOpenOption.TRUNCATE_EXISTING);
|
||||
Files.write(helpFile.toPath(), helpEntriesYaml.getBytes(StandardCharsets.UTF_8),
|
||||
StandardOpenOption.TRUNCATE_EXISTING);
|
||||
return helpFile;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ public class DependentTag<A> implements Tag<A> {
|
||||
* @param name the tag (placeholder) that will be replaced
|
||||
* @param replacementFunction the function producing the replacement
|
||||
*/
|
||||
public DependentTag(@NotNull String name,@NotNull Function<A, String> replacementFunction) {
|
||||
public DependentTag(@NotNull String name, @NotNull Function<A, String> replacementFunction) {
|
||||
this.name = name;
|
||||
this.replacementFunction = replacementFunction;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user