commit 7d0e4853a15d437f7e943d1c17b8820af09f6ba6 Author: ef3d0c3e Date: Fri Aug 9 09:55:06 2024 +0200 First Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e59d408 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +**/target +*.iml +.idea diff --git a/core/pom.xml b/core/pom.xml new file mode 100644 index 0000000..c6b83ae --- /dev/null +++ b/core/pom.xml @@ -0,0 +1,76 @@ + + + 4.0.0 + + + org.ef3d0c3e.sheepwars + SheepWars + 1.0-SNAPSHOT + + + SheepWars-core + + + + + src/main/resources + false + + + + + + + org.spigotmc + spigot + 1.21.1-R0.1-SNAPSHOT + remapped-mojang + provided + + + org.spigotmc + spigot-api + 1.21.1-R0.1-SNAPSHOT + provided + + + com.comphenix.protocol + ProtocolLib + 5.2.0-SNAPSHOT-726 + system + ${pom.basedir}/../libs/ProtocolLib.jar + + + com.sk89q.worldedit + worldedit-bukkit + 7.3.5 + system + ${pom.basedir}/../libs/worldedit-bukkit-7.3.5.jar + + + fr.mrmicky + fastboard + 2.1.3 + + + org.spigotmc + spigot-api + 1.21.1-R0.1-SNAPSHOT + compile + + + org.bukkit + bukkit + 1.21.1-R0.1-SNAPSHOT + compile + + + org.bukkit + bukkit + 1.21.1-R0.1-SNAPSHOT + compile + + + diff --git a/core/src/main/java/org/ef3d0c3e/sheepwars/SheepWars.java b/core/src/main/java/org/ef3d0c3e/sheepwars/SheepWars.java new file mode 100644 index 0000000..8336de9 --- /dev/null +++ b/core/src/main/java/org/ef3d0c3e/sheepwars/SheepWars.java @@ -0,0 +1,21 @@ +package org.ef3d0c3e.sheepwars; + +import org.bukkit.Bukkit; +import org.bukkit.plugin.java.JavaPlugin; + +public final class SheepWars extends JavaPlugin +{ + @Override + public void onLoad() { + } + + @Override + public void onDisable() { + Bukkit.getServer().getConsoleSender().sendMessage("§8[§aSheepWars§8]:§7 Plugin disabled"); + } + + @Override + public void onEnable() { + Bukkit.getServer().getConsoleSender().sendMessage("§8[§aSheepWars§8]:§7 Plugin enabled!"); + } +} diff --git a/core/src/main/resources/exports/config.yml b/core/src/main/resources/exports/config.yml new file mode 100644 index 0000000..476f9b7 --- /dev/null +++ b/core/src/main/resources/exports/config.yml @@ -0,0 +1,4 @@ +lobby: + world: "lobby" +game: + overworld: "sheepwars" diff --git a/core/src/main/resources/exports/lobby.schem b/core/src/main/resources/exports/lobby.schem new file mode 100644 index 0000000..eba5048 Binary files /dev/null and b/core/src/main/resources/exports/lobby.schem differ diff --git a/core/src/main/resources/exports/lobby.yml b/core/src/main/resources/exports/lobby.yml new file mode 100644 index 0000000..e6a7089 --- /dev/null +++ b/core/src/main/resources/exports/lobby.yml @@ -0,0 +1,7 @@ +offset: [0, 64, 0] +spawn: [0.5, 65, 0.5, 0, 0] +limbo: 55 +info: [0.5, 59.5, 20.5, 0, 0] +skin: [2.5, 58, 40.5, -179.9, 0] +team: [6.5, 58, 39.5, -179.9, 0] +kit: [-1.5, 58, 40.5, -179.9, 0] diff --git a/core/src/main/resources/exports/locales/fr.yml b/core/src/main/resources/exports/locales/fr.yml new file mode 100644 index 0000000..21ff519 --- /dev/null +++ b/core/src/main/resources/exports/locales/fr.yml @@ -0,0 +1,81 @@ +config: + name: french + displayname: Français + banner: + ==: org.bukkit.inventory.ItemStack + v: 3578 + type: WHITE_BANNER + meta: + ==: ItemMeta + meta-type: BANNER + patterns: + - ==: Pattern + color: BLUE + pattern: ls + - ==: Pattern + color: RED + pattern: rs +system: + join: "§8[§a+§8] §7{0}" + quit: "§8[§c-§8] §7{0}" +game: + settings: + radiuschange: "Rayons de la map modifiés: {0} → {1}" + durationchange: "Durée de la partie modifiée: {0}" +gui: + next: "Suivant" + previous: "Précédent" +items: + rightclick: "(Click-Droit)" + rocket: "Roquette" + team: "Équipe" + teamlore: + - "Utilisez cet item pour" + - "changer d'équipe" + skin: "Skin" + skinlore: + - "Utilisez cet item pour" + - "changer de skin" + kit: "Kit" + kitlore: + - "Utilisez cet item pour" + - "changer de kit" +lobby: + info: + radius: "Taille de la map" + duration: "Durée de la partie" +scoreboard: + kit: "Kit" + team: "Équipe" +skin: + picker: "Choisissez un skin" + npcname: "Choisissez un skin" + npccurrent: "Skin actuel:" + menu: "Skin actuel: {0}" + menulore: + - "" + - "Remettre à zéro" +team: + picker: "Choisissez une équipe" + npcname: "Choisissez une équipe" + npccurrent: "Votre équipe:" + iconpicker: "Choisissez une icône" + create: + item: "Créez une équipe" + itemlore: + - "Utilisez cet item pour créer" + - "une nouvelle équipe" + gui: "Nommez votre équipe" + defaultname: "<Équipe>" + dupe: "L''équipe {0} existe déjà!" + toolong: "Le nom de l''équipe est trop long! (max: {0})" + tooshort: "Le nom de l''équipe est trop court! (min: {0})" + invalidcolor: "Veuillez entrer une couleur valide." + created: "L''équipe {0} vient d''être crée!" + +kit: + picker: "Choisissez un kit" + npcname: "Choisissez un kit" + npccurrent: "Votre kit:" + zombie: + zombification: "Zombification" diff --git a/core/src/main/resources/plugin.yml b/core/src/main/resources/plugin.yml new file mode 100644 index 0000000..445f977 --- /dev/null +++ b/core/src/main/resources/plugin.yml @@ -0,0 +1,9 @@ +name: SheepWars +version: '2.0α' +main: org.ef3d0c3e.sheepwars.SheepWars +api-version: 1.21 +depend: [ ProtocolLib, WorldEdit ] +authors: [ ef3d0c3e ] +load: STARTUP +description: The SheepWars minigame, for free, forever +website: git.pundalik.org/SheepWars diff --git a/dist/dependency-reduced-pom.xml b/dist/dependency-reduced-pom.xml new file mode 100644 index 0000000..652f19a --- /dev/null +++ b/dist/dependency-reduced-pom.xml @@ -0,0 +1,42 @@ + + + + SheepWars + org.ef3d0c3e.sheepwars + 1.0-SNAPSHOT + + 4.0.0 + SheepWars-dist + + + + maven-shade-plugin + 3.6.0 + + + package + + shade + + + + + + + fr.mrmicky.fastboard + org.ef3d0c3e.sheepwars.fastboard + + + + + + maven-jar-plugin + 2.3.2 + + Hunt + /home/baraquiel/Programming/Minecraft/Sheepwars211/plugins + + + + + diff --git a/dist/pom.xml b/dist/pom.xml new file mode 100644 index 0000000..48e0979 --- /dev/null +++ b/dist/pom.xml @@ -0,0 +1,64 @@ + + + 4.0.0 + + org.ef3d0c3e.sheepwars + SheepWars + 1.0-SNAPSHOT + + + SheepWars-dist + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.6.0 + + + package + + shade + + + + + + + fr.mrmicky.fastboard + org.ef3d0c3e.sheepwars.fastboard + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + Hunt + /home/baraquiel/Programming/Minecraft/Sheepwars211/plugins + + + + + + + + org.ef3d0c3e.sheepwars + SheepWars-core + 1.0-SNAPSHOT + compile + + + + org.ef3d0c3e.sheepwars + SheepWars-spigot-1.21.1 + 1.0-SNAPSHOT + compile + + + diff --git a/libs/ProtocolLib.jar b/libs/ProtocolLib.jar new file mode 100644 index 0000000..92d1dd7 Binary files /dev/null and b/libs/ProtocolLib.jar differ diff --git a/libs/worldedit-bukkit-7.3.5.jar b/libs/worldedit-bukkit-7.3.5.jar new file mode 100644 index 0000000..1268711 Binary files /dev/null and b/libs/worldedit-bukkit-7.3.5.jar differ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..a1f2ba9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,69 @@ + + + 4.0.0 + + org.ef3d0c3e.sheepwars + SheepWars + 1.0-SNAPSHOT + + SheepWars + pom + + core + spigot-1.21.1 + dist + + + + 22 + 22 + 22 + UTF-8 + + + + + central + https://repo1.maven.org/maven2/ + + + spigotmc-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + sonatype + https://oss.sonatype.org/content/groups/public/ + + + lukasalt-repo + https://repo.lukasa.lt/repository/maven-public/ + + + + + + org.reflections + reflections + 0.10.2 + + + org.spigotmc + plugin-annotations + 1.2.3-SNAPSHOT + + + org.projectlombok + lombok + RELEASE + compile + + + org.jetbrains + annotations + RELEASE + compile + + + diff --git a/spigot-1.21.1/pom.xml b/spigot-1.21.1/pom.xml new file mode 100644 index 0000000..858df9d --- /dev/null +++ b/spigot-1.21.1/pom.xml @@ -0,0 +1,75 @@ + + + 4.0.0 + + org.ef3d0c3e.sheepwars + SheepWars + 1.0-SNAPSHOT + + + SheepWars-spigot-1.21.1 + + + 22 + 22 + 22 + 1.21.1-R0.1-SNAPSHOT + + + + + + net.md-5 + specialsource-maven-plugin + 1.2.2 + + + package + + remap + + remap-obf + + org.spigotmc:minecraft-server:${spigot-version}:txt:maps-mojang + true + org.spigotmc:spigot:${spigot-version}:jar:remapped-mojang + true + remapped-obf + + + + package + + remap + + remap-spigot + + ${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar + org.spigotmc:minecraft-server:${spigot-version}:csrg:maps-spigot + org.spigotmc:spigot:${spigot-version}:jar:remapped-obf + + + + + + + + + + org.ef3d0c3e.sheepwars + SheepWars-core + 1.0-SNAPSHOT + provided + + + org.spigotmc + spigot + ${spigot-version} + remapped-mojang + provided + + + +