mirror of
https://github.com/kaboomserver/extras.git
synced 2025-01-06 22:51:53 +00:00
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.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import pw.kaboom.extras.skin.SkinManager;
|
import pw.kaboom.extras.modules.player.skin.SkinManager;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.spigotmc.event.player.PlayerSpawnLocationEvent;
|
import org.spigotmc.event.player.PlayerSpawnLocationEvent;
|
||||||
import pw.kaboom.extras.Main;
|
import pw.kaboom.extras.Main;
|
||||||
import pw.kaboom.extras.modules.server.ServerTabComplete;
|
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 pw.kaboom.extras.util.Utility;
|
||||||
|
|
||||||
import java.util.HashSet;
|
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) {
|
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 com.google.gson.Gson;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
@ -24,8 +24,8 @@ import net.kyori.adventure.text.Component;
|
||||||
|
|
||||||
import org.bukkit.scheduler.BukkitScheduler;
|
import org.bukkit.scheduler.BukkitScheduler;
|
||||||
import pw.kaboom.extras.Main;
|
import pw.kaboom.extras.Main;
|
||||||
import pw.kaboom.extras.skin.response.ProfileResponse;
|
import pw.kaboom.extras.modules.player.skin.response.ProfileResponse;
|
||||||
import pw.kaboom.extras.skin.response.SkinResponse;
|
import pw.kaboom.extras.modules.player.skin.response.SkinResponse;
|
||||||
|
|
||||||
public final class SkinManager {
|
public final class SkinManager {
|
||||||
private static final HttpClient httpClient = HttpClient.newHttpClient();
|
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) {}
|
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 com.destroystokyo.paper.profile.ProfileProperty;
|
||||||
import java.util.List;
|
import java.util.List;
|
Loading…
Reference in a new issue