Skip to content

Commit

Permalink
[Change] apply intellij format action
Browse files Browse the repository at this point in the history
  • Loading branch information
sysnote8main committed Oct 12, 2024
1 parent 066f91e commit dd87c78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class RankingDisplayer extends JavaPlugin {

@Override
public void onEnable() {
if(!Bukkit.getPluginManager().isPluginEnabled("KDStatusReloaded")) {
if (!Bukkit.getPluginManager().isPluginEnabled("KDStatusReloaded")) {
getLogger().severe("KDStatusReloaded is not loaded.");
Bukkit.getPluginManager().disablePlugin(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
sender.sendMessage("Size: " + names.size());
return true;
case "cache-update":
for(RankingType type: RankingType.values()) {
for (RankingType type : RankingType.values()) {
RankingCacheManager.getInstance().updateCache(type);
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public PluginConfig(RankingDisplayer plugin) {
// updateButtonList.add(new Location(Bukkit.getWorld("world"), 621, 11, 99));
}

public void additional() {}
public void additional() {
}

public void loadConfig() {
for (Field field : getClass().getFields()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static boolean addHolo(Location holoLocation) {
return false;
}
lastUpdateMap.put(_holoName, System.currentTimeMillis());
if(DHAPI.getHologram(_holoName) != null) return false;
if (DHAPI.getHologram(_holoName) != null) return false;
Hologram holo = DHAPI.createHologram(_holoName, holoLocation, true);
return RankingHolo.setRanking(holo);
}
Expand All @@ -41,8 +41,8 @@ public static boolean placeFromConfig() {
public static void getAllHolo() {
Set<String> names = DecentHologramsAPI.get().getHologramManager().getHologramNames();
System.out.println("Names size: " + names.size());
for(String n: names) {
if(n.startsWith(HOLO_PREFIX)) {
for (String n : names) {
if (n.startsWith(HOLO_PREFIX)) {
lastUpdateMap.put(n, System.currentTimeMillis());
}
}
Expand Down

0 comments on commit dd87c78

Please sign in to comment.