Skip to content

Commit

Permalink
update libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Oct 22, 2024
1 parent 1aa76f2 commit 7da619a
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 15 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ dependencies {
def version = versionFile.text.trim()
paperweight.foliaDevBundle("$version-R0.1-SNAPSHOT")

def core = "4.3.21"
def core = "4.5.7"
implementation "me.hsgamer:hscore-bukkit-config:$core"
implementation "me.hsgamer:hscore-bukkit-utils:$core"
implementation "me.hsgamer:hscore-bukkit-command-sub:$core"
implementation "me.hsgamer:hscore-config-proxy:$core"
implementation "me.hsgamer:hscore-common:$core"

def minelib = "1.1.2"
def minelib = "1.2.5"
implementation "io.github.projectunified:minelib-plugin-base:$minelib"
implementation "io.github.projectunified:minelib-plugin-listener:$minelib"
implementation "io.github.projectunified:minelib-plugin-permission:$minelib"
implementation "io.github.projectunified:minelib-plugin-command:$minelib"
implementation "io.github.projectunified:minelib-util-subcommand:$minelib"
}

assemble {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.hsgamer.morefoworld.command;

import me.hsgamer.hscore.bukkit.command.sub.SubCommandManager;
import io.github.projectunified.minelib.util.subcommand.SubCommandManager;
import me.hsgamer.morefoworld.MoreFoWorld;
import me.hsgamer.morefoworld.command.sub.*;
import org.bukkit.command.Command;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.hsgamer.morefoworld.command.sub;

import me.hsgamer.hscore.bukkit.command.sub.SubCommand;
import io.github.projectunified.minelib.util.subcommand.SubCommand;
import me.hsgamer.hscore.bukkit.utils.MessageUtils;
import me.hsgamer.morefoworld.Permissions;
import org.bukkit.Bukkit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.hsgamer.morefoworld.command.sub;

import me.hsgamer.hscore.bukkit.command.sub.SubCommand;
import io.github.projectunified.minelib.util.subcommand.SubCommand;
import me.hsgamer.hscore.bukkit.utils.MessageUtils;
import org.bukkit.Bukkit;
import org.bukkit.World;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.hsgamer.morefoworld.command.sub;

import me.hsgamer.hscore.bukkit.command.sub.SubCommand;
import io.github.projectunified.minelib.util.subcommand.SubCommand;
import me.hsgamer.hscore.bukkit.utils.MessageUtils;
import me.hsgamer.morefoworld.MoreFoWorld;
import me.hsgamer.morefoworld.Permissions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.hsgamer.morefoworld.command.sub;

import me.hsgamer.hscore.bukkit.command.sub.SubCommand;
import io.github.projectunified.minelib.util.subcommand.SubCommand;
import me.hsgamer.hscore.bukkit.utils.MessageUtils;
import me.hsgamer.morefoworld.MoreFoWorld;
import me.hsgamer.morefoworld.Permissions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.hsgamer.morefoworld.command.sub;

import me.hsgamer.hscore.bukkit.command.sub.SubCommand;
import io.github.projectunified.minelib.util.subcommand.SubCommand;
import me.hsgamer.hscore.bukkit.utils.MessageUtils;
import org.bukkit.Bukkit;
import org.bukkit.World;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;

public class PortalListener extends ListenerComponent {
public class PortalListener implements ListenerComponent {
private final ConcurrentHashMap<UUID, Material> portalTeleportCache = new ConcurrentHashMap<>();
private final BasePlugin plugin;
private DebugComponent debug;

public PortalListener(BasePlugin plugin) {
super(plugin);
this.plugin = plugin;
}

@Override
public BasePlugin getPlugin() {
return plugin;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@

import java.util.Optional;

public class RespawnListener extends ListenerComponent {
public class RespawnListener implements ListenerComponent {
private final BasePlugin plugin;
private DebugComponent debug;

public RespawnListener(BasePlugin plugin) {
super(plugin);
this.plugin = plugin;
}

@Override
public BasePlugin getPlugin() {
return plugin;
}

@Override
Expand Down
11 changes: 9 additions & 2 deletions src/main/java/me/hsgamer/morefoworld/listener/SpawnListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
import org.bukkit.event.EventHandler;
import org.spigotmc.event.player.PlayerSpawnLocationEvent;

public class SpawnListener extends ListenerComponent {
public class SpawnListener implements ListenerComponent {
private final BasePlugin plugin;

public SpawnListener(BasePlugin plugin) {
super(plugin);
this.plugin = plugin;
}

@Override
public BasePlugin getPlugin() {
return plugin;
}

@EventHandler
Expand Down

0 comments on commit 7da619a

Please sign in to comment.