diff --git a/API/src/main/java/prelude/api/Prelude.java b/API/src/main/java/prelude/api/Prelude.java
index f059e91..c461020 100644
--- a/API/src/main/java/prelude/api/Prelude.java
+++ b/API/src/main/java/prelude/api/Prelude.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api;
import jdk.nashorn.internal.ir.annotations.Immutable;
diff --git a/API/src/main/java/prelude/api/PreludePlayer.java b/API/src/main/java/prelude/api/PreludePlayer.java
index e1a0f4d..cee3dbb 100644
--- a/API/src/main/java/prelude/api/PreludePlayer.java
+++ b/API/src/main/java/prelude/api/PreludePlayer.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api;
import lombok.Getter;
diff --git a/API/src/main/java/prelude/api/ResentMod.java b/API/src/main/java/prelude/api/ResentMod.java
index 2a576cd..2aa8cf3 100644
--- a/API/src/main/java/prelude/api/ResentMod.java
+++ b/API/src/main/java/prelude/api/ResentMod.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api;
import lombok.Getter;
diff --git a/API/src/main/java/prelude/api/mods/AnchorRenderer.java b/API/src/main/java/prelude/api/mods/AnchorRenderer.java
index 5e16ca9..43a0095 100644
--- a/API/src/main/java/prelude/api/mods/AnchorRenderer.java
+++ b/API/src/main/java/prelude/api/mods/AnchorRenderer.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api.mods;
import prelude.api.PreludePlayer;
diff --git a/API/src/main/java/prelude/api/mods/FreeLook.java b/API/src/main/java/prelude/api/mods/FreeLook.java
index fda5a04..f29c53a 100644
--- a/API/src/main/java/prelude/api/mods/FreeLook.java
+++ b/API/src/main/java/prelude/api/mods/FreeLook.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api.mods;
import prelude.api.ResentMod;
diff --git a/API/src/main/java/prelude/api/mods/OffHand.java b/API/src/main/java/prelude/api/mods/OffHand.java
index 9af934d..f6f642e 100644
--- a/API/src/main/java/prelude/api/mods/OffHand.java
+++ b/API/src/main/java/prelude/api/mods/OffHand.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api.mods;
import prelude.api.PreludePlayer;
diff --git a/API/src/main/java/prelude/api/mods/ServerTps.java b/API/src/main/java/prelude/api/mods/ServerTps.java
index 0073829..a19f291 100644
--- a/API/src/main/java/prelude/api/mods/ServerTps.java
+++ b/API/src/main/java/prelude/api/mods/ServerTps.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api.mods;
import prelude.api.PreludePlayer;
diff --git a/API/src/main/java/prelude/api/mods/TotemUsedRenderer.java b/API/src/main/java/prelude/api/mods/TotemUsedRenderer.java
index d197377..56a35ca 100644
--- a/API/src/main/java/prelude/api/mods/TotemUsedRenderer.java
+++ b/API/src/main/java/prelude/api/mods/TotemUsedRenderer.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.api.mods;
import prelude.api.PreludePlayer;
diff --git a/Bukkit-Adapter-1-11/src/main/java/prelude/adapter/impl/Adapter_1_11.java b/Bukkit-Adapter-1-11/src/main/java/prelude/adapter/impl/Adapter_1_11.java
index bf19e45..5bd1f7a 100644
--- a/Bukkit-Adapter-1-11/src/main/java/prelude/adapter/impl/Adapter_1_11.java
+++ b/Bukkit-Adapter-1-11/src/main/java/prelude/adapter/impl/Adapter_1_11.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.adapter.impl;
import org.bukkit.Bukkit;
@@ -26,7 +44,6 @@
public final class Adapter_1_11 implements VersionAdapter {
private final JavaPlugin plugin;
- private final Map offhandItemMap = new HashMap<>();
public Adapter_1_11(JavaPlugin plugin) {
this.plugin = plugin;
@@ -84,7 +101,7 @@ public void onResurrectEvent(EntityResurrectEvent event) throws IOException {
public class OffhandListeners implements Listener {
OffHand offHand;
- private Map playerToOffhand = new HashMap<>();
+ private final Map playerToOffhand = new HashMap<>();
public OffhandListeners(OffHand offHand) {
this.offHand = offHand;
diff --git a/Bukkit-Adapter-1-16-5/src/main/java/prelude/adapter/impl/Adapter_1_16_5.java b/Bukkit-Adapter-1-16-5/src/main/java/prelude/adapter/impl/Adapter_1_16_5.java
index 0cb5c06..6d273a7 100644
--- a/Bukkit-Adapter-1-16-5/src/main/java/prelude/adapter/impl/Adapter_1_16_5.java
+++ b/Bukkit-Adapter-1-16-5/src/main/java/prelude/adapter/impl/Adapter_1_16_5.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.adapter.impl;
import org.bukkit.Bukkit;
@@ -31,7 +49,6 @@
public final class Adapter_1_16_5 implements VersionAdapter {
private final JavaPlugin plugin;
- private final Map offhandItemMap = new HashMap<>();
public Adapter_1_16_5(JavaPlugin plugin) {
this.plugin = plugin;
@@ -147,7 +164,7 @@ public void onAnchorInteract(PlayerInteractEvent event) throws IOException {
public class OffhandListeners implements Listener {
OffHand offHand;
- private Map playerToOffhand = new HashMap<>();
+ private final Map playerToOffhand = new HashMap<>();
public OffhandListeners(OffHand offHand) {
this.offHand = offHand;
diff --git a/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/Adapter_1_17.java b/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/Adapter_1_17.java
index cd3d85a..8b65b4a 100644
--- a/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/Adapter_1_17.java
+++ b/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/Adapter_1_17.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.adapter.impl;
import org.bukkit.Bukkit;
@@ -18,7 +36,6 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;
import prelude.adapter.BukkitPlayerAdapter;
-import prelude.adapter.BukkitPluginMessageSender;
import prelude.adapter.VersionAdapter;
import prelude.api.mods.AnchorRenderer;
import prelude.api.mods.OffHand;
@@ -33,7 +50,6 @@
public final class Adapter_1_17 implements VersionAdapter {
private final JavaPlugin plugin;
- private final Map offhandItemMap = new HashMap<>();
public Adapter_1_17(JavaPlugin plugin) {
this.plugin = plugin;
@@ -149,7 +165,7 @@ public void onAnchorInteract(PlayerInteractEvent event) throws IOException {
public class OffhandListeners implements Listener {
OffHand offHand;
- private Map playerToOffhand = new HashMap<>();
+ private final Map playerToOffhand = new HashMap<>();
public OffhandListeners(OffHand offHand) {
this.offHand = offHand;
diff --git a/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/BukkitPluginMessageSender_1_17.java b/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/BukkitPluginMessageSender_1_17.java
index 24694d1..459c486 100644
--- a/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/BukkitPluginMessageSender_1_17.java
+++ b/Bukkit-Adapter-1-17/src/main/java/prelude/adapter/impl/BukkitPluginMessageSender_1_17.java
@@ -1,3 +1,27 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2018-2020 ESL Gaming Online, Inc
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
package prelude.adapter.impl;
import lombok.Getter;
diff --git a/Bukkit-Adapter-1-9/src/main/java/prelude/adapter/impl/Adapter_1_9.java b/Bukkit-Adapter-1-9/src/main/java/prelude/adapter/impl/Adapter_1_9.java
index a61da88..3df9c6c 100644
--- a/Bukkit-Adapter-1-9/src/main/java/prelude/adapter/impl/Adapter_1_9.java
+++ b/Bukkit-Adapter-1-9/src/main/java/prelude/adapter/impl/Adapter_1_9.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.adapter.impl;
import org.bukkit.Bukkit;
diff --git a/Bukkit-Adapter/src/main/java/prelude/adapter/AbstractBukkitPluginMessageSender.java b/Bukkit-Adapter/src/main/java/prelude/adapter/AbstractBukkitPluginMessageSender.java
index fedbe73..073ebf1 100644
--- a/Bukkit-Adapter/src/main/java/prelude/adapter/AbstractBukkitPluginMessageSender.java
+++ b/Bukkit-Adapter/src/main/java/prelude/adapter/AbstractBukkitPluginMessageSender.java
@@ -1,3 +1,27 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2018-2020 ESL Gaming Online, Inc
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
package prelude.adapter;
import org.bukkit.entity.Player;
diff --git a/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPlayerAdapter.java b/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPlayerAdapter.java
index dd742a0..1a898fe 100644
--- a/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPlayerAdapter.java
+++ b/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPlayerAdapter.java
@@ -1,7 +1,24 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.adapter;
import org.bukkit.entity.Player;
-import org.bukkit.plugin.java.JavaPlugin;
import prelude.api.Prelude;
import prelude.api.PreludePlayer;
import prelude.protocol.S2CPacket;
diff --git a/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPluginMessageSender.java b/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPluginMessageSender.java
index e229b89..9a1701b 100644
--- a/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPluginMessageSender.java
+++ b/Bukkit-Adapter/src/main/java/prelude/adapter/BukkitPluginMessageSender.java
@@ -1,3 +1,27 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2018-2020 ESL Gaming Online, Inc
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
package prelude.adapter;
import lombok.Getter;
diff --git a/Bukkit-Adapter/src/main/java/prelude/adapter/VersionAdapter.java b/Bukkit-Adapter/src/main/java/prelude/adapter/VersionAdapter.java
index 7323647..1436176 100644
--- a/Bukkit-Adapter/src/main/java/prelude/adapter/VersionAdapter.java
+++ b/Bukkit-Adapter/src/main/java/prelude/adapter/VersionAdapter.java
@@ -1,14 +1,30 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.adapter;
import org.bukkit.entity.Player;
-import prelude.api.PreludePlayer;
import prelude.api.mods.AnchorRenderer;
import prelude.api.mods.OffHand;
import prelude.api.mods.TotemUsedRenderer;
import java.util.logging.Logger;
-
public interface VersionAdapter {
/**
diff --git a/Bukkit-Core/src/main/java/prelude/BaseImplementation.java b/Bukkit-Core/src/main/java/prelude/BaseImplementation.java
index f81d290..f20ce18 100644
--- a/Bukkit-Core/src/main/java/prelude/BaseImplementation.java
+++ b/Bukkit-Core/src/main/java/prelude/BaseImplementation.java
@@ -1,27 +1,39 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
-import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.messaging.PluginMessageListener;
-import org.bukkit.scheduler.BukkitRunnable;
import prelude.adapter.BukkitPlayerAdapter;
import prelude.adapter.VersionAdapter;
import prelude.api.Prelude;
-import prelude.api.PreludePlayer;
import prelude.mods.BukkitAnchorRenderer;
import prelude.mods.BukkitOffHand;
import prelude.mods.BukkitServerTps;
import prelude.mods.BukkitTotemUsedRenderer;
import prelude.protocol.C2SPacket;
-import prelude.protocol.packets.c2s.ClientHandshakePacket;
import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.util.Arrays;
import java.util.LinkedList;
import java.util.Optional;
@@ -123,6 +135,10 @@ public void onPluginMessageReceived(String channel, Player player, byte[] messag
// --------------- BEGIN COPYING FROM ESSENTIALS ----------------
+ /*
+ * Note: I could not find an appropriate GPL 3 header copyright, so there isn't one for this piece of copied code
+ * */
+
/*
* Copied from https://github.com/essentials/Essentials/blob/a2c43d822c66e617a84df9a8f074b9c3a3e32fae/Essentials/src/com/earth2me/essentials/EssentialsTimer.java
* */
diff --git a/Bukkit-Core/src/main/java/prelude/BukkitC2SPacketHandler.java b/Bukkit-Core/src/main/java/prelude/BukkitC2SPacketHandler.java
index 4eb31cd..7730b0b 100644
--- a/Bukkit-Core/src/main/java/prelude/BukkitC2SPacketHandler.java
+++ b/Bukkit-Core/src/main/java/prelude/BukkitC2SPacketHandler.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude;
import org.bukkit.Bukkit;
diff --git a/Bukkit-Core/src/main/java/prelude/BukkitPrelude.java b/Bukkit-Core/src/main/java/prelude/BukkitPrelude.java
index a79709b..4e1a164 100644
--- a/Bukkit-Core/src/main/java/prelude/BukkitPrelude.java
+++ b/Bukkit-Core/src/main/java/prelude/BukkitPrelude.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude;
import com.google.common.base.Preconditions;
@@ -41,9 +59,6 @@ public PreludePlayer getPreludePlayer(UUID uuid) throws IllegalStateException {
@Override
public void validateConnection(PreludePlayer preludePlayer) throws IOException {
- //Player player = Bukkit.getPlayer(preludePlayer.getUuid());
-
-
// TODO
// ServerHandshakePacket pkt = ServerHandshakePacket.builder().majorVersion().build()
diff --git a/Bukkit-Core/src/main/java/prelude/DefaultVersionAdapter.java b/Bukkit-Core/src/main/java/prelude/DefaultVersionAdapter.java
new file mode 100644
index 0000000..691177e
--- /dev/null
+++ b/Bukkit-Core/src/main/java/prelude/DefaultVersionAdapter.java
@@ -0,0 +1,41 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package prelude;
+
+import prelude.adapter.VersionAdapter;
+import prelude.api.mods.AnchorRenderer;
+import prelude.api.mods.OffHand;
+import prelude.api.mods.TotemUsedRenderer;
+
+public class DefaultVersionAdapter implements VersionAdapter {
+ @Override
+ public void registerAnchorListener(AnchorRenderer anchorMod) {
+
+ }
+
+ @Override
+ public void registerTotemListener(TotemUsedRenderer totemMod) {
+
+ }
+
+ @Override
+ public void registerOffhandListeners(OffHand offHandMod) {
+
+ }
+}
diff --git a/Bukkit-Core/src/main/java/prelude/PreludePlugin.java b/Bukkit-Core/src/main/java/prelude/PreludePlugin.java
index c0ee804..ed9b62f 100644
--- a/Bukkit-Core/src/main/java/prelude/PreludePlugin.java
+++ b/Bukkit-Core/src/main/java/prelude/PreludePlugin.java
@@ -1,9 +1,26 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.bukkit.configuration.ConfigurationSection;
-import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.plugin.java.JavaPluginLoader;
@@ -14,13 +31,9 @@
import prelude.adapter.impl.Adapter_1_17;
import prelude.adapter.impl.Adapter_1_9;
import prelude.api.Prelude;
-import prelude.api.mods.AnchorRenderer;
-import prelude.api.mods.OffHand;
-import prelude.api.mods.TotemUsedRenderer;
import prelude.mods.*;
import java.io.File;
-import java.util.Optional;
@NoArgsConstructor
public final class PreludePlugin extends JavaPlugin {
@@ -40,13 +53,13 @@ private PreludePlugin(JavaPluginLoader loader, PluginDescriptionFile description
public void onLoad() {
VersionUtil.BukkitVersion version = VersionUtil.getServerBukkitVersion();
if (version.isUnknown()) {
- adapter = new UnknownVersionAdapter();
+ adapter = new DefaultVersionAdapter();
getLogger().warning("Server is running an outdated version ({}) and does not fully support all features."
.replace("{}", version.toString()));
}
else if (version.equals(VersionUtil.v1_8_8_R01)) {
- adapter = new UnknownVersionAdapter();
+ adapter = new DefaultVersionAdapter();
getLogger().warning("Server is running an outdated version ({}) and does not fully support all features."
.replace("{}", version.toString()));
}
@@ -72,7 +85,7 @@ else if (version.isHigherThanOrEqualTo(VersionUtil.v1_17_R01)) {
}
else {
- adapter = new UnknownVersionAdapter();
+ adapter = new DefaultVersionAdapter();
getLogger().warning("Server is running an outdated version ({}) and does not fully support all features."
.replace("{}", version.toString()));
diff --git a/Bukkit-Core/src/main/java/prelude/UnknownVersionAdapter.java b/Bukkit-Core/src/main/java/prelude/UnknownVersionAdapter.java
deleted file mode 100644
index ed97174..0000000
--- a/Bukkit-Core/src/main/java/prelude/UnknownVersionAdapter.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package prelude;
-
-import prelude.adapter.VersionAdapter;
-import prelude.api.mods.AnchorRenderer;
-import prelude.api.mods.OffHand;
-import prelude.api.mods.TotemUsedRenderer;
-
-public class UnknownVersionAdapter implements VersionAdapter {
- @Override
- public void registerAnchorListener(AnchorRenderer anchorMod) {
-
- }
-
- @Override
- public void registerTotemListener(TotemUsedRenderer totemMod) {
-
- }
-
- @Override
- public void registerOffhandListeners(OffHand offHandMod) {
-
- }
-}
diff --git a/Bukkit-Core/src/main/java/prelude/VersionUtil.java b/Bukkit-Core/src/main/java/prelude/VersionUtil.java
index fbbd5da..8488f75 100644
--- a/Bukkit-Core/src/main/java/prelude/VersionUtil.java
+++ b/Bukkit-Core/src/main/java/prelude/VersionUtil.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude;
import com.google.common.base.Objects;
@@ -7,6 +25,11 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+
+/**
+ * NOTE: I am applying the default GPL 3.0 license header to this file, because I am unaware of where this file originated
+ * If you know where this file originated, message either sire3, quinterlord, or preva1l on discord.
+ * */
@SuppressWarnings("unused")
public final class VersionUtil {
diff --git a/Bukkit-Core/src/main/java/prelude/mods/BukkitAnchorRenderer.java b/Bukkit-Core/src/main/java/prelude/mods/BukkitAnchorRenderer.java
index 63c3299..9139a1c 100644
--- a/Bukkit-Core/src/main/java/prelude/mods/BukkitAnchorRenderer.java
+++ b/Bukkit-Core/src/main/java/prelude/mods/BukkitAnchorRenderer.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.mods;
import prelude.PreludePlugin;
diff --git a/Bukkit-Core/src/main/java/prelude/mods/BukkitFreeLook.java b/Bukkit-Core/src/main/java/prelude/mods/BukkitFreeLook.java
index 31f1eb9..c9efb0e 100644
--- a/Bukkit-Core/src/main/java/prelude/mods/BukkitFreeLook.java
+++ b/Bukkit-Core/src/main/java/prelude/mods/BukkitFreeLook.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.mods;
import prelude.PreludePlugin;
diff --git a/Bukkit-Core/src/main/java/prelude/mods/BukkitOffHand.java b/Bukkit-Core/src/main/java/prelude/mods/BukkitOffHand.java
index fac9828..e9f4783 100644
--- a/Bukkit-Core/src/main/java/prelude/mods/BukkitOffHand.java
+++ b/Bukkit-Core/src/main/java/prelude/mods/BukkitOffHand.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.mods;
import prelude.PreludePlugin;
diff --git a/Bukkit-Core/src/main/java/prelude/mods/BukkitServerTps.java b/Bukkit-Core/src/main/java/prelude/mods/BukkitServerTps.java
index 7686274..ed3d74c 100644
--- a/Bukkit-Core/src/main/java/prelude/mods/BukkitServerTps.java
+++ b/Bukkit-Core/src/main/java/prelude/mods/BukkitServerTps.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.mods;
import prelude.PreludePlugin;
diff --git a/Bukkit-Core/src/main/java/prelude/mods/BukkitTotemUsedRenderer.java b/Bukkit-Core/src/main/java/prelude/mods/BukkitTotemUsedRenderer.java
index 0d07616..34cfa7b 100644
--- a/Bukkit-Core/src/main/java/prelude/mods/BukkitTotemUsedRenderer.java
+++ b/Bukkit-Core/src/main/java/prelude/mods/BukkitTotemUsedRenderer.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude.mods;
import prelude.PreludePlugin;
diff --git a/Bukkit-Core/src/test/java/prelude/PreludeBukkitTests.java b/Bukkit-Core/src/test/java/prelude/PreludeBukkitTests.java
index 833a40b..240f669 100644
--- a/Bukkit-Core/src/test/java/prelude/PreludeBukkitTests.java
+++ b/Bukkit-Core/src/test/java/prelude/PreludeBukkitTests.java
@@ -1,3 +1,21 @@
+/*
+ * Prelude-API is a plugin to implement features for the Client.
+ * Copyright (C) 2024 cire3, Preva1l
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
package prelude;
import be.seeseemelk.mockbukkit.MockBukkit;