Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenceX100 committed Oct 16, 2024
1 parent 02a6267 commit 981c816
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 61 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.artillexstudios</groupId>
<artifactId>AxAFKZone</artifactId>
<version>1.1.3</version>
<version>1.2.0</version>
<packaging>jar</packaging>

<name>AxAFKZone</name>
Expand Down Expand Up @@ -114,7 +114,7 @@
<dependency>
<groupId>com.artillexstudios.axapi</groupId>
<artifactId>axapi</artifactId>
<version>1.4.380</version>
<version>1.4.381</version>
<scope>compile</scope>
<exclusions>
<exclusion>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/artillexstudios/axafkzone/AxAFKZone.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public static AxPlugin getInstance() {
}

public void load() {
instance = this;
BukkitLibraryManager libraryManager = new BukkitLibraryManager(this, "lib");
libraryManager.addMavenCentral();
libraryManager.addJitPack();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public Reward(Map<Object, Object> str) {
}

String display = null;
if (str.containsKey("display"))
display = (String) str.get("display");
if (str.containsKey("display")) display = (String) str.get("display");

this.chance = chance;
this.items = items;
Expand Down Expand Up @@ -68,10 +67,6 @@ public void run(Player player) {

@Override
public String toString() {
return "Reward{" +
"commands=" + commands +
", items=" + items +
", chance=" + chance +
'}';
return "Reward{" + "commands=" + commands + ", items=" + items + ", chance=" + chance + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import com.artillexstudios.axafkzone.zones.Zone;
import com.artillexstudios.axafkzone.zones.Zones;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
Expand All @@ -19,8 +17,7 @@ public static void start() {
service = Executors.newSingleThreadScheduledExecutor();
service.scheduleAtFixedRate(() -> {
try {
List<Zone> zonesSnapshot = new ArrayList<>(Zones.getZones().values());
for (Zone zone : zonesSnapshot) {
for (Zone zone : Zones.getZones().values()) {
zone.tick();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public static void load(String zoneName) {
}

public static void delete(Zone zone) {
zone.delete();
new File(AxAFKZone.getInstance().getDataFolder(), "zones/" + zone.getName() + ".yml").delete();
Zones.removeZone(zone);
}
Expand Down
41 changes: 0 additions & 41 deletions src/main/java/com/artillexstudios/axafkzone/utils/SoundUtils.java

This file was deleted.

5 changes: 1 addition & 4 deletions src/main/java/com/artillexstudios/axafkzone/zones/Zone.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
import org.bukkit.entity.Player;

import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import static com.artillexstudios.axafkzone.AxAFKZone.CONFIG;
import static com.artillexstudios.axafkzone.AxAFKZone.MESSAGEUTILS;
Expand Down Expand Up @@ -191,7 +191,4 @@ public Region getRegion() {
public int getTicks() {
return ticks;
}

public void delete() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public static Zone getZoneByName(@NotNull String name) {
}

public static void removeZone(@NotNull Zone zone) {
zone.delete();
zones.remove(zone.getName());
}
}

0 comments on commit 981c816

Please sign in to comment.