Fixed codestyle
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.willfp.eco.core;
|
||||
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -234,7 +233,6 @@ public final class PluginProps {
|
||||
* @param supportsExtensions If the plugin should attempt to look for extensions.
|
||||
* @return The props.
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
static PluginProps createSimple(final int resourceId,
|
||||
final int bStatsId,
|
||||
@NotNull final String proxyPackage,
|
||||
|
||||
@@ -30,8 +30,8 @@ public final class CustomEntitiesManager {
|
||||
* @see com.willfp.eco.core.entities.Entities
|
||||
*/
|
||||
public static void registerAllEntities() {
|
||||
for (CustomEntitiesIntegration Integration : REGISTERED) {
|
||||
Integration.registerAllEntities();
|
||||
for (CustomEntitiesIntegration integration : REGISTERED) {
|
||||
integration.registerAllEntities();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ public final class EconomyManager {
|
||||
*/
|
||||
public static boolean hasAmount(@NotNull final OfflinePlayer player,
|
||||
final double amount) {
|
||||
for (EconomyIntegration Integration : REGISTERED) {
|
||||
return Integration.hasAmount(player, amount);
|
||||
for (EconomyIntegration integration : REGISTERED) {
|
||||
return integration.hasAmount(player, amount);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -59,8 +59,8 @@ public final class EconomyManager {
|
||||
*/
|
||||
public static boolean giveMoney(@NotNull final OfflinePlayer player,
|
||||
final double amount) {
|
||||
for (EconomyIntegration Integration : REGISTERED) {
|
||||
return Integration.giveMoney(player, amount);
|
||||
for (EconomyIntegration integration : REGISTERED) {
|
||||
return integration.giveMoney(player, amount);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -75,8 +75,8 @@ public final class EconomyManager {
|
||||
*/
|
||||
public static boolean removeMoney(@NotNull final OfflinePlayer player,
|
||||
final double amount) {
|
||||
for (EconomyIntegration Integration : REGISTERED) {
|
||||
return Integration.removeMoney(player, amount);
|
||||
for (EconomyIntegration integration : REGISTERED) {
|
||||
return integration.removeMoney(player, amount);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -89,8 +89,8 @@ public final class EconomyManager {
|
||||
* @return The balance.
|
||||
*/
|
||||
public static double getBalance(@NotNull final OfflinePlayer player) {
|
||||
for (EconomyIntegration Integration : REGISTERED) {
|
||||
return Integration.getBalance(player);
|
||||
for (EconomyIntegration integration : REGISTERED) {
|
||||
return integration.getBalance(player);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -35,8 +35,8 @@ public final class HologramManager {
|
||||
*/
|
||||
public static Hologram createHologram(@NotNull final Location location,
|
||||
@NotNull final List<String> contents) {
|
||||
for (HologramIntegration Integration : REGISTERED) {
|
||||
return Integration.createHologram(location, contents);
|
||||
for (HologramIntegration integration : REGISTERED) {
|
||||
return integration.createHologram(location, contents);
|
||||
}
|
||||
|
||||
return new DummyHologram();
|
||||
|
||||
@@ -34,8 +34,8 @@ public final class ShopManager {
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
public static void registerEvents(@NotNull final EcoPlugin plugin) {
|
||||
for (ShopIntegration Integration : REGISTERED) {
|
||||
Listener listener = Integration.getSellEventAdapter();
|
||||
for (ShopIntegration integration : REGISTERED) {
|
||||
Listener listener = integration.getSellEventAdapter();
|
||||
|
||||
if (listener != null) {
|
||||
plugin.getEventManager().registerListener(listener);
|
||||
|
||||
Reference in New Issue
Block a user