- Converting to new repo

This commit is contained in:
2025-09-24 21:20:00 +02:00
parent d94e8dd8b9
commit f7c3654f02
87 changed files with 905 additions and 279 deletions

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,11 +14,11 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.addon;
package dev.unlegitdqrk.unlegitlibrary.addon;
import me.finn.unlegitlibrary.addon.impl.Addon;
import me.finn.unlegitlibrary.event.EventListener;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.addon.impl.Addon;
import dev.unlegitdqrk.unlegitlibrary.event.EventListener;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.io.File;
import java.io.IOException;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,10 +14,10 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.addon.events;
package dev.unlegitdqrk.unlegitlibrary.addon.events;
import me.finn.unlegitlibrary.addon.impl.Addon;
import me.finn.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.addon.impl.Addon;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
public class AddonDisabledEvent extends Event {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,10 +14,10 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.addon.events;
package dev.unlegitdqrk.unlegitlibrary.addon.events;
import me.finn.unlegitlibrary.addon.impl.Addon;
import me.finn.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.addon.impl.Addon;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
public class AddonEnabledEvent extends Event {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,13 +14,13 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.addon.impl;
package dev.unlegitdqrk.unlegitlibrary.addon.impl;
import me.finn.unlegitlibrary.addon.events.AddonDisabledEvent;
import me.finn.unlegitlibrary.addon.events.AddonEnabledEvent;
import me.finn.unlegitlibrary.event.EventListener;
import me.finn.unlegitlibrary.event.EventManager;
import me.finn.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.addon.events.AddonDisabledEvent;
import dev.unlegitdqrk.unlegitlibrary.addon.events.AddonEnabledEvent;
import dev.unlegitdqrk.unlegitlibrary.event.EventListener;
import dev.unlegitdqrk.unlegitlibrary.event.EventManager;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import java.lang.reflect.InvocationTargetException;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.addon.impl;
package dev.unlegitdqrk.unlegitlibrary.addon.impl;
public class AddonInfo {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command;
package dev.unlegitdqrk.unlegitlibrary.command;
import javax.management.InstanceAlreadyExistsException;
import java.util.ArrayList;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command;
package dev.unlegitdqrk.unlegitlibrary.command;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,10 +14,11 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command;
package dev.unlegitdqrk.unlegitlibrary.command;
import dev.unlegitdqrk.unlegitlibrary.command.events.*;
import me.finn.unlegitlibrary.command.events.*;
import me.finn.unlegitlibrary.event.EventManager;
import dev.unlegitdqrk.unlegitlibrary.event.EventManager;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command;
package dev.unlegitdqrk.unlegitlibrary.command;
public class CommandPermission {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,12 +14,12 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command.events;
package dev.unlegitdqrk.unlegitlibrary.command.events;
import me.finn.unlegitlibrary.command.Command;
import me.finn.unlegitlibrary.command.CommandExecutor;
import me.finn.unlegitlibrary.command.CommandManager;
import me.finn.unlegitlibrary.event.impl.CancellableEvent;
import dev.unlegitdqrk.unlegitlibrary.command.Command;
import dev.unlegitdqrk.unlegitlibrary.command.CommandExecutor;
import dev.unlegitdqrk.unlegitlibrary.command.CommandManager;
import dev.unlegitdqrk.unlegitlibrary.event.impl.CancellableEvent;
public class CommandExecuteEvent extends CancellableEvent {
public final CommandManager commandManager;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,12 +14,12 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command.events;
package dev.unlegitdqrk.unlegitlibrary.command.events;
import me.finn.unlegitlibrary.command.Command;
import me.finn.unlegitlibrary.command.CommandExecutor;
import me.finn.unlegitlibrary.command.CommandManager;
import me.finn.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.command.Command;
import dev.unlegitdqrk.unlegitlibrary.command.CommandExecutor;
import dev.unlegitdqrk.unlegitlibrary.command.CommandManager;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
public class CommandExecutedEvent extends Event {
public final CommandManager commandManager;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,12 +14,12 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command.events;
package dev.unlegitdqrk.unlegitlibrary.command.events;
import me.finn.unlegitlibrary.command.Command;
import me.finn.unlegitlibrary.command.CommandExecutor;
import me.finn.unlegitlibrary.command.CommandManager;
import me.finn.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.command.Command;
import dev.unlegitdqrk.unlegitlibrary.command.CommandExecutor;
import dev.unlegitdqrk.unlegitlibrary.command.CommandManager;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
public class CommandExecutorMissingPermissionEvent extends Event {
public final CommandManager commandManager;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,11 +14,11 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command.events;
package dev.unlegitdqrk.unlegitlibrary.command.events;
import me.finn.unlegitlibrary.command.CommandExecutor;
import me.finn.unlegitlibrary.command.CommandManager;
import me.finn.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.command.CommandExecutor;
import dev.unlegitdqrk.unlegitlibrary.command.CommandManager;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
public class CommandNotFoundEvent extends Event {
public final CommandManager commandManager;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,12 +14,12 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.command.events;
package dev.unlegitdqrk.unlegitlibrary.command.events;
import me.finn.unlegitlibrary.command.Command;
import me.finn.unlegitlibrary.command.CommandExecutor;
import me.finn.unlegitlibrary.command.CommandManager;
import me.finn.unlegitlibrary.event.impl.CancellableEvent;
import dev.unlegitdqrk.unlegitlibrary.command.Command;
import dev.unlegitdqrk.unlegitlibrary.command.CommandExecutor;
import dev.unlegitdqrk.unlegitlibrary.command.CommandManager;
import dev.unlegitdqrk.unlegitlibrary.event.impl.CancellableEvent;
public class PreCommandExecuteEvent extends CancellableEvent {
public final CommandManager commandManager;

View File

@@ -0,0 +1,20 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.event;
public abstract class EventListener {
}

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,10 +14,10 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.event;
package dev.unlegitdqrk.unlegitlibrary.event;
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.event;
package dev.unlegitdqrk.unlegitlibrary.event;
public enum EventPriority {
LOWEST,

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.event;
package dev.unlegitdqrk.unlegitlibrary.event;
import java.lang.annotation.*;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.event.impl;
package dev.unlegitdqrk.unlegitlibrary.event.impl;
public class CancellableEvent extends Event {

View File

@@ -0,0 +1,20 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.event.impl;
public abstract class Event {
}

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.file;
package dev.unlegitdqrk.unlegitlibrary.file;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.util.Collections;
import java.util.Map;

View File

@@ -1,6 +1,14 @@
package me.finn.unlegitlibrary.file;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
package dev.unlegitdqrk.unlegitlibrary.file;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.io.File;
import java.io.FileInputStream;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.file;
package dev.unlegitdqrk.unlegitlibrary.file;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.io.*;
import java.net.URL;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.file;
package dev.unlegitdqrk.unlegitlibrary.file;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

View File

@@ -1,14 +1,22 @@
package me.finn.unlegitlibrary.network.system.client;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.EventManager;
package dev.unlegitdqrk.unlegitlibrary.network.system.client;
import dev.unlegitdqrk.unlegitlibrary.event.EventManager;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.events.*;
import me.finn.unlegitlibrary.network.system.client.events.*;
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.packets.PacketHandler;
import me.finn.unlegitlibrary.network.system.packets.impl.ClientIDPacket;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
import me.finn.unlegitlibrary.network.utils.PemUtils;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import me.finn.unlegitlibrary.utils.Logger;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.PacketHandler;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.impl.ClientIDPacket;
import dev.unlegitdqrk.unlegitlibrary.network.utils.PemUtils;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.Logger;
import javax.net.ssl.*;
import java.io.*;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
import me.finn.unlegitlibrary.network.system.packets.Packet;
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
public class C_PacketReceivedEvent extends Event {
public final NetworkClient networkClient;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
import me.finn.unlegitlibrary.network.system.packets.Packet;
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
public class C_PacketReceivedFailedEvent extends Event {
public final NetworkClient networkClient;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
import me.finn.unlegitlibrary.network.system.packets.Packet;
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
public class C_PacketSendEvent extends Event {
public final NetworkClient networkClient;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
import me.finn.unlegitlibrary.network.system.packets.Packet;
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
public class C_PacketSendFailedEvent extends Event {
public final NetworkClient networkClient;

View File

@@ -6,10 +6,18 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
public class C_UnknownObjectReceivedEvent extends Event {
public final NetworkClient networkClient;

View File

@@ -0,0 +1,28 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
public class ClientConnectedEvent extends Event {
public final NetworkClient client;
public ClientConnectedEvent(NetworkClient client) {
this.client = client;
}
}

View File

@@ -0,0 +1,28 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.network.system.client.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
public class ClientDisconnectedEvent extends Event {
public final NetworkClient client;
public ClientDisconnectedEvent(NetworkClient client) {
this.client = client;
}
}

View File

@@ -6,7 +6,15 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.packets;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.network.system.packets;
import java.io.IOException;
import java.io.ObjectInputStream;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.packets;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
import me.finn.unlegitlibrary.network.system.server.NetworkServer;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
package dev.unlegitdqrk.unlegitlibrary.network.system.packets;
import dev.unlegitdqrk.unlegitlibrary.network.system.client.NetworkClient;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.NetworkServer;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.io.IOException;
import java.io.ObjectInputStream;

View File

@@ -6,10 +6,18 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.packets.impl;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.packets.PacketHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.packets.impl;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.PacketHandler;
import java.io.IOException;
import java.io.ObjectInputStream;

View File

@@ -1,16 +1,23 @@
package me.finn.unlegitlibrary.network.system.server;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.packets.impl.ClientIDPacket;
package dev.unlegitdqrk.unlegitlibrary.network.system.server;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.impl.ClientIDPacket;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.events.*;
import me.finn.unlegitlibrary.network.system.server.events.*;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.SocketException;
import java.security.cert.X509Certificate;
public class ConnectionHandler {
private SSLSocket socket;

View File

@@ -1,19 +1,26 @@
package me.finn.unlegitlibrary.network.system.server;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.EventManager;
import me.finn.unlegitlibrary.network.system.packets.PacketHandler;
import me.finn.unlegitlibrary.network.system.packets.impl.ClientIDPacket;
import me.finn.unlegitlibrary.network.system.server.events.IncomingConnectionEvent;
import me.finn.unlegitlibrary.network.utils.PemUtils;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import me.finn.unlegitlibrary.utils.Logger;
package dev.unlegitdqrk.unlegitlibrary.network.system.server;
import dev.unlegitdqrk.unlegitlibrary.event.EventManager;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.PacketHandler;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.impl.ClientIDPacket;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.events.IncomingConnectionEvent;
import dev.unlegitdqrk.unlegitlibrary.network.utils.PemUtils;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.Logger;
import javax.net.ssl.*;
import java.io.File;
import java.io.FileInputStream;
import java.net.Socket;
import java.security.KeyStore;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;

View File

@@ -6,10 +6,18 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public final class ConnectionHandlerConnectedEvent extends Event {
public final ConnectionHandler connectionHandler;

View File

@@ -6,10 +6,18 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public final class ConnectionHandlerDisconnectedEvent extends Event {
public final ConnectionHandler connectionHandler;

View File

@@ -6,15 +6,20 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.CancellableEvent;
import me.finn.unlegitlibrary.network.system.server.NetworkServer;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.CancellableEvent;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.NetworkServer;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import java.net.Socket;
import java.security.cert.X509Certificate;
public class IncomingConnectionEvent extends CancellableEvent {
public final NetworkServer server;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public class S_PacketReceivedEvent extends Event {
public final ConnectionHandler connectionHandler;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public class S_PacketReceivedFailedEvent extends Event {
public final ConnectionHandler connectionHandler;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public class S_PacketSendEvent extends Event {
public final Packet packet;

View File

@@ -6,11 +6,19 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.packets.Packet;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.packets.Packet;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public class S_PacketSendFailedEvent extends Event {
public final Packet packet;

View File

@@ -6,10 +6,18 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.server.events;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.server.ConnectionHandler;
package dev.unlegitdqrk.unlegitlibrary.network.system.server.events;
import dev.unlegitdqrk.unlegitlibrary.event.impl.Event;
import dev.unlegitdqrk.unlegitlibrary.network.system.server.ConnectionHandler;
public class S_UnknownObjectReceivedEvent extends Event {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.utils;
package dev.unlegitdqrk.unlegitlibrary.network.utils;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.io.*;
import java.net.URL;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.utils;
package dev.unlegitdqrk.unlegitlibrary.network.utils;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.io.*;
import java.net.ServerSocket;

View File

@@ -6,7 +6,15 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.utils;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.network.utils;
import java.io.*;
import java.nio.file.Files;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.utils;
package dev.unlegitdqrk.unlegitlibrary.network.utils;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import javax.net.ssl.HttpsURLConnection;
import java.io.BufferedReader;

View File

@@ -0,0 +1,21 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package dev.unlegitdqrk.unlegitlibrary.number;
public enum Axis {
X, Y, Z
}

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
public class ByteUtils extends DefaultMethodsOverrider {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.math.BigDecimal;
import java.math.RoundingMode;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
public class Modulo extends DefaultMethodsOverrider {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
public class NumberConversions extends DefaultMethodsOverrider {
public static int floor(double num) {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
public class NumberUtils extends DefaultMethodsOverrider {
public static int[] toIntArray(Integer[] integers) {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,10 +14,10 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.number.vector.Vector2;
import me.finn.unlegitlibrary.number.vector.Vector3;
import dev.unlegitdqrk.unlegitlibrary.number.vector.Vector2;
import dev.unlegitdqrk.unlegitlibrary.number.vector.Vector3;
public class Quaternion {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
package dev.unlegitdqrk.unlegitlibrary.number;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.util.SplittableRandom;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.bit;
package dev.unlegitdqrk.unlegitlibrary.number.bit;
public interface BitArray {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.bit;
package dev.unlegitdqrk.unlegitlibrary.number.bit;
public enum BitArrayVersion {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.bit;
package dev.unlegitdqrk.unlegitlibrary.number.bit;
import me.finn.unlegitlibrary.number.MathHelper;
import dev.unlegitdqrk.unlegitlibrary.number.MathHelper;
import java.util.Arrays;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.bit;
package dev.unlegitdqrk.unlegitlibrary.number.bit;
import java.util.Arrays;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.molecular;
package dev.unlegitdqrk.unlegitlibrary.number.molecular;
public class MolecularAdd {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.molecular;
package dev.unlegitdqrk.unlegitlibrary.number.molecular;
import me.finn.unlegitlibrary.number.MathHelper;
import dev.unlegitdqrk.unlegitlibrary.number.MathHelper;
public class MolecularSubtract {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.vector;
package dev.unlegitdqrk.unlegitlibrary.number.vector;
public class Vector2 {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number.vector;
package dev.unlegitdqrk.unlegitlibrary.number.vector;
import me.finn.unlegitlibrary.number.Quaternion;
import dev.unlegitdqrk.unlegitlibrary.number.Quaternion;
public class Vector3 {
public float x;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.string;
package dev.unlegitdqrk.unlegitlibrary.string;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.security.SecureRandom;
import java.util.Locale;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.string;
package dev.unlegitdqrk.unlegitlibrary.string;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.string;
package dev.unlegitdqrk.unlegitlibrary.string;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.util.ArrayList;
import java.util.List;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.string.color;
package dev.unlegitdqrk.unlegitlibrary.string.color;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
public class ConsoleColor extends DefaultMethodsOverrider {
// Reset

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,9 +14,9 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.string.color;
package dev.unlegitdqrk.unlegitlibrary.string.color;
import me.finn.unlegitlibrary.utils.DefaultMethodsOverrider;
import dev.unlegitdqrk.unlegitlibrary.utils.DefaultMethodsOverrider;
import java.awt.*;
import java.util.ArrayList;

View File

@@ -1,6 +1,14 @@
package me.finn.unlegitlibrary.utils;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.number.MathHelper;
package dev.unlegitdqrk.unlegitlibrary.utils;
import dev.unlegitdqrk.unlegitlibrary.number.MathHelper;
public class Color {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.utils;
package dev.unlegitdqrk.unlegitlibrary.utils;
public class Converter extends DefaultMethodsOverrider {

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.utils;
package dev.unlegitdqrk.unlegitlibrary.utils;
public class DefaultMethodsOverrider {

View File

@@ -1,7 +1,15 @@
package me.finn.unlegitlibrary.utils;
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
import me.finn.unlegitlibrary.file.FileUtils;
import me.finn.unlegitlibrary.string.color.ConsoleColor;
package dev.unlegitdqrk.unlegitlibrary.utils;
import dev.unlegitdqrk.unlegitlibrary.file.FileUtils;
import dev.unlegitdqrk.unlegitlibrary.string.color.ConsoleColor;
import java.io.File;
import java.io.IOException;

View File

@@ -1,3 +1,11 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
@@ -6,7 +14,7 @@
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.utils;
package dev.unlegitdqrk.unlegitlibrary.utils;
public class Tuple<A, B> extends DefaultMethodsOverrider {

View File

@@ -1,12 +0,0 @@
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.event;
public abstract class EventListener {
}

View File

@@ -1,12 +0,0 @@
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.event.impl;
public abstract class Event {
}

View File

@@ -1,20 +0,0 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
public class ClientConnectedEvent extends Event {
public final NetworkClient client;
public ClientConnectedEvent(NetworkClient client) {
this.client = client;
}
}

View File

@@ -1,20 +0,0 @@
/*
* Copyright (C) 2025 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.network.system.client.events;
import me.finn.unlegitlibrary.event.impl.Event;
import me.finn.unlegitlibrary.network.system.client.NetworkClient;
public class ClientDisconnectedEvent extends Event {
public final NetworkClient client;
public ClientDisconnectedEvent(NetworkClient client) {
this.client = client;
}
}

View File

@@ -1,13 +0,0 @@
/*
* Copyright (C) 2024 UnlegitDqrk - All Rights Reserved
*
* You are unauthorized to remove this copyright.
* You have to give Credits to the Author in your project and link this GitHub site: https://github.com/UnlegitDqrk
* See LICENSE-File if exists
*/
package me.finn.unlegitlibrary.number;
public enum Axis {
X, Y, Z
}