Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project cleanup #2140

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Codestyle cleanup (codeclimate)
  • Loading branch information
sgdc3 committed Jun 27, 2020
commit 5a37643562a7b15d5b27a901ae498512a266e2bc
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/fr/xephi/authme/data/auth/PlayerAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public int getGroupId() {
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();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/fr/xephi/authme/security/crypts/Pbkdf2.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public File updateHelpFile() throws IOException {
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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down