me.braydon -> cc.restfulmc
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Has been cancelled
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Has been cancelled
This commit is contained in:
parent
10ab624d63
commit
0f9bea22f5
@ -11,7 +11,7 @@
|
||||
</parent>
|
||||
|
||||
<!-- Project Details -->
|
||||
<groupId>me.braydon</groupId>
|
||||
<groupId>cc.restfulmc</groupId>
|
||||
<artifactId>RESTfulMC</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<description>A simple, yet useful RESTful API for Minecraft utilizing Springboot.</description>
|
||||
|
2
API/src/main/java/me/braydon/mc/RESTfulMC.java → API/src/main/java/cc/restfulmc/api/RESTfulMC.java
2
API/src/main/java/me/braydon/mc/RESTfulMC.java → API/src/main/java/cc/restfulmc/api/RESTfulMC.java
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc;
|
||||
package cc.restfulmc.api;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.SneakyThrows;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.experimental.UtilityClass;
|
@ -21,13 +21,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import me.braydon.mc.model.dns.impl.ARecord;
|
||||
import me.braydon.mc.model.dns.impl.SRVRecord;
|
||||
import cc.restfulmc.api.model.dns.impl.ARecord;
|
||||
import cc.restfulmc.api.model.dns.impl.SRVRecord;
|
||||
import org.xbill.DNS.Lookup;
|
||||
import org.xbill.DNS.Record;
|
||||
import org.xbill.DNS.Type;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.experimental.UtilityClass;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.experimental.UtilityClass;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import net.jodah.expiringmap.ExpirationPolicy;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import lombok.NonNull;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.SneakyThrows;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.experimental.UtilityClass;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common;
|
||||
package cc.restfulmc.api.common;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.experimental.UtilityClass;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet;
|
||||
package cc.restfulmc.api.common.packet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet;
|
||||
package cc.restfulmc.api.common.packet;
|
||||
|
||||
import lombok.NonNull;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet;
|
||||
package cc.restfulmc.api.common.packet;
|
||||
|
||||
import lombok.NonNull;
|
||||
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.bedrock;
|
||||
package cc.restfulmc.api.common.packet.impl.bedrock;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.UDPPacket;
|
||||
import cc.restfulmc.api.common.packet.UDPPacket;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.DatagramPacket;
|
@ -21,12 +21,12 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.bedrock;
|
||||
package cc.restfulmc.api.common.packet.impl.bedrock;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.UDPPacket;
|
||||
import me.braydon.mc.model.server.BedrockMinecraftServer;
|
||||
import cc.restfulmc.api.common.packet.UDPPacket;
|
||||
import cc.restfulmc.api.model.server.BedrockMinecraftServer;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.DatagramPacket;
|
@ -21,12 +21,12 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.java.tcp;
|
||||
package cc.restfulmc.api.common.packet.impl.java.tcp;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NonNull;
|
||||
import lombok.ToString;
|
||||
import me.braydon.mc.common.packet.TCPPacket;
|
||||
import cc.restfulmc.api.common.packet.TCPPacket;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataInputStream;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.java.tcp;
|
||||
package cc.restfulmc.api.common.packet.impl.java.tcp;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.TCPPacket;
|
||||
import cc.restfulmc.api.common.packet.TCPPacket;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.java.udp;
|
||||
package cc.restfulmc.api.common.packet.impl.java.udp;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.JavaQueryPacket;
|
||||
import cc.restfulmc.api.common.packet.JavaQueryPacket;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataOutputStream;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.java.udp;
|
||||
package cc.restfulmc.api.common.packet.impl.java.udp;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.JavaQueryPacket;
|
||||
import cc.restfulmc.api.common.packet.JavaQueryPacket;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.DatagramPacket;
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.java.udp;
|
||||
package cc.restfulmc.api.common.packet.impl.java.udp;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.JavaQueryPacket;
|
||||
import cc.restfulmc.api.common.packet.JavaQueryPacket;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.DataOutputStream;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.packet.impl.java.udp;
|
||||
package cc.restfulmc.api.common.packet.impl.java.udp;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.packet.JavaQueryPacket;
|
||||
import cc.restfulmc.api.common.packet.JavaQueryPacket;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.DatagramPacket;
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.renderer;
|
||||
package cc.restfulmc.api.common.renderer;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.geom.AffineTransform;
|
@ -21,13 +21,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.renderer;
|
||||
package cc.restfulmc.api.common.renderer;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.SneakyThrows;
|
||||
import me.braydon.mc.common.ImageUtils;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import cc.restfulmc.api.common.ImageUtils;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.*;
|
@ -21,13 +21,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.renderer.impl;
|
||||
package cc.restfulmc.api.common.renderer.impl;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.ImageUtils;
|
||||
import me.braydon.mc.common.renderer.SkinRenderer;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import cc.restfulmc.api.common.ImageUtils;
|
||||
import cc.restfulmc.api.common.renderer.SkinRenderer;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.image.BufferedImage;
|
@ -21,12 +21,12 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.renderer.impl;
|
||||
package cc.restfulmc.api.common.renderer.impl;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.renderer.IsometricSkinRenderer;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import cc.restfulmc.api.common.renderer.IsometricSkinRenderer;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.geom.AffineTransform;
|
@ -21,12 +21,12 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.renderer.impl;
|
||||
package cc.restfulmc.api.common.renderer.impl;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.common.renderer.SkinRenderer;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import cc.restfulmc.api.common.renderer.SkinRenderer;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.image.BufferedImage;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.web;
|
||||
package cc.restfulmc.api.common.web;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
@ -21,13 +21,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.common.web;
|
||||
package cc.restfulmc.api.common.web;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import me.braydon.mc.config.AppConfig;
|
||||
import cc.restfulmc.api.config.AppConfig;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.config;
|
||||
package cc.restfulmc.api.config;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.config;
|
||||
package cc.restfulmc.api.config;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.log4j.Log4j2;
|
@ -21,14 +21,14 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.controller;
|
||||
package cc.restfulmc.api.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import me.braydon.mc.common.MojangServer;
|
||||
import me.braydon.mc.exception.impl.BadRequestException;
|
||||
import me.braydon.mc.service.MojangService;
|
||||
import cc.restfulmc.api.common.MojangServer;
|
||||
import cc.restfulmc.api.exception.impl.BadRequestException;
|
||||
import cc.restfulmc.api.service.MojangService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
@ -21,18 +21,18 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.controller;
|
||||
package cc.restfulmc.api.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import me.braydon.mc.exception.impl.BadRequestException;
|
||||
import me.braydon.mc.exception.impl.MojangRateLimitException;
|
||||
import me.braydon.mc.exception.impl.ResourceNotFoundException;
|
||||
import me.braydon.mc.model.Player;
|
||||
import me.braydon.mc.model.cache.CachedPlayer;
|
||||
import me.braydon.mc.service.MojangService;
|
||||
import cc.restfulmc.api.exception.impl.BadRequestException;
|
||||
import cc.restfulmc.api.exception.impl.MojangRateLimitException;
|
||||
import cc.restfulmc.api.exception.impl.ResourceNotFoundException;
|
||||
import cc.restfulmc.api.model.Player;
|
||||
import cc.restfulmc.api.model.cache.CachedPlayer;
|
||||
import cc.restfulmc.api.service.MojangService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
@ -21,17 +21,17 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.controller;
|
||||
package cc.restfulmc.api.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import me.braydon.mc.exception.impl.BadRequestException;
|
||||
import me.braydon.mc.exception.impl.ResourceNotFoundException;
|
||||
import me.braydon.mc.model.MinecraftServer;
|
||||
import me.braydon.mc.model.cache.CachedMinecraftServer;
|
||||
import me.braydon.mc.service.MojangService;
|
||||
import cc.restfulmc.api.exception.impl.BadRequestException;
|
||||
import cc.restfulmc.api.exception.impl.ResourceNotFoundException;
|
||||
import cc.restfulmc.api.model.MinecraftServer;
|
||||
import cc.restfulmc.api.model.cache.CachedMinecraftServer;
|
||||
import cc.restfulmc.api.service.MojangService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.exception;
|
||||
package cc.restfulmc.api.exception;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.model.response.ErrorResponse;
|
||||
import cc.restfulmc.api.model.response.ErrorResponse;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.ControllerAdvice;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.exception.impl;
|
||||
package cc.restfulmc.api.exception.impl;
|
||||
|
||||
import lombok.experimental.StandardException;
|
||||
import org.springframework.http.HttpStatus;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.exception.impl;
|
||||
package cc.restfulmc.api.exception.impl;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.exception.impl;
|
||||
package cc.restfulmc.api.exception.impl;
|
||||
|
||||
import lombok.experimental.StandardException;
|
||||
import org.springframework.http.HttpStatus;
|
@ -21,13 +21,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.log;
|
||||
package cc.restfulmc.api.log;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import me.braydon.mc.common.IPUtils;
|
||||
import cc.restfulmc.api.common.IPUtils;
|
||||
import org.springframework.core.MethodParameter;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.converter.HttpMessageConverter;
|
2
API/src/main/java/me/braydon/mc/model/Cape.java → API/src/main/java/cc/restfulmc/api/model/Cape.java
2
API/src/main/java/me/braydon/mc/model/Cape.java → API/src/main/java/cc/restfulmc/api/model/Cape.java
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model;
|
||||
package cc.restfulmc.api.model;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import lombok.*;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model;
|
||||
package cc.restfulmc.api.model;
|
||||
|
||||
import com.maxmind.geoip2.model.CityResponse;
|
||||
import com.maxmind.geoip2.record.City;
|
||||
@ -29,12 +29,12 @@ import com.maxmind.geoip2.record.Continent;
|
||||
import com.maxmind.geoip2.record.Country;
|
||||
import com.maxmind.geoip2.record.Location;
|
||||
import lombok.*;
|
||||
import me.braydon.mc.common.ColorUtils;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import me.braydon.mc.model.token.JavaServerStatusToken;
|
||||
import me.braydon.mc.service.pinger.MinecraftServerPinger;
|
||||
import me.braydon.mc.service.pinger.impl.BedrockMinecraftServerPinger;
|
||||
import me.braydon.mc.service.pinger.impl.JavaMinecraftServerPinger;
|
||||
import cc.restfulmc.api.common.ColorUtils;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.token.JavaServerStatusToken;
|
||||
import cc.restfulmc.api.service.pinger.MinecraftServerPinger;
|
||||
import cc.restfulmc.api.service.pinger.impl.BedrockMinecraftServerPinger;
|
||||
import cc.restfulmc.api.service.pinger.impl.JavaMinecraftServerPinger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model;
|
||||
package cc.restfulmc.api.model;
|
||||
|
||||
import lombok.*;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import me.braydon.mc.model.token.MojangProfileToken;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
import cc.restfulmc.api.model.token.MojangProfileToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model;
|
||||
package cc.restfulmc.api.model;
|
||||
|
||||
/**
|
||||
* Profile actions that can
|
@ -21,12 +21,12 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.cache;
|
||||
package cc.restfulmc.api.model.cache;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonUnwrapped;
|
||||
import lombok.*;
|
||||
import me.braydon.mc.model.MinecraftServer;
|
||||
import cc.restfulmc.api.model.MinecraftServer;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.redis.core.RedisHash;
|
||||
|
@ -21,18 +21,18 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.cache;
|
||||
package cc.restfulmc.api.model.cache;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import me.braydon.mc.model.Cape;
|
||||
import me.braydon.mc.model.Player;
|
||||
import me.braydon.mc.model.ProfileAction;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import me.braydon.mc.model.token.MojangProfileToken;
|
||||
import cc.restfulmc.api.model.Cape;
|
||||
import cc.restfulmc.api.model.Player;
|
||||
import cc.restfulmc.api.model.ProfileAction;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
import cc.restfulmc.api.model.token.MojangProfileToken;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.redis.core.RedisHash;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.cache;
|
||||
package cc.restfulmc.api.model.cache;
|
||||
|
||||
import lombok.*;
|
||||
import org.springframework.data.annotation.Id;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.cache;
|
||||
package cc.restfulmc.api.model.cache;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.dns;
|
||||
package cc.restfulmc.api.model.dns;
|
||||
|
||||
import lombok.*;
|
||||
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.dns.impl;
|
||||
package cc.restfulmc.api.model.dns.impl;
|
||||
|
||||
import lombok.*;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
|
||||
import java.net.InetAddress;
|
||||
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.dns.impl;
|
||||
package cc.restfulmc.api.model.dns.impl;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.*;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.response;
|
||||
package cc.restfulmc.api.model.response;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.server;
|
||||
package cc.restfulmc.api.model.server;
|
||||
|
||||
import lombok.*;
|
||||
import me.braydon.mc.model.MinecraftServer;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.MinecraftServer;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
|
||||
/**
|
||||
* A Bedrock edition {@link MinecraftServer}.
|
@ -21,17 +21,17 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.server;
|
||||
package cc.restfulmc.api.model.server;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.*;
|
||||
import me.braydon.mc.common.JavaMinecraftVersion;
|
||||
import me.braydon.mc.config.AppConfig;
|
||||
import me.braydon.mc.model.MinecraftServer;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import me.braydon.mc.model.token.JavaServerChallengeStatusToken;
|
||||
import me.braydon.mc.model.token.JavaServerStatusToken;
|
||||
import me.braydon.mc.service.MojangService;
|
||||
import cc.restfulmc.api.common.JavaMinecraftVersion;
|
||||
import cc.restfulmc.api.config.AppConfig;
|
||||
import cc.restfulmc.api.model.MinecraftServer;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.token.JavaServerChallengeStatusToken;
|
||||
import cc.restfulmc.api.model.token.JavaServerStatusToken;
|
||||
import cc.restfulmc.api.service.MojangService;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.md_5.bungee.chat.ComponentSerializer;
|
||||
|
@ -21,13 +21,13 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.skin;
|
||||
package cc.restfulmc.api.model.skin;
|
||||
|
||||
import lombok.*;
|
||||
import me.braydon.mc.common.renderer.SkinRenderer;
|
||||
import me.braydon.mc.common.renderer.impl.BodySkinPartRenderer;
|
||||
import me.braydon.mc.common.renderer.impl.IsometricHeadSkinPartRenderer;
|
||||
import me.braydon.mc.common.renderer.impl.VanillaSkinPartRenderer;
|
||||
import cc.restfulmc.api.common.renderer.SkinRenderer;
|
||||
import cc.restfulmc.api.common.renderer.impl.BodySkinPartRenderer;
|
||||
import cc.restfulmc.api.common.renderer.impl.IsometricHeadSkinPartRenderer;
|
||||
import cc.restfulmc.api.common.renderer.impl.VanillaSkinPartRenderer;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
|
@ -21,15 +21,15 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.skin;
|
||||
package cc.restfulmc.api.model.skin;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.google.gson.JsonObject;
|
||||
import lombok.*;
|
||||
import me.braydon.mc.common.ImageUtils;
|
||||
import me.braydon.mc.config.AppConfig;
|
||||
import me.braydon.mc.model.Player;
|
||||
import cc.restfulmc.api.common.ImageUtils;
|
||||
import cc.restfulmc.api.config.AppConfig;
|
||||
import cc.restfulmc.api.model.Player;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.awt.image.BufferedImage;
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.token;
|
||||
package cc.restfulmc.api.model.token;
|
||||
|
||||
import lombok.*;
|
||||
import me.braydon.mc.model.server.JavaMinecraftServer;
|
||||
import cc.restfulmc.api.model.server.JavaMinecraftServer;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
@ -21,14 +21,14 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.token;
|
||||
package cc.restfulmc.api.model.token;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import lombok.ToString;
|
||||
import me.braydon.mc.model.server.JavaMinecraftServer;
|
||||
import cc.restfulmc.api.model.server.JavaMinecraftServer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -21,15 +21,15 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.token;
|
||||
package cc.restfulmc.api.model.token;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.google.gson.JsonObject;
|
||||
import lombok.*;
|
||||
import me.braydon.mc.config.AppConfig;
|
||||
import me.braydon.mc.model.Cape;
|
||||
import me.braydon.mc.model.ProfileAction;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import cc.restfulmc.api.config.AppConfig;
|
||||
import cc.restfulmc.api.model.Cape;
|
||||
import cc.restfulmc.api.model.ProfileAction;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
|
||||
import java.util.Base64;
|
||||
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.model.token;
|
||||
package cc.restfulmc.api.model.token;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
@ -21,9 +21,9 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.repository;
|
||||
package cc.restfulmc.api.repository;
|
||||
|
||||
import me.braydon.mc.model.cache.CachedMinecraftServer;
|
||||
import cc.restfulmc.api.model.cache.CachedMinecraftServer;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
/**
|
@ -21,9 +21,9 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.repository;
|
||||
package cc.restfulmc.api.repository;
|
||||
|
||||
import me.braydon.mc.model.cache.CachedPlayer;
|
||||
import cc.restfulmc.api.model.cache.CachedPlayer;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
/**
|
@ -21,9 +21,9 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.repository;
|
||||
package cc.restfulmc.api.repository;
|
||||
|
||||
import me.braydon.mc.model.cache.CachedPlayerName;
|
||||
import cc.restfulmc.api.model.cache.CachedPlayerName;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
/**
|
@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.repository;
|
||||
package cc.restfulmc.api.repository;
|
||||
|
||||
import me.braydon.mc.model.cache.CachedSkinPartTexture;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.cache.CachedSkinPartTexture;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
/**
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.service;
|
||||
package cc.restfulmc.api.service;
|
||||
|
||||
import com.maxmind.db.CHMCache;
|
||||
import com.maxmind.geoip2.DatabaseReader;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.service;
|
||||
package cc.restfulmc.api.service;
|
||||
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.base.Splitter;
|
||||
@ -34,31 +34,31 @@ import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import me.braydon.mc.common.*;
|
||||
import me.braydon.mc.common.web.JsonWebException;
|
||||
import me.braydon.mc.common.web.JsonWebRequest;
|
||||
import me.braydon.mc.exception.impl.BadRequestException;
|
||||
import me.braydon.mc.exception.impl.MojangRateLimitException;
|
||||
import me.braydon.mc.exception.impl.ResourceNotFoundException;
|
||||
import me.braydon.mc.model.MinecraftServer;
|
||||
import me.braydon.mc.model.Player;
|
||||
import me.braydon.mc.model.ProfileAction;
|
||||
import me.braydon.mc.model.cache.CachedMinecraftServer;
|
||||
import me.braydon.mc.model.cache.CachedPlayer;
|
||||
import me.braydon.mc.model.cache.CachedPlayerName;
|
||||
import me.braydon.mc.model.cache.CachedSkinPartTexture;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import me.braydon.mc.model.dns.impl.ARecord;
|
||||
import me.braydon.mc.model.dns.impl.SRVRecord;
|
||||
import me.braydon.mc.model.server.JavaMinecraftServer;
|
||||
import me.braydon.mc.model.skin.ISkinPart;
|
||||
import me.braydon.mc.model.skin.Skin;
|
||||
import me.braydon.mc.model.token.MojangProfileToken;
|
||||
import me.braydon.mc.model.token.MojangUsernameToUUIDToken;
|
||||
import me.braydon.mc.repository.MinecraftServerCacheRepository;
|
||||
import me.braydon.mc.repository.PlayerCacheRepository;
|
||||
import me.braydon.mc.repository.PlayerNameCacheRepository;
|
||||
import me.braydon.mc.repository.SkinPartTextureCacheRepository;
|
||||
import cc.restfulmc.api.common.*;
|
||||
import cc.restfulmc.api.common.web.JsonWebException;
|
||||
import cc.restfulmc.api.common.web.JsonWebRequest;
|
||||
import cc.restfulmc.api.exception.impl.BadRequestException;
|
||||
import cc.restfulmc.api.exception.impl.MojangRateLimitException;
|
||||
import cc.restfulmc.api.exception.impl.ResourceNotFoundException;
|
||||
import cc.restfulmc.api.model.MinecraftServer;
|
||||
import cc.restfulmc.api.model.Player;
|
||||
import cc.restfulmc.api.model.ProfileAction;
|
||||
import cc.restfulmc.api.model.cache.CachedMinecraftServer;
|
||||
import cc.restfulmc.api.model.cache.CachedPlayer;
|
||||
import cc.restfulmc.api.model.cache.CachedPlayerName;
|
||||
import cc.restfulmc.api.model.cache.CachedSkinPartTexture;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.dns.impl.ARecord;
|
||||
import cc.restfulmc.api.model.dns.impl.SRVRecord;
|
||||
import cc.restfulmc.api.model.server.JavaMinecraftServer;
|
||||
import cc.restfulmc.api.model.skin.ISkinPart;
|
||||
import cc.restfulmc.api.model.skin.Skin;
|
||||
import cc.restfulmc.api.model.token.MojangProfileToken;
|
||||
import cc.restfulmc.api.model.token.MojangUsernameToUUIDToken;
|
||||
import cc.restfulmc.api.repository.MinecraftServerCacheRepository;
|
||||
import cc.restfulmc.api.repository.PlayerCacheRepository;
|
||||
import cc.restfulmc.api.repository.PlayerNameCacheRepository;
|
||||
import cc.restfulmc.api.repository.SkinPartTextureCacheRepository;
|
||||
import net.jodah.expiringmap.ExpirationPolicy;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpMethod;
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.service.pinger;
|
||||
package cc.restfulmc.api.service.pinger;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.model.MinecraftServer;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.MinecraftServer;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
|
||||
/**
|
||||
* A {@link MinecraftServerPinger} is
|
@ -21,17 +21,17 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.service.pinger.impl;
|
||||
package cc.restfulmc.api.service.pinger.impl;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import me.braydon.mc.common.packet.impl.bedrock.BedrockUnconnectedPingPacket;
|
||||
import me.braydon.mc.common.packet.impl.bedrock.BedrockUnconnectedPongPacket;
|
||||
import me.braydon.mc.exception.impl.BadRequestException;
|
||||
import me.braydon.mc.exception.impl.ResourceNotFoundException;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import me.braydon.mc.model.server.BedrockMinecraftServer;
|
||||
import me.braydon.mc.service.pinger.MinecraftServerPinger;
|
||||
import cc.restfulmc.api.common.packet.impl.bedrock.BedrockUnconnectedPingPacket;
|
||||
import cc.restfulmc.api.common.packet.impl.bedrock.BedrockUnconnectedPongPacket;
|
||||
import cc.restfulmc.api.exception.impl.BadRequestException;
|
||||
import cc.restfulmc.api.exception.impl.ResourceNotFoundException;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.server.BedrockMinecraftServer;
|
||||
import cc.restfulmc.api.service.pinger.MinecraftServerPinger;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.DatagramSocket;
|
@ -21,25 +21,25 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.service.pinger.impl;
|
||||
package cc.restfulmc.api.service.pinger.impl;
|
||||
|
||||
import lombok.NonNull;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import me.braydon.mc.common.JavaMinecraftVersion;
|
||||
import me.braydon.mc.common.packet.impl.java.tcp.JavaHandshakingInSetProtocolPacket;
|
||||
import me.braydon.mc.common.packet.impl.java.tcp.JavaStatusInStartPacket;
|
||||
import me.braydon.mc.common.packet.impl.java.udp.JavaQueryFullStatRequestPacket;
|
||||
import me.braydon.mc.common.packet.impl.java.udp.JavaQueryFullStatResponsePacket;
|
||||
import me.braydon.mc.common.packet.impl.java.udp.JavaQueryHandshakeRequestPacket;
|
||||
import me.braydon.mc.common.packet.impl.java.udp.JavaQueryHandshakeResponsePacket;
|
||||
import me.braydon.mc.config.AppConfig;
|
||||
import me.braydon.mc.exception.impl.BadRequestException;
|
||||
import me.braydon.mc.exception.impl.ResourceNotFoundException;
|
||||
import me.braydon.mc.model.dns.DNSRecord;
|
||||
import me.braydon.mc.model.server.JavaMinecraftServer;
|
||||
import me.braydon.mc.model.token.JavaServerChallengeStatusToken;
|
||||
import me.braydon.mc.model.token.JavaServerStatusToken;
|
||||
import me.braydon.mc.service.pinger.MinecraftServerPinger;
|
||||
import cc.restfulmc.api.common.JavaMinecraftVersion;
|
||||
import cc.restfulmc.api.common.packet.impl.java.tcp.JavaHandshakingInSetProtocolPacket;
|
||||
import cc.restfulmc.api.common.packet.impl.java.tcp.JavaStatusInStartPacket;
|
||||
import cc.restfulmc.api.common.packet.impl.java.udp.JavaQueryFullStatRequestPacket;
|
||||
import cc.restfulmc.api.common.packet.impl.java.udp.JavaQueryFullStatResponsePacket;
|
||||
import cc.restfulmc.api.common.packet.impl.java.udp.JavaQueryHandshakeRequestPacket;
|
||||
import cc.restfulmc.api.common.packet.impl.java.udp.JavaQueryHandshakeResponsePacket;
|
||||
import cc.restfulmc.api.config.AppConfig;
|
||||
import cc.restfulmc.api.exception.impl.BadRequestException;
|
||||
import cc.restfulmc.api.exception.impl.ResourceNotFoundException;
|
||||
import cc.restfulmc.api.model.dns.DNSRecord;
|
||||
import cc.restfulmc.api.model.server.JavaMinecraftServer;
|
||||
import cc.restfulmc.api.model.token.JavaServerChallengeStatusToken;
|
||||
import cc.restfulmc.api.model.token.JavaServerStatusToken;
|
||||
import cc.restfulmc.api.service.pinger.MinecraftServerPinger;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.test.config;
|
||||
package cc.restfulmc.api.test.config;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.test.controller;
|
||||
package cc.restfulmc.api.test.controller;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.controller.MojangController;
|
||||
import me.braydon.mc.test.config.TestRedisConfig;
|
||||
import cc.restfulmc.api.controller.MojangController;
|
||||
import cc.restfulmc.api.test.config.TestRedisConfig;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
||||
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.test.controller;
|
||||
package cc.restfulmc.api.test.controller;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.controller.PlayerController;
|
||||
import me.braydon.mc.test.config.TestRedisConfig;
|
||||
import cc.restfulmc.api.controller.PlayerController;
|
||||
import cc.restfulmc.api.test.config.TestRedisConfig;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
||||
|
@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
package me.braydon.mc.test.controller;
|
||||
package cc.restfulmc.api.test.controller;
|
||||
|
||||
import lombok.NonNull;
|
||||
import me.braydon.mc.controller.ServerController;
|
||||
import me.braydon.mc.test.config.TestRedisConfig;
|
||||
import cc.restfulmc.api.controller.ServerController;
|
||||
import cc.restfulmc.api.test.config.TestRedisConfig;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
||||
|
Loading…
Reference in New Issue
Block a user