Skip to content

Commit

Permalink
misc tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Nov 10, 2018
1 parent 44c8c67 commit 58ab3c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -52,7 +52,7 @@ subprojects {
project.ext.fullVersion = project.ext.majorVersion + '.' + project.ext.minorVersion + '.' + project.ext.patchVersion

license {
header = rootProject.file('LICENSE_HEADER.txt')
header = rootProject.file('HEADER.txt')
include '**/*.java'
newLine = true
}
Expand Down
Expand Up @@ -96,7 +96,7 @@ public UUID lookupUuid(String player) {
}

// are we on the main thread?
if (!plugin.getBootstrap().isServerStarting() && Bukkit.isPrimaryThread() && !this.plugin.getConfiguration().get(ConfigKeys.VAULT_UNSAFE_LOOKUPS)) {
if (!this.plugin.getBootstrap().isServerStarting() && Bukkit.isPrimaryThread() && !this.plugin.getConfiguration().get(ConfigKeys.VAULT_UNSAFE_LOOKUPS)) {
throw new RuntimeException(
"The operation to lookup a UUID for '" + player + "' was cancelled by LuckPerms. This is NOT a bug. \n" +
"The lookup request was made on the main server thread. It is not safe to execute a request to \n" +
Expand Down Expand Up @@ -132,7 +132,7 @@ public User lookupUser(UUID uuid) {
}

// are we on the main thread?
if (!plugin.getBootstrap().isServerStarting() && Bukkit.isPrimaryThread() && !this.plugin.getConfiguration().get(ConfigKeys.VAULT_UNSAFE_LOOKUPS)) {
if (!this.plugin.getBootstrap().isServerStarting() && Bukkit.isPrimaryThread() && !this.plugin.getConfiguration().get(ConfigKeys.VAULT_UNSAFE_LOOKUPS)) {
throw new RuntimeException(
"The operation to load user data for '" + uuid + "' was cancelled by LuckPerms. This is NOT a bug. \n" +
"The lookup request was made on the main server thread. It is not safe to execute a request to \n" +
Expand Down
Expand Up @@ -184,7 +184,7 @@ public void run() {
AtomicInteger errIndex = new AtomicInteger(1);
for (ImportCommand e : this.commands) {
if (e.getResult() != null && e.getResult().wasFailure()) {
for (Sender s : notify) {
for (Sender s : this.notify) {
Message.IMPORT_END_ERROR_HEADER.send(s, errIndex.get(), e.getId(), e.getCommand(), e.getResult().toString());
e.getOutput().forEach(out -> Message.IMPORT_END_ERROR_CONTENT.send(s, out));
Message.IMPORT_END_ERROR_FOOTER.send(s);
Expand Down
Expand Up @@ -103,7 +103,7 @@ public AbstractEventBus getEventBus() {
return this.eventBus;
}

private boolean shouldPost(Class<? extends LuckPermsEvent> eventClass){
private boolean shouldPost(Class<? extends LuckPermsEvent> eventClass) {
return this.eventBus.shouldPost(eventClass);
}

Expand Down

0 comments on commit 58ab3c3

Please sign in to comment.