forked from kaboomserver/extras
Move skin-related code to player modules
This commit is contained in:
parent
1c3864e608
commit
c052c8c79c
6 changed files with 8 additions and 8 deletions
|
@ -6,7 +6,7 @@ import org.bukkit.command.Command;
|
|||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import pw.kaboom.extras.skin.SkinManager;
|
||||
import pw.kaboom.extras.modules.player.skin.SkinManager;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.HashMap;
|
||||
|
|
|
@ -17,7 +17,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
|||
import org.spigotmc.event.player.PlayerSpawnLocationEvent;
|
||||
import pw.kaboom.extras.Main;
|
||||
import pw.kaboom.extras.modules.server.ServerTabComplete;
|
||||
import pw.kaboom.extras.skin.SkinManager;
|
||||
import pw.kaboom.extras.modules.player.skin.SkinManager;
|
||||
import pw.kaboom.extras.util.Utility;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package pw.kaboom.extras.skin;
|
||||
package pw.kaboom.extras.modules.player.skin;
|
||||
|
||||
public record SkinData(String texture, String signature) {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package pw.kaboom.extras.skin;
|
||||
package pw.kaboom.extras.modules.player.skin;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import java.net.URI;
|
||||
|
@ -24,8 +24,8 @@ import net.kyori.adventure.text.Component;
|
|||
|
||||
import org.bukkit.scheduler.BukkitScheduler;
|
||||
import pw.kaboom.extras.Main;
|
||||
import pw.kaboom.extras.skin.response.ProfileResponse;
|
||||
import pw.kaboom.extras.skin.response.SkinResponse;
|
||||
import pw.kaboom.extras.modules.player.skin.response.ProfileResponse;
|
||||
import pw.kaboom.extras.modules.player.skin.response.SkinResponse;
|
||||
|
||||
public final class SkinManager {
|
||||
private static final HttpClient httpClient = HttpClient.newHttpClient();
|
|
@ -1,3 +1,3 @@
|
|||
package pw.kaboom.extras.skin.response;
|
||||
package pw.kaboom.extras.modules.player.skin.response;
|
||||
|
||||
public record ProfileResponse(String name, String id) {}
|
|
@ -1,4 +1,4 @@
|
|||
package pw.kaboom.extras.skin.response;
|
||||
package pw.kaboom.extras.modules.player.skin.response;
|
||||
|
||||
import com.destroystokyo.paper.profile.ProfileProperty;
|
||||
import java.util.List;
|
Loading…
Reference in a new issue