This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <filters> | |
| <filter> | |
| <artifact>com.cronutils:cron-utils</artifact> | |
| <excludes> | |
| <exclude>com/cronutils/descriptor/**</exclude> | |
| <exclude>com/cronutils/validation/**</exclude> | |
| <exclude>com/cronutils/converter/**</exclude> | |
| <exclude>com/cronutils/CronUtilsI18N**</exclude> | |
| </excludes> | |
| </filter> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Script to add <name> element in POM.xml based on artifactId. | |
| Replaces a prefix in the artifactId with a new value and formats it as a proper name. | |
| Automatically finds all pom.xml files in current directory and subdirectories. | |
| Preserves XML formatting and indentation. | |
| Only affects the root artifactId, not those in parent, dependencies, etc. | |
| Skips files that already have a <name> tag. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import xml.etree.ElementTree as ET | |
| # Define the root directory to search for pom.xml files | |
| root_dir = "/home/hsgamer/IdeaProjects/Topper" | |
| # Function to convert kebab-case to Pascal Case with spaces | |
| def kebab_to_pascal_with_spaces(s): | |
| return ' '.join(word.capitalize() for word in s.split('-')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.byteflux.libby.BukkitLibraryManager; | |
| import net.byteflux.libby.Library; | |
| import org.bukkit.plugin.Plugin; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.UncheckedIOException; | |
| import java.lang.reflect.Field; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| MODULE_DIRS=() | |
| # Function to recursively find valid pom.xml files | |
| find_modules() { | |
| local dir="$1" | |
| POM_FILE="$dir/pom.xml" | |
| if [[ -f "$POM_FILE" ]] && grep -q '<packaging>pom</packaging>' "$POM_FILE"; then | |
| MODULE_DIRS+=("$dir") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <version>3.6.1</version> | |
| <executions> | |
| <execution> | |
| <id>copy-dependencies</id> | |
| <phase>package</phase> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <filters> | |
| <filter> | |
| <artifact>com.cronutils:cron-utils</artifact> | |
| <excludes> | |
| <exclude>com/cronutils/descriptor/**</exclude> | |
| <exclude>com/cronutils/validation/**</exclude> | |
| <exclude>com/cronutils/converter/**</exclude> | |
| <exclude>com/cronutils/CronUtilsI18N**</exclude> | |
| </excludes> | |
| </filter> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Disable PaperMC's PluginRemapper --> | |
| <transformers> | |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
| <manifestEntries> | |
| <paperweight-mappings-namespace>mojang</paperweight-mappings-namespace> | |
| </manifestEntries> | |
| </transformer> | |
| </transformers> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.minestom.server.MinecraftServer; | |
| import net.minestom.server.entity.Player; | |
| import net.minestom.server.entity.PlayerSkin; | |
| import net.minestom.server.event.Event; | |
| import net.minestom.server.event.EventNode; | |
| import net.minestom.server.event.instance.RemoveEntityFromInstanceEvent; | |
| import net.minestom.server.event.player.PlayerSpawnEvent; | |
| import net.minestom.server.instance.Instance; | |
| import net.minestom.server.network.packet.server.play.PlayerInfoPacket; | |
| import net.minestom.server.tag.Tag; |