First Commit
This commit is contained in:
commit
7d0e4853a1
14 changed files with 451 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
**/target
|
||||
*.iml
|
||||
.idea
|
76
core/pom.xml
Normal file
76
core/pom.xml
Normal file
|
@ -0,0 +1,76 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>SheepWars-core</artifactId>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
<version>1.21.1-R0.1-SNAPSHOT</version>
|
||||
<classifier>remapped-mojang</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.21.1-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.comphenix.protocol</groupId>
|
||||
<artifactId>ProtocolLib</artifactId>
|
||||
<version>5.2.0-SNAPSHOT-726</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${pom.basedir}/../libs/ProtocolLib.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sk89q.worldedit</groupId>
|
||||
<artifactId>worldedit-bukkit</artifactId>
|
||||
<version>7.3.5</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${pom.basedir}/../libs/worldedit-bukkit-7.3.5.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>fr.mrmicky</groupId>
|
||||
<artifactId>fastboard</artifactId>
|
||||
<version>2.1.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.21.1-R0.1-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.21.1-R0.1-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.21.1-R0.1-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
21
core/src/main/java/org/ef3d0c3e/sheepwars/SheepWars.java
Normal file
21
core/src/main/java/org/ef3d0c3e/sheepwars/SheepWars.java
Normal file
|
@ -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!");
|
||||
}
|
||||
}
|
4
core/src/main/resources/exports/config.yml
Normal file
4
core/src/main/resources/exports/config.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
lobby:
|
||||
world: "lobby"
|
||||
game:
|
||||
overworld: "sheepwars"
|
BIN
core/src/main/resources/exports/lobby.schem
Normal file
BIN
core/src/main/resources/exports/lobby.schem
Normal file
Binary file not shown.
7
core/src/main/resources/exports/lobby.yml
Normal file
7
core/src/main/resources/exports/lobby.yml
Normal file
|
@ -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]
|
81
core/src/main/resources/exports/locales/fr.yml
Normal file
81
core/src/main/resources/exports/locales/fr.yml
Normal file
|
@ -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"
|
9
core/src/main/resources/plugin.yml
Normal file
9
core/src/main/resources/plugin.yml
Normal file
|
@ -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
|
42
dist/dependency-reduced-pom.xml
vendored
Normal file
42
dist/dependency-reduced-pom.xml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>SheepWars</artifactId>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>SheepWars-dist</artifactId>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>fr.mrmicky.fastboard</pattern>
|
||||
<shadedPattern>org.ef3d0c3e.sheepwars.fastboard</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<finalName>Hunt</finalName>
|
||||
<outputDirectory>/home/baraquiel/Programming/Minecraft/Sheepwars211/plugins</outputDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
64
dist/pom.xml
vendored
Normal file
64
dist/pom.xml
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>SheepWars-dist</artifactId>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>fr.mrmicky.fastboard</pattern>
|
||||
<shadedPattern>org.ef3d0c3e.sheepwars.fastboard</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<finalName>Hunt</finalName>
|
||||
<outputDirectory>/home/baraquiel/Programming/Minecraft/Sheepwars211/plugins</outputDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars-core</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- 1.21.1 -->
|
||||
<dependency>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars-spigot-1.21.1</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
BIN
libs/ProtocolLib.jar
Normal file
BIN
libs/ProtocolLib.jar
Normal file
Binary file not shown.
BIN
libs/worldedit-bukkit-7.3.5.jar
Normal file
BIN
libs/worldedit-bukkit-7.3.5.jar
Normal file
Binary file not shown.
69
pom.xml
Normal file
69
pom.xml
Normal file
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<name>SheepWars</name>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>core</module>
|
||||
<module>spigot-1.21.1</module>
|
||||
<module>dist</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<java.version>22</java.version>
|
||||
<maven.compiler.source>22</maven.compiler.source>
|
||||
<maven.compiler.target>22</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<url>https://repo1.maven.org/maven2/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>spigotmc-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>sonatype</id>
|
||||
<url>https://oss.sonatype.org/content/groups/public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>lukasalt-repo</id>
|
||||
<url>https://repo.lukasa.lt/repository/maven-public/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.reflections</groupId>
|
||||
<artifactId>reflections</artifactId>
|
||||
<version>0.10.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>plugin-annotations</artifactId>
|
||||
<version>1.2.3-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains</groupId>
|
||||
<artifactId>annotations</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
75
spigot-1.21.1/pom.xml
Normal file
75
spigot-1.21.1/pom.xml
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>SheepWars-spigot-1.21.1</artifactId>
|
||||
|
||||
<properties>
|
||||
<java.version>22</java.version>
|
||||
<maven.compiler.source>22</maven.compiler.source>
|
||||
<maven.compiler.target>22</maven.compiler.target>
|
||||
<spigot-version>1.21.1-R0.1-SNAPSHOT</spigot-version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>net.md-5</groupId>
|
||||
<artifactId>specialsource-maven-plugin</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>remap</goal>
|
||||
</goals>
|
||||
<id>remap-obf</id>
|
||||
<configuration>
|
||||
<srgIn>org.spigotmc:minecraft-server:${spigot-version}:txt:maps-mojang</srgIn>
|
||||
<reverse>true</reverse>
|
||||
<remappedDependencies>org.spigotmc:spigot:${spigot-version}:jar:remapped-mojang</remappedDependencies>
|
||||
<remappedArtifactAttached>true</remappedArtifactAttached>
|
||||
<remappedClassifierName>remapped-obf</remappedClassifierName>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>remap</goal>
|
||||
</goals>
|
||||
<id>remap-spigot</id>
|
||||
<configuration>
|
||||
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile>
|
||||
<srgIn>org.spigotmc:minecraft-server:${spigot-version}:csrg:maps-spigot</srgIn>
|
||||
<remappedDependencies>org.spigotmc:spigot:${spigot-version}:jar:remapped-obf</remappedDependencies>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ef3d0c3e.sheepwars</groupId>
|
||||
<artifactId>SheepWars-core</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
<version>${spigot-version}</version>
|
||||
<classifier>remapped-mojang</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
Loading…
Reference in a new issue