Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
v2.0.0 | Pre-Release #1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWylot committed Dec 13, 2022
1 parent ecf0507 commit 96c28eb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 27 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,6 @@
<artifactId>WorldEdit</artifactId>
<version>7.2.10</version>
</dependency>
<dependency>
<groupId>org.mineacademy.plugin</groupId>
<artifactId>WorldGuard</artifactId>
<version>7.0.7</version>
</dependency>

<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ir.wy.wycore.behind.support.hologram

class EmptyHologram : Hologram {
override fun remove() {
// Nothing
}

override fun setContents(contents: List<String>) {
// Nothing
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package ir.wy.wycore.behind.support.hologram;

import ir.wy.wycore.behind.support.hologram.Hologram;
import ir.wy.wycore.behind.support.hologram.HologramSupport;
import ir.wy.wycore.spigot.support.hologram.EmptyHologram;
import org.bukkit.Location;
import org.jetbrains.annotations.NotNull;
import java.util.HashSet;
Expand All @@ -18,12 +15,13 @@ private static void register (@NotNull final HologramSupport support) {
REGISTERED.add(support);
}

private static Hologram createHologram(@NotNull final Location location, @NotNull final List<String> contents) {
for (HologramSupport support : REGISTERED) {
return support.createHologram(location, contents);
}
return new EmptyHologram();
}
//
// private static Hologram createHologram(@NotNull final Location location, @NotNull final List<String> contents) {
// for (HologramSupport support : REGISTERED) {
// return support.createHologram(location, contents);
// }
// return new EmptyHologram();
// }

private HologramManager() {
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
Expand Down

This file was deleted.

0 comments on commit 96c28eb

Please sign in to comment.