Skip to content

Commit

Permalink
IntelliJ Code Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBlobman committed Jun 21, 2023
1 parent a1c9891 commit ee8f6f1
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
6 changes: 6 additions & 0 deletions api/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A lot of developers use maven to build projects more easily.
**Repository: SirBlobman Public**

Maven:

```xml
<repositories>
<!-- SirBlobman Public Repository -->
Expand All @@ -21,6 +22,7 @@ Maven:
```

Gradle Groovy:

```groovy
repositories {
maven {
Expand All @@ -31,6 +33,7 @@ repositories {
```

Gradle Kotlin:

```kotlin
repositories {
maven("https://nexus.sirblobman.xyz/public/")
Expand All @@ -40,6 +43,7 @@ repositories {
**Dependency: CombatLogX API**

Maven:

```xml
<dependencies>
<!-- BlueSlimeCore -->
Expand All @@ -61,6 +65,7 @@ Maven:
```

Gradle Groovy:

```groovy
dependencies {
compileOnly 'com.github.sirblobman.api:core:2.9-SNAPSHOT'
Expand All @@ -69,6 +74,7 @@ dependencies {
```

Gradle Kotlin:

```kotlin
dependencies {
compileOnly("com.github.sirblobman.api:core:2.9-SNAPSHOT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void setKickIgnoreListInverted(boolean inverted) {
public boolean isKickIgnored(@NotNull String reason) {
boolean ignore = isInIgnoreList(reason);
boolean inverted = isKickIgnoreListInverted();
return (inverted != ignore);
return (inverted != ignore);
}

private boolean isInIgnoreList(@NotNull String reason) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void checkData(@NotNull PlayerData playerData) {
Optional<StatusData> optionalStatus = userData.getStatus();
if (optionalStatus.isPresent()) {
StatusData statusData = optionalStatus.get();
if(!playerData.isKeepLevel()) {
if (!playerData.isKeepLevel()) {
statusData.totalExperience = playerData.getTotalExperience();
statusData.expLevel = playerData.getNewLevel();
statusData.expProgress = playerData.getNewExperience();
Expand All @@ -152,7 +152,7 @@ private void checkData(@NotNull PlayerData playerData) {
api.setUserData(user, userData).whenCompleteAsync(this::printSyncResult).join();
printDebug("Set HuskSync user data for player '" + user.uuid + "'.");

if(!playerData.isKeepInventory()) {
if (!playerData.isKeepInventory()) {
printDebug("Death event had keepInventory = false, fetching items...");
List<ItemStack> drops = new ArrayList<>();
Collections.addAll(drops, inventoryMap.getContents());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import combatlogx.expansion.damage.effects.effect.Blood;

public final class DamageEffectsConfiguration implements IConfigurable {
private boolean allDamage;
private final Blood blood;
private boolean allDamage;

public DamageEffectsConfiguration() {
this.allDamage = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import com.github.sirblobman.api.shaded.xseries.particles.XParticle;

public final class Blood implements DamageEffect, IConfigurable {
private boolean enabled;
private final Offset offset;
private boolean enabled;
private Color color;
private float size;
private double ringRate;
Expand All @@ -36,6 +36,10 @@ public boolean isEnabled() {
return this.enabled;
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

@Override
public void load(@NotNull ConfigurationSection section) {
setEnabled(section.getBoolean("enabled", true));
Expand Down Expand Up @@ -70,10 +74,6 @@ public void play(@NotNull Player player) {
XParticle.ring(rate, radius, tubeRadius, display);
}

public void setEnabled(boolean enabled) {
this.enabled = enabled;
}

public @NotNull Offset getOffset() {
return this.offset;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

public interface DamageEffect {
boolean isEnabled();

void play(@NotNull Player player);
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ public final class Reward implements IConfigurable {
private final Set<EntityType> mobTypeList;
private final Set<String> worldList;
private final List<String> commandList;
private final Map<String, Requirement> requirementMap;
private String permissionName;
private int chance;
private int maxChance;
private boolean mobWhiteList;
private boolean worldWhiteList;
private boolean randomCommand;

private final Map<String, Requirement> requirementMap;

private transient Permission permission;

public Reward(@NotNull RewardExpansion expansion, @NotNull String id) {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
org.gradle.parallel=true
org.gradle.caching=true

version.spigot=1.8.8-R0.1-SNAPSHOT
version.core=2.9-SNAPSHOT
version.api=11.4-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void addDependencyInformation(@NotNull List<Component> list) {
PluginManager pluginManager = Bukkit.getPluginManager();
for (String dependencyName : fullDependencyList) {
Plugin dependency = pluginManager.getPlugin(dependencyName);
if(dependency == null) {
if (dependency == null) {
list.add(listElement(dependencyName).append(Component.space()).append(missingText));
continue;
}
Expand Down

0 comments on commit ee8f6f1

Please sign in to comment.