diff --git a/.gitignore b/.gitignore index afd191b..9d0620d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,8 @@ hs_err_pid* # Project files -/.idea/ +/.idea/* +!/.idea/copyright/ /.gradle/ /build/ /out/ diff --git a/.idea/copyright/GPL_3_0.xml b/.idea/copyright/GPL_3_0.xml new file mode 100644 index 0000000..7ef0cdb --- /dev/null +++ b/.idea/copyright/GPL_3_0.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e25b13b --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java b/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java index e301391..bee988a 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java +++ b/src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java @@ -1,16 +1,37 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack; import com.viaversion.viabackwards.api.ViaBackwardsPlatform; import com.viaversion.viaversion.ViaManagerImpl; import com.viaversion.viaversion.api.Via; import com.viaversion.viaversion.api.data.MappingDataLoader; -import com.viaversion.viaversion.api.platform.*; +import com.viaversion.viaversion.api.platform.ViaInjector; +import com.viaversion.viaversion.api.platform.ViaPlatform; +import com.viaversion.viaversion.api.platform.ViaPlatformLoader; import com.viaversion.viaversion.commands.ViaCommandHandler; import com.viaversion.viaversion.protocol.ProtocolManagerImpl; import de.gerrygames.viarewind.api.ViaRewindPlatform; import net.raphimc.vialegacy.platform.ViaLegacyPlatform; import net.raphimc.viaprotocolhack.impl.platform.ViaVersionPlatformImpl; -import net.raphimc.viaprotocolhack.impl.viaversion.*; +import net.raphimc.viaprotocolhack.impl.viaversion.VPCommandHandler; +import net.raphimc.viaprotocolhack.impl.viaversion.VPInjector; +import net.raphimc.viaprotocolhack.impl.viaversion.VPLoader; import net.raphimc.viaprotocolhack.util.JLoggerToSLF4J; import org.slf4j.LoggerFactory; diff --git a/src/main/java/net/raphimc/viaprotocolhack/commands/UserCommandSender.java b/src/main/java/net/raphimc/viaprotocolhack/commands/UserCommandSender.java index 1629e28..734870b 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/commands/UserCommandSender.java +++ b/src/main/java/net/raphimc/viaprotocolhack/commands/UserCommandSender.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.commands; import com.viaversion.viaversion.api.Via; diff --git a/src/main/java/net/raphimc/viaprotocolhack/commands/subs/ConnectionsSubCommand.java b/src/main/java/net/raphimc/viaprotocolhack/commands/subs/ConnectionsSubCommand.java index cfb540f..e0cfc7f 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/commands/subs/ConnectionsSubCommand.java +++ b/src/main/java/net/raphimc/viaprotocolhack/commands/subs/ConnectionsSubCommand.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.commands.subs; import com.viaversion.viaversion.api.Via; diff --git a/src/main/java/net/raphimc/viaprotocolhack/commands/subs/LeakDetectSubCommand.java b/src/main/java/net/raphimc/viaprotocolhack/commands/subs/LeakDetectSubCommand.java index 5afff94..f30910e 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/commands/subs/LeakDetectSubCommand.java +++ b/src/main/java/net/raphimc/viaprotocolhack/commands/subs/LeakDetectSubCommand.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.commands.subs; import com.viaversion.viaversion.api.command.ViaCommandSender; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaBackwardsPlatformImpl.java b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaBackwardsPlatformImpl.java index 73d5477..da69ad1 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaBackwardsPlatformImpl.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaBackwardsPlatformImpl.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.platform; import com.viaversion.viabackwards.api.ViaBackwardsPlatform; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaLegacyPlatformImpl.java b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaLegacyPlatformImpl.java index a920766..c4675b0 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaLegacyPlatformImpl.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaLegacyPlatformImpl.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.platform; import com.viaversion.viaversion.api.Via; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaRewindPlatformImpl.java b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaRewindPlatformImpl.java index a6720c7..51bcb36 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaRewindPlatformImpl.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaRewindPlatformImpl.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.platform; import com.viaversion.viaversion.api.Via; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaVersionPlatformImpl.java b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaVersionPlatformImpl.java index 1aee838..63a4e92 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaVersionPlatformImpl.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/platform/ViaVersionPlatformImpl.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.platform; import com.google.common.util.concurrent.ThreadFactoryBuilder; @@ -16,7 +33,9 @@ import net.raphimc.viaprotocolhack.ViaProtocolHack; import net.raphimc.viaprotocolhack.commands.UserCommandSender; import net.raphimc.viaprotocolhack.impl.viaversion.VPApiBase; import net.raphimc.viaprotocolhack.impl.viaversion.VPViaConfig; -import net.raphimc.viaprotocolhack.util.*; +import net.raphimc.viaprotocolhack.util.DefaultEventLoop; +import net.raphimc.viaprotocolhack.util.FutureTaskId; +import net.raphimc.viaprotocolhack.util.JLoggerToSLF4J; import org.slf4j.LoggerFactory; import java.io.File; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/providers/VPMovementTransmitterProvider.java b/src/main/java/net/raphimc/viaprotocolhack/impl/providers/VPMovementTransmitterProvider.java index c423211..9b48e38 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/providers/VPMovementTransmitterProvider.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/providers/VPMovementTransmitterProvider.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.providers; import com.viaversion.viaversion.api.connection.UserConnection; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPApiBase.java b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPApiBase.java index b1b0d5c..e73ef8e 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPApiBase.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPApiBase.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.viaversion; import com.viaversion.viaversion.ViaAPIBase; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPCommandHandler.java b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPCommandHandler.java index bab312c..184b12c 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPCommandHandler.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPCommandHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.viaversion; import com.viaversion.viaversion.commands.ViaCommandHandler; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPInjector.java b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPInjector.java index 323a742..ab11152 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPInjector.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPInjector.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.viaversion; import com.viaversion.viaversion.api.platform.ViaInjector; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPLoader.java b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPLoader.java index 8bb9355..a863b77 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPLoader.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPLoader.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.viaversion; import com.viaversion.viaversion.api.Via; diff --git a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPViaConfig.java b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPViaConfig.java index 9cef651..90dc2dc 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPViaConfig.java +++ b/src/main/java/net/raphimc/viaprotocolhack/impl/viaversion/VPViaConfig.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.impl.viaversion; @@ -5,7 +22,9 @@ import com.google.common.collect.Lists; import com.viaversion.viaversion.configuration.AbstractViaConfig; import java.io.File; -import java.util.*; +import java.util.Collections; +import java.util.List; +import java.util.Map; public class VPViaConfig extends AbstractViaConfig { diff --git a/src/main/java/net/raphimc/viaprotocolhack/netty/ViaDecodeHandler.java b/src/main/java/net/raphimc/viaprotocolhack/netty/ViaDecodeHandler.java index 3444847..718ccd0 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/netty/ViaDecodeHandler.java +++ b/src/main/java/net/raphimc/viaprotocolhack/netty/ViaDecodeHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.netty; import com.viaversion.viaversion.api.connection.UserConnection; diff --git a/src/main/java/net/raphimc/viaprotocolhack/netty/ViaEncodeHandler.java b/src/main/java/net/raphimc/viaprotocolhack/netty/ViaEncodeHandler.java index 815988f..0b5bc0f 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/netty/ViaEncodeHandler.java +++ b/src/main/java/net/raphimc/viaprotocolhack/netty/ViaEncodeHandler.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.netty; import com.viaversion.viaversion.api.connection.UserConnection; diff --git a/src/main/java/net/raphimc/viaprotocolhack/netty/ViaPipeline.java b/src/main/java/net/raphimc/viaprotocolhack/netty/ViaPipeline.java index 9e8cae4..cfca035 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/netty/ViaPipeline.java +++ b/src/main/java/net/raphimc/viaprotocolhack/netty/ViaPipeline.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.netty; public class ViaPipeline { diff --git a/src/main/java/net/raphimc/viaprotocolhack/util/DefaultEventLoop.java b/src/main/java/net/raphimc/viaprotocolhack/util/DefaultEventLoop.java index 4127c37..a82891f 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/util/DefaultEventLoop.java +++ b/src/main/java/net/raphimc/viaprotocolhack/util/DefaultEventLoop.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.util; import io.netty.channel.EventLoopGroup; diff --git a/src/main/java/net/raphimc/viaprotocolhack/util/FutureTaskId.java b/src/main/java/net/raphimc/viaprotocolhack/util/FutureTaskId.java index 65f74e8..dc8c695 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/util/FutureTaskId.java +++ b/src/main/java/net/raphimc/viaprotocolhack/util/FutureTaskId.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.util; import com.viaversion.viaversion.api.platform.PlatformTask; diff --git a/src/main/java/net/raphimc/viaprotocolhack/util/JLoggerToSLF4J.java b/src/main/java/net/raphimc/viaprotocolhack/util/JLoggerToSLF4J.java index 8752842..23bb08f 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/util/JLoggerToSLF4J.java +++ b/src/main/java/net/raphimc/viaprotocolhack/util/JLoggerToSLF4J.java @@ -1,7 +1,26 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.util; import java.text.MessageFormat; -import java.util.logging.*; +import java.util.logging.Level; +import java.util.logging.LogRecord; +import java.util.logging.Logger; public class JLoggerToSLF4J extends Logger { diff --git a/src/main/java/net/raphimc/viaprotocolhack/util/VersionEnum.java b/src/main/java/net/raphimc/viaprotocolhack/util/VersionEnum.java index f06fca4..0565a12 100644 --- a/src/main/java/net/raphimc/viaprotocolhack/util/VersionEnum.java +++ b/src/main/java/net/raphimc/viaprotocolhack/util/VersionEnum.java @@ -1,3 +1,20 @@ +/* + * This file is part of ViaProtocolHack - https://github.com/RaphiMC/ViaProtocolHack + * Copyright (C) 2023 RK_01/RaphiMC and contributors + * + * 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 net.raphimc.viaprotocolhack.util; import com.viaversion.viaversion.api.connection.UserConnection;