Compare commits

...

47 Commits

Author SHA1 Message Date
330c132e3b Removed alternate current
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 1m11s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m22s
2023-11-17 19:16:12 +01:00
492034865b removed world border
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m33s
2023-10-03 14:47:52 +02:00
f2be21ef89 refresh
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m49s
2023-10-03 14:46:23 +02:00
e08dc0ef17 removed yawp
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m47s
2023-10-03 14:45:51 +02:00
2762f6e29f removed anti logout
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m52s
2023-10-03 14:43:40 +02:00
1612334e00 refresh packwiz
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m0s
2023-10-03 14:14:26 +02:00
f3075be1cf removed plasmo voice
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m40s
2023-10-03 14:13:49 +02:00
83adf33910 removed holograms
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 3s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m49s
2023-10-03 14:11:07 +02:00
853bf3141f Updated to 1.20.2
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 27s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m6s
2023-10-03 14:07:50 +02:00
e99ca2f302 revert b84ae5e2c1
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 0s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 0s
revert Updated modpack to 1.20.2
2023-10-01 10:55:37 +02:00
9a8c0599ed revert 9467119249
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 0s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 0s
revert Removed hologram
2023-10-01 10:55:21 +02:00
9467119249 Removed hologram
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 0s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 0s
2023-10-01 10:47:17 +02:00
b84ae5e2c1 Updated modpack to 1.20.2
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 0s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 0s
2023-10-01 09:36:34 +02:00
7cb5b563d7 Added anticombatlog
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 49s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m41s
2023-09-05 16:25:26 +02:00
9e60fa8c37 Add world border fix
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 12s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m50s
2023-08-27 20:54:40 +02:00
5914242316 Added slime mod
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 46s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m59s
2023-08-22 16:58:14 +02:00
18446f1dea added link
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 26s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m42s
2023-08-20 16:38:38 +02:00
d81879cec2 Added modpack
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 12s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m45s
2023-08-20 12:09:52 +02:00
5dc8e46080 Added Modpack install instructions
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 24s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m36s
2023-08-17 11:43:22 +02:00
1aac53deb8 Fixed spelling mistake
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 26s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m41s
2023-08-17 10:54:14 +02:00
0a5d94fd8c Small space issues
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 24s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m44s
2023-08-17 10:26:24 +02:00
5f0de3f326 Added nuke command
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 28s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m17s
2023-08-17 10:23:42 +02:00
ff29cc1c53 Update discordbot/.gitignore
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 24s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m36s
2023-08-15 10:29:29 +02:00
ce3507db62 Delete discordbot/database.sqlite
Some checks reported warnings
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
Build and Publish / Build and Publish Discord Bot (push) Has been cancelled
2023-08-15 10:29:18 +02:00
0739ac9376 Added messages
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 50s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m5s
2023-08-15 10:21:10 +02:00
765ab7f8d1 shadowed dependency
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 12s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m54s
2023-08-12 12:12:57 +02:00
624af4f5fd Update .gitea/workflows/release.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 11s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m40s
2023-08-12 11:39:20 +02:00
25a1d92e52 Update .gitea/workflows/release.yaml
Some checks reported warnings
Build and Publish / Build and Publish Discord Bot (push) Successful in 11s
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
2023-08-12 11:39:10 +02:00
e523385e5c Update .gitea/workflows/release.yaml
All checks were successful
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m44s
Build and Publish / Build and Publish Discord Bot (push) Successful in 10s
2023-08-12 11:35:14 +02:00
9e4a91dd46 fixed ephemeral mistake
Some checks reported warnings
Build and Publish / Build and Publish Discord Bot (push) Successful in 25s
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
2023-08-12 11:34:34 +02:00
d9ae8e729a Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 26s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m46s
2023-08-12 11:27:02 +02:00
664eafa4cc Update discordbot/Dockerfile
Some checks reported warnings
Build and Publish / Build and Publish Discord Bot (push) Successful in 35s
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
2023-08-12 11:26:33 +02:00
1f810ca533 Update discordbot/Dockerfile
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 34s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m46s
2023-08-12 11:22:39 +02:00
64776ad8cf Update discordbot/Dockerfile
Some checks reported warnings
Build and Publish / Build and Publish Minecraft Mod (push) Has been cancelled
Build and Publish / Build and Publish Discord Bot (push) Has been cancelled
2023-08-12 11:22:23 +02:00
e8c2d1495d Update discordbot/Dockerfile
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 31s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m46s
2023-08-12 11:15:18 +02:00
8c41ad39c3 Update discordbot/Dockerfile
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Failing after 23s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m38s
2023-08-12 11:07:40 +02:00
f3c0f7d728 Delete discordbot/database.sqlite
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 29s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m38s
2023-08-12 11:05:14 +02:00
217781b4f0 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 22s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m28s
2023-08-11 12:42:45 +02:00
b67befd3eb Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m30s
2023-08-11 12:37:04 +02:00
d1111732f3 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m31s
2023-08-11 12:32:53 +02:00
3df664614f Update .gitea/workflows/release-nighty.yaml
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Successful in 24s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 1m33s
2023-08-11 12:26:09 +02:00
faf823ec37 Update .gitea/workflows/release-nighty.yaml
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 1m31s
2023-08-11 12:23:37 +02:00
ef355ecd48 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 1m32s
2023-08-11 12:20:57 +02:00
3968a0e0c8 Update .gitea/workflows/release-nighty.yaml
Some checks failed
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Failing after 37s
2023-08-11 12:19:03 +02:00
550542ae50 Update .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 21s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 8s
2023-08-11 12:12:30 +02:00
4c1e01b3c4 Add .gitea/workflows/release-nighty.yaml
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 26s
2023-08-11 12:11:00 +02:00
3459e1f733 Update .gitea/workflows/release.yaml 2023-08-11 12:01:53 +02:00
54 changed files with 868 additions and 60 deletions

View File

@@ -0,0 +1,55 @@
name: Build and Publish
on:
push:
branches:
- 'dev'
jobs:
Build and Publish Discord Bot:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: gitea.xeovalyte.dev
username: ${{ gitea.actor }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@master
with:
context: ./discordbot
push: true
tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:nightly
Build and Publish Minecraft Mod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
working-directory: ./mod
run: chmod +x gradlew
- name: Build with Gradle
working-directory: ./mod
run: ./gradlew build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: polarcraft-mod.jar
path: |
mod/build/libs/*.jar
!mod/build/libs/*-sources.jar
!mod/build/libs/*-dev.jar

View File

@@ -1,5 +1,8 @@
name: Build and Publish
on: [push]
on:
push:
branches:
- 'main'
jobs:
Build and Publish Discord Bot:
@@ -9,13 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
working-directory: ./discordbot
- uses: docker/login-action@v2
with:
registry: gitea.xeovalyte.dev
@@ -28,3 +24,30 @@ jobs:
push: true
tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:latest
Build and Publish Minecraft Mod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
working-directory: ./mod
run: chmod +x gradlew
- name: Build with Gradle
working-directory: ./mod
run: ./gradlew build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: polarcraft-mod.jar
path: |
mod/build/libs/*.jar
!mod/build/libs/*-sources.jar
!mod/build/libs/*-dev.jar

View File

@@ -1,2 +1,3 @@
.env
node_modules
database.sqlite

View File

@@ -4,4 +4,10 @@ WORKDIR /usr/src/app
COPY . .
RUN apk update && apk upgrade
RUN apk add --no-cache sqlite
RUN npm install
RUN npm install --save sqlite3
CMD ["node", "index.js"]

View File

@@ -0,0 +1,62 @@
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('message')
.setDescription('Send a default game message')
.setDefaultMemberPermissions(0)
.addStringOption(option => option
.setName('option')
.setDescription('Which message to send')
.setRequired(true)
.addChoices(
{ name: 'welcome', value: 'welcome' },
{ name: 'moderators', value: 'moderators' },
)),
async execute(interaction) {
const option = interaction.options.getString('option');
if (option === 'welcome') {
const embed0 = new EmbedBuilder()
.setTitle('Rules')
.setColor(process.env.EMBED_COLOR)
.setDescription('De regels zijn dit seizoen niet concreet. Zorg ervoor dat de ervaring voor iedereen leuk is en blijft. Een grapje maken mag, maar verpest niet iemand anders zijn ervaring.');
const embed1 = new EmbedBuilder()
.setTitle('Commands')
.setColor(process.env.EMBED_COLOR)
.addFields(
{ name: 'Whitelist', value: 'Join de Minecraft server en vul de gekregen code in door de `/whitelist` commando uit te voeren in discord. Door het commando `/removewhitelist` uit te voeren verwijder je jezelf van de whitelist.\n\u200B' },
{ name: 'Team', value: '**Team maken:** Voer het commando `/team create` uit in discord. Kleur kan je uitzoeken op deze website: [HTML Color Codes](https://htmlcolorcodes.com/color-picker/)\n\n**Inviten:** Voer het commando `/team invite <user>` uit in discord. Deze persoon zal een invite krijgen en deze accepteren of weigeren.\n\n**Leave:** Voer het commando `/team leave` uit om het team te verlaten.\n\u200B' },
{ name: 'Username', value: 'Door het commando `/setusername <type>` uit te voeren kan gekozen worden tussen de Minecraft of Discord username. Deze username zal op Discord en Minecraft weergegeven worden.\n\u200B' },
{ name: 'Minecraft', value: 'Door het commando `/map <hide/show>` uit te voeren in Minecraft kan gekozen om zichtbaar te zijn op [deze map](https://polarcraft.xeovalyte.com/) of niet' },
);
const embed2 = new EmbedBuilder()
.setTitle('Polarcraft Modpack')
.setColor(process.env.EMBED_COLOR)
.addFields({ name: 'Installeer Instructies', value: `
**1.** Installeer de [Modrinth launcher](https://modrinth.com/app) en log in\n
**2.** Klik op het zoek icoon op de linker balk en zoek voor "Polarcraft Modpack"\n
**3.** Klik vervolgens op "install"\n
**4.** Klaar! Klik op "Play" om Minecraft op te starten\n
` })
.setDescription('De Polarcraft Modpack is niet nodig, maar wel handig. In deze modpack zitten mods voor betere performance en Proximity chat mod. Als je er voor kiest om deze modpack niet te gebruiken is het leuk om zelf de [Plasmo Voice](https://modrinth.com/plugin/plasmo-voice) mod te installeren.');
const embed3 = new EmbedBuilder()
.setTitle('Links')
.setColor(process.env.EMBED_COLOR)
.setDescription('-> IP: polarcraft.xeovalyte.com\n-> [Minecraft Map](https://polarcraft.xeovalyte.com)\n-> [Polarcraft Modpack](https://modrinth.com/modpack/polarcraft-modpack)');
await interaction.reply({ embeds: [embed0, embed1, embed2, embed3] });
} else if (option === 'moderators') {
const embed = new EmbedBuilder()
.setTitle('Commands')
.setColor(process.env.EMBED_COLOR)
.setDescription('`/suspend <user> <time> <reason>` Dit commando zorgt ervoor dat een persoon tijdelijk niks kan doen. Gebruik dit als er bijvoorbeeld gegriefd wordt\n\n`/nuke` Dit commando zet de server in maintenance mode waardoor niemand meer kan joinen');
await interaction.reply({ embeds: [embed] });
}
},
};

View File

@@ -0,0 +1,21 @@
const { SlashCommandBuilder } = require('discord.js');
const { simpleEmbed } = require('../functions/embeds.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('nuke')
.setDescription('Put the server in maintenance mode')
.setDefaultMemberPermissions(0),
async execute(interaction) {
await fetch(process.env.MINECRAFT_HOST + '/console', {
method: 'POST',
headers: {
'content-type': 'text/plain',
},
body: 'maintenance on',
});
await interaction.reply({ embeds: [simpleEmbed('Nuked server!')], ephemeral: true });
},
};

View File

@@ -7,8 +7,8 @@ module.exports = {
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, emphemeral: true });
const reply = await interaction.reply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **Pinging...**`)], fetchReply: true, ephemeral: true });
interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)] });
interaction.editReply({ embeds: [simpleEmbed(`Websocket heartbeat: **${client.ws.ping}ms**\n Roundtrip latency: **${reply.createdTimestamp - interaction.createdTimestamp}ms**`)], ephemeral: true });
},
};

Binary file not shown.

View File

@@ -1,4 +1,5 @@
const { Events } = require('discord.js');
const { simpleEmbed } = require('../functions/embeds.js');
module.exports = {
name: Events.InteractionCreate,
@@ -14,6 +15,7 @@ module.exports = {
try {
await command.execute(interaction);
} catch (error) {
await interaction.reply({ embeds: [simpleEmbed('There was an error while executing the command')], ephemeral: true });
console.error(`Error executing ${interaction.commandName}`);
console.error(error);
}

View File

@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.3-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
version = project.mod_version
@@ -42,7 +43,7 @@ dependencies {
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
modImplementation "com.sparkjava:spark-core:2.9.4"
shadow(implementation("com.sparkjava:spark-core:2.9.4"))
}
processResources {
@@ -73,6 +74,17 @@ jar {
}
}
shadowJar {
configurations = [project.configurations.shadow]
archiveClassifier.set("dev")
relocate "net.objecthunter", "de.siphalor.spiceoffabric.shadow.net.objecthunter"
}
remapJar {
dependsOn(shadowJar)
inputFile = tasks.shadowJar.archiveFile
}
// configure the maven publication
publishing {
publications {
@@ -88,4 +100,4 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
}

View File

@@ -4,8 +4,8 @@ org.gradle.parallel=true
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.2
loader_version=0.14.22
# Mod Properties
@@ -14,4 +14,4 @@ maven_group=com.xeovalyte.polarcraft
archives_base_name=polarcraft-mod
# Dependencies
fabric_version=0.86.1+1.20.1
fabric_version=0.89.3+1.20.2

View File

@@ -10,6 +10,7 @@ import org.slf4j.LoggerFactory;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.network.ServerPlayerEntity;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@@ -18,6 +19,9 @@ import java.io.File;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import static spark.Spark.*;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.fabricmc.fabric.api.message.v1.ServerMessageEvents;
public class PolarcraftMod implements ModInitializer {
@@ -29,10 +33,11 @@ public class PolarcraftMod implements ModInitializer {
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
private static final File CONFIG_FILE = new File(FabricLoader.getInstance().getConfigDir().toFile(), "polarcraft.json");
public static String configChatMessageUrl = "https://example.com/api/minecraft/message/chattodiscord";
public static String configGameMessageUrl = "https://example.com/api/minecraft/message/gametodiscord";
public static String configChatMessageUrl = "https://example.com/message/player";
public static String configGameMessageUrl = "https://example.com/message/game";
public static String configVerifyUrl = "https://example.com/verifyminecraft";
@Override
public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state.
@@ -54,6 +59,28 @@ public class PolarcraftMod implements ModInitializer {
ServerMessageEvents.CHAT_MESSAGE.register((message, sender, params) -> {
messageFunctions.sendChatMessage(message, sender);
});
ServerLifecycleEvents.SERVER_STARTED.register((MinecraftServer server) -> {
port(8080); // Choose a suitable port for your web server
// Define the /console POST endpoint
post("/console", (req, res) -> {
String command = req.body(); // Get the command from the request body
// Validate and sanitize the command if needed
// Execute the console command in the Minecraft environment
executeConsoleCommand(command, server);
res.status(200);
return "Command executed successfully.";
});
});
}
private static void executeConsoleCommand(String command, MinecraftServer server) {
// Code to execute the console command within the Minecraft environment.
server.getCommandManager().executeWithPrefix(server.getCommandSource(), command);
}
private void loadConfig() {

View File

@@ -54,7 +54,7 @@ public class verifyFunction {
if (!whitelisted) {
int code = jsonResponse.get("code").getAsInt();
player.networkHandler.disconnect(Text.literal("Whitelist yourself by using this code: " + code));
player.networkHandler.disconnect(Text.literal("Whitelist yourself by using the /whitelist command in Discord with this code: " + code));
} else {
server.getCommandManager().executeWithPrefix(server.getCommandSource(), "/lp user " + player.getUuid() + " meta set display " + "\"" + jsonResponse.get("username").getAsString() + "\"");

View File

@@ -1,31 +0,0 @@
package com.xeovalyte.polarcraft.mixin;
import com.xeovalyte.polarcraft.util.messageFunctions;
import net.minecraft.advancement.Advancement;
import net.minecraft.advancement.PlayerAdvancementTracker;
import net.minecraft.server.network.ServerPlayerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import java.util.Objects;
@Mixin(PlayerAdvancementTracker.class)
public class MixinPlayerAdvancementTracker {
@Shadow
private ServerPlayerEntity owner;
@Inject(method = "grantCriterion",
at = @At(
target = "Lnet/minecraft/server/PlayerManager;broadcast(Lnet/minecraft/text/Text;Z)V",
value = "INVOKE"
)
)
private void grantCriterion(Advancement advancement, String criterionName, CallbackInfoReturnable<Boolean> cir) {
// messageFunctions.sendGameMessage(owner.getUuid(), " has completed the challenge [" + Objects.requireNonNull(advancement.getDisplay()).getTitle().getString() + "]");
messageFunctions.sendGameMessage(owner.getUuid(), owner.getDisplayName().getString() + " has completed the advancement [" + Objects.requireNonNull(advancement.getDisplay()).getTitle().getString() + "]");
}
}

View File

@@ -8,20 +8,15 @@ import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
@Mixin(ServerPlayerEntity.class)
public class MixinPlayerEntity {
@Inject(method = "onDeath",
at = @At(
target = "Lnet/minecraft/server/network/ServerPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V",
value = "INVOKE",
ordinal = 0),
locals = LocalCapture.CAPTURE_FAILSOFT
)
private void onDeath(DamageSource damageSource, CallbackInfo ci, boolean bl, Text text){
@Inject(method = "onDeath", at = @At("HEAD"))
private void onDeath(DamageSource damageSource, CallbackInfo ci){
ServerPlayerEntity serverPlayerEntity = (ServerPlayerEntity) (Object) this;
messageFunctions.sendGameMessage(serverPlayerEntity.getUuid(), text.getString());
Text deathMessage = damageSource.getDeathMessage(serverPlayerEntity);
messageFunctions.sendGameMessage(serverPlayerEntity.getUuid(), deathMessage.getString());
}
}

View File

@@ -3,7 +3,6 @@
"package": "com.xeovalyte.polarcraft.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
"MixinPlayerAdvancementTracker",
"MixinPlayerEntity"
],
"injectors": {

2
modpack-server/.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
# Disable Git line ending conversion, to prevent packwiz index hashes changing when committing from Windows
* -text

5
modpack-server/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
# Exclude exported CurseForge zip files
*.zip
# Exclude exported Modrinth modpacks
*.mrpack

171
modpack-server/index.toml Normal file
View File

@@ -0,0 +1,171 @@
hash-format = "sha256"
[[files]]
file = "mods/anti-xray.pw.toml"
hash = "f0e3f0178d1f8da2487cbb0cea687f441b84109e9f1030e2974d88fe10210aab"
metafile = true
[[files]]
file = "mods/banhammer.pw.toml"
hash = "1126dd7cb63d5e4086d74d0fe521156ab9ee0f2d53cd75f3926ffcf256c32953"
metafile = true
[[files]]
file = "mods/c2me-fabric.pw.toml"
hash = "9ab9f1ada10bc693019cdfea96fa09bcbaa3f27c8350e2e23fc45927f838cd9b"
metafile = true
[[files]]
file = "mods/carpet.pw.toml"
hash = "bc125da2af00e14613ca7d6582bbfff0ce63632dac134da4e9cfcf2d724bd856"
metafile = true
[[files]]
file = "mods/chunky.pw.toml"
hash = "c176a0f84b0c3c03423e68b988cd43f51a6b1cf13a844574b19e003324533da0"
metafile = true
[[files]]
file = "mods/debugify.pw.toml"
hash = "ebc95d8dac761549f43c49938b8d1a0044a43af4484f492959de83a2bdc9e267"
metafile = true
[[files]]
file = "mods/fabric-api.pw.toml"
hash = "d2b04b985ed22bb26338837b0547f08a41b82b23c3136f1fff9582b1748b7954"
metafile = true
[[files]]
file = "mods/fabric-language-kotlin.pw.toml"
hash = "6f95b9e670d557f852a798489d7b5ec48ed8ddc7e8e1809ff06d4b187d17aac9"
metafile = true
[[files]]
file = "mods/fastback.pw.toml"
hash = "5b7e58e98cafdc851a3f86d9044b8a69a0d719c98fd9a64ab8a492b791861c81"
metafile = true
[[files]]
file = "mods/fastload.pw.toml"
hash = "0e72ac12907f4fb5a499a459cc2c64f9225a0c77ee59e76c9360ff0d3479aea2"
metafile = true
[[files]]
file = "mods/ferrite-core.pw.toml"
hash = "03e174cf691b52da20bd973b955fae6f3720d3d2120f9d6cc1de5fdf3180013c"
metafile = true
[[files]]
file = "mods/forge-config-api-port.pw.toml"
hash = "e00070f0db00ebcd304f8f68fd44e59ceaedbc8c27743c9c195134aae57c5fde"
metafile = true
[[files]]
file = "mods/invview.pw.toml"
hash = "9c440b128787446aceeac944eb692793dd24e4596c23d0adfd64a76706ca774d"
metafile = true
[[files]]
file = "mods/krypton.pw.toml"
hash = "f999930809222b57898da25a30aad2135b02894f42c0e1d2832c4670272fbd1d"
metafile = true
[[files]]
file = "mods/lazydfu.pw.toml"
hash = "b4ca05b39b85c27cd97ccb65d5fb832f5e9fd7ee5710542a3e69dfa30a97ea7d"
metafile = true
[[files]]
file = "mods/ledger-databases.pw.toml"
hash = "d8c5d10864c6ee4a5ffdcf775ef6325fb88e6441db9c5c7874be1a6f1d714250"
metafile = true
[[files]]
file = "mods/ledger.pw.toml"
hash = "e988cb120a107e8d0a3ad501beda973e1b247b290421667a67d95fce146e5dcc"
metafile = true
[[files]]
file = "mods/lithium.pw.toml"
hash = "ed27ecb297016accc41e9894b6e11d6c46b455211e358afa6218ce629ef56978"
metafile = true
[[files]]
file = "mods/maintenancemode.pw.toml"
hash = "ed2ff97cf59a6c5b9f4e509edbc8c48944bb3c98795f6738c8dfec353cbe350d"
metafile = true
[[files]]
file = "mods/memoryleakfix.pw.toml"
hash = "8e42842f48b3227733bafced612212eee2298f567ca599ac6a55b9878ae661da"
metafile = true
[[files]]
file = "mods/minimotd.pw.toml"
hash = "c24df3c6860014bab5f2b5998b26a34e93461679b1c22e88c4eebfe992b5d756"
metafile = true
[[files]]
file = "mods/no-chat-reports.pw.toml"
hash = "293f06651cc903947ae422f5e612c73d66154453ad1390bda63920370671b968"
metafile = true
[[files]]
file = "mods/ordered-player-list.pw.toml"
hash = "261eb8ac6dcc730afd8643a6486d6b013bbbe2f1200dacc88d7c495e4a588aa5"
metafile = true
[[files]]
file = "mods/pl3xmap.pw.toml"
hash = "53febdce710c35a2c12fe58a55a4d97ee50b0e4cc9ae8bf56e0d436b31602c3b"
metafile = true
[[files]]
file = "mods/servercore.pw.toml"
hash = "17b4cf782db225c145f5c2ababe1042deb0fed021f410d42691829673fa916c3"
metafile = true
[[files]]
file = "mods/slime.pw.toml"
hash = "cbd8c0b34192c5db74644840e2954be757698c805ed95bfb8007253c9783fab0"
metafile = true
[[files]]
file = "mods/spark.pw.toml"
hash = "1f922cadccd8b79e824e78d5e2e691e65127e7a500723121a6a6ccc6a1060289"
metafile = true
[[files]]
file = "mods/starlight.pw.toml"
hash = "0a78a506125c0edc97d2292d26c6eab310106c60a5a4e64d73ff67bb619f5a4c"
metafile = true
[[files]]
file = "mods/styled-chat.pw.toml"
hash = "06f08304d7ce0221440ece1277be678c17dceb80ff982d19eaa9599345e92328"
metafile = true
[[files]]
file = "mods/styledplayerlist.pw.toml"
hash = "8a3e2e84597cef453b7f1c46e09764139db8c0915c662c2df9e738bc3efb14b3"
metafile = true
[[files]]
file = "mods/vanish.pw.toml"
hash = "95886b6bc392072bf3ff366a19dc913745ec24fd86639012c49d50c13ca71cd1"
metafile = true
[[files]]
file = "mods/vmp-fabric.pw.toml"
hash = "4acfdcf28a7214490664892807bdb6c2d73b8d09295677e5629e5c896c3f9fbb"
metafile = true
[[files]]
file = "mods/worldedit.pw.toml"
hash = "a9ef701727ae9dd5baab92af7474cc57e34111b5858941fd5a96c89cacc6a30b"
metafile = true
[[files]]
file = "mods/yacl.pw.toml"
hash = "46d3f8c4c1bfc8f92858d7e405aed9d1a23e554a783f8977662cbeca06eda5f2"
metafile = true

View File

@@ -0,0 +1,13 @@
name = "AntiXray"
filename = "anti-xray-1.3.1-Fabric-1.20.2.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/sml2FMaA/versions/asevPA28/anti-xray-1.3.1-Fabric-1.20.2.jar"
hash-format = "sha1"
hash = "9af6c8fe101e9a44500661078386c20cb68c92a4"
[update]
[update.modrinth]
mod-id = "sml2FMaA"
version = "asevPA28"

View File

@@ -0,0 +1,13 @@
name = "BanHammer"
filename = "banhammer-0.8.0+1.20.2.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/Wpqg0ciI/versions/Ia1ERLRG/banhammer-0.8.0%2B1.20.2.jar"
hash-format = "sha1"
hash = "c7e5c4f334063eedad673cee228d35106ff5bfbf"
[update]
[update.modrinth]
mod-id = "Wpqg0ciI"
version = "Ia1ERLRG"

View File

@@ -0,0 +1,13 @@
name = "Concurrent Chunk Management Engine (Fabric)"
filename = "c2me-fabric-mc1.20.2-0.2.0+alpha.10.126.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/VSNURh3q/versions/ilKwGRiJ/c2me-fabric-mc1.20.2-0.2.0%2Balpha.10.126.jar"
hash-format = "sha1"
hash = "fef69c623f5bfc6c10c86f2790a7c1ac2da3cf32"
[update]
[update.modrinth]
mod-id = "VSNURh3q"
version = "ilKwGRiJ"

View File

@@ -0,0 +1,13 @@
name = "Carpet"
filename = "fabric-carpet-1.20.2-1.4.119+v230928.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/TQTTVgYE/versions/iGHB3B1y/fabric-carpet-1.20.2-1.4.119%2Bv230928.jar"
hash-format = "sha1"
hash = "bfda47816a14ed51f646802ba97ead8e08e4eaa5"
[update]
[update.modrinth]
mod-id = "TQTTVgYE"
version = "iGHB3B1y"

View File

@@ -0,0 +1,13 @@
name = "Chunky"
filename = "Chunky-1.3.92.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/fALzjamp/versions/t8SbUchF/Chunky-1.3.92.jar"
hash-format = "sha1"
hash = "91f8daeeaab0f3114016fb1d45822179701862bf"
[update]
[update.modrinth]
mod-id = "fALzjamp"
version = "t8SbUchF"

View File

@@ -0,0 +1,13 @@
name = "Debugify"
filename = "Debugify-1.20.2+1.0.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/QwxR6Gcd/versions/ZSI78Xd3/Debugify-1.20.2%2B1.0.jar"
hash-format = "sha1"
hash = "5afa015e026de8acb4622e6e1429221e0b26e05e"
[update]
[update.modrinth]
mod-id = "QwxR6Gcd"
version = "ZSI78Xd3"

View File

@@ -0,0 +1,13 @@
name = "Fabric API"
filename = "fabric-api-0.89.3+1.20.2.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/P7dR8mSH/versions/Hi8quJUM/fabric-api-0.89.3%2B1.20.2.jar"
hash-format = "sha1"
hash = "de8d59b597ee5bbf1434e495c0cbc3772b1a414a"
[update]
[update.modrinth]
mod-id = "P7dR8mSH"
version = "Hi8quJUM"

View File

@@ -0,0 +1,13 @@
name = "Fabric Language Kotlin"
filename = "fabric-language-kotlin-1.10.10+kotlin.1.9.10.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/Ha28R6CL/versions/48ri5y9r/fabric-language-kotlin-1.10.10%2Bkotlin.1.9.10.jar"
hash-format = "sha1"
hash = "c708f3f4e94f0f66e72c6e96858368f0512c3b38"
[update]
[update.modrinth]
mod-id = "Ha28R6CL"
version = "48ri5y9r"

View File

@@ -0,0 +1,13 @@
name = "Fast Backups"
filename = "fastback-0.16.1+1.20.2-fabric.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/ZHKrK8Rp/versions/yuRPpkVE/fastback-0.16.1%2B1.20.2-fabric.jar"
hash-format = "sha1"
hash = "13f07b16c9311da033fe38ae93ef34cc0d19c7c4"
[update]
[update.modrinth]
mod-id = "ZHKrK8Rp"
version = "yuRPpkVE"

View File

@@ -0,0 +1,13 @@
name = "Fastload"
filename = "Fastload+1.18.2-1.20-3.4.0.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/kCpssoSb/versions/ys9T20o4/Fastload%2B1.18.2-1.20-3.4.0.jar"
hash-format = "sha1"
hash = "b57e4d594031638b0dc076a3b6e501f417700577"
[update]
[update.modrinth]
mod-id = "kCpssoSb"
version = "ys9T20o4"

View File

@@ -0,0 +1,13 @@
name = "FerriteCore"
filename = "ferritecore-6.0.0-fabric.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/uXXizFIs/versions/FCnCG6PS/ferritecore-6.0.0-fabric.jar"
hash-format = "sha1"
hash = "5a57ea73c3c7c0cc300d69611a9cad93baf8e9ab"
[update]
[update.modrinth]
mod-id = "uXXizFIs"
version = "FCnCG6PS"

View File

@@ -0,0 +1,13 @@
name = "Forge Config API Port"
filename = "ForgeConfigAPIPort-v9.0.0-1.20.2-Fabric.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/ohNO6lps/versions/f5d9VI72/ForgeConfigAPIPort-v9.0.0-1.20.2-Fabric.jar"
hash-format = "sha1"
hash = "e9471a5836daab325aaa9bd08759705f8de94545"
[update]
[update.modrinth]
mod-id = "ohNO6lps"
version = "f5d9VI72"

View File

@@ -0,0 +1,13 @@
name = "Inv View"
filename = "InvView-1.4.12-1.20+.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/jrDKjZP7/versions/mQnjqDOd/InvView-1.4.12-1.20%2B.jar"
hash-format = "sha1"
hash = "f6775526021843c16dc7847bbf0b8dbcca434454"
[update]
[update.modrinth]
mod-id = "jrDKjZP7"
version = "mQnjqDOd"

View File

@@ -0,0 +1,13 @@
name = "Krypton"
filename = "krypton-0.2.4.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/fQEb0iXm/versions/cQ60Ouax/krypton-0.2.4.jar"
hash-format = "sha1"
hash = "cffdf89a438b83215ddbac2a29c56a2cd68b7d57"
[update]
[update.modrinth]
mod-id = "fQEb0iXm"
version = "cQ60Ouax"

View File

@@ -0,0 +1,13 @@
name = "LazyDFU"
filename = "lazydfu-0.1.3.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/hvFnDODi/versions/0.1.3/lazydfu-0.1.3.jar"
hash-format = "sha1"
hash = "0dfa8b03ed408fb7fdada29e01cfebba02af1049"
[update]
[update.modrinth]
mod-id = "hvFnDODi"
version = "4SHylIO9"

View File

@@ -0,0 +1,13 @@
name = "Ledger Databases"
filename = "ledger-databases-1.1.1.jar"
side = "both"
[download]
hash-format = "sha1"
hash = "d806fed8fea5f3f5a3dc892d605bd6720c86f43e"
mode = "metadata:curseforge"
[update]
[update.curseforge]
file-id = 3834676
project-id = 529404

View File

@@ -0,0 +1,13 @@
name = "Ledger"
filename = "ledger-1.2.9.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/LVN9ygNV/versions/8WSkA7qO/ledger-1.2.9.jar"
hash-format = "sha1"
hash = "8b67c3f918dc655bada6fec3cffcb76628a21a96"
[update]
[update.modrinth]
mod-id = "LVN9ygNV"
version = "8WSkA7qO"

View File

@@ -0,0 +1,13 @@
name = "Lithium"
filename = "lithium-fabric-mc1.20.2-0.12.0.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/gvQqBUqZ/versions/qdzL5Hkg/lithium-fabric-mc1.20.2-0.12.0.jar"
hash-format = "sha1"
hash = "9b713d4909582d900274dcd7ca01abd195b53520"
[update]
[update.modrinth]
mod-id = "gvQqBUqZ"
version = "qdzL5Hkg"

View File

@@ -0,0 +1,13 @@
name = "Maintenance Mode"
filename = "mmode-fabric-1.20-1.1.1.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/QOkEkSap/versions/TT7eUrpf/mmode-fabric-1.20-1.1.1.jar"
hash-format = "sha1"
hash = "da772889aaff617e9d85fd1ff4637663219f38c3"
[update]
[update.modrinth]
mod-id = "QOkEkSap"
version = "TT7eUrpf"

View File

@@ -0,0 +1,13 @@
name = "Memory Leak Fix"
filename = "memoryleakfix-fabric-1.17+-1.1.2.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/NRjRiSSD/versions/dGlflhb6/memoryleakfix-fabric-1.17%2B-1.1.2.jar"
hash-format = "sha1"
hash = "b0eecb140bd124c781469aa0f48bc888072b4ac5"
[update]
[update.modrinth]
mod-id = "NRjRiSSD"
version = "dGlflhb6"

View File

@@ -0,0 +1,13 @@
name = "MiniMOTD"
filename = "minimotd-fabric-mc1.20.2-2.0.14.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/16vhQOQN/versions/3stGUvKr/minimotd-fabric-mc1.20.2-2.0.14.jar"
hash-format = "sha1"
hash = "060e0cfdcbe2d7fcf35373ec01cf0a3d468dd28b"
[update]
[update.modrinth]
mod-id = "16vhQOQN"
version = "3stGUvKr"

View File

@@ -0,0 +1,13 @@
name = "No Chat Reports"
filename = "NoChatReports-FABRIC-1.20.2-v2.3.1.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/qQyHxfxd/versions/xQyq2W5g/NoChatReports-FABRIC-1.20.2-v2.3.1.jar"
hash-format = "sha1"
hash = "cb77c14bfc458066eda3c7962c3286e0f973725e"
[update]
[update.modrinth]
mod-id = "qQyHxfxd"
version = "xQyq2W5g"

View File

@@ -0,0 +1,13 @@
name = "Ordered Player List"
filename = "orderedplayerlist-0.1.3+1.20.2.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/IX99VLW9/versions/DL7rAiJr/orderedplayerlist-0.1.3%2B1.20.2.jar"
hash-format = "sha1"
hash = "2902406910f397bcd8236d51b7b54f9f74c4ba5c"
[update]
[update.modrinth]
mod-id = "IX99VLW9"
version = "DL7rAiJr"

View File

@@ -0,0 +1,13 @@
name = "Pl3xMap"
filename = "Pl3xMap-1.20.2-470.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/YMXhf1UJ/versions/XrSXxwyn/Pl3xMap-1.20.2-470.jar"
hash-format = "sha1"
hash = "1e7b36c914c49f5febd86426ca528556d22479bd"
[update]
[update.modrinth]
mod-id = "YMXhf1UJ"
version = "XrSXxwyn"

View File

@@ -0,0 +1,13 @@
name = "ServerCore"
filename = "servercore-fabric-1.3.8+1.20.2.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/4WWQxlQP/versions/LrB49Mln/servercore-fabric-1.3.8%2B1.20.2.jar"
hash-format = "sha1"
hash = "e99fb454665cd298f44bfb5b415b4b54c02224f9"
[update]
[update.modrinth]
mod-id = "4WWQxlQP"
version = "LrB49Mln"

View File

@@ -0,0 +1,13 @@
name = "Slime"
filename = "slime-1.6.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/qpnMRvwM/versions/sQ9J9gE1/slime-1.6.jar"
hash-format = "sha1"
hash = "ace6e6b4538eaae4e9142023c67b1d5a83928d62"
[update]
[update.modrinth]
mod-id = "qpnMRvwM"
version = "sQ9J9gE1"

View File

@@ -0,0 +1,13 @@
name = "spark"
filename = "spark-1.10.54-fabric.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/l6YH9Als/versions/tCU9VuzX/spark-1.10.54-fabric.jar"
hash-format = "sha1"
hash = "cc6d6dd27e2d6612e848330b5525026709590239"
[update]
[update.modrinth]
mod-id = "l6YH9Als"
version = "tCU9VuzX"

View File

@@ -0,0 +1,13 @@
name = "Starlight (Fabric)"
filename = "starlight-1.1.2+fabric.bdaeb21.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/H8CaAYZC/versions/98VOoYPX/starlight-1.1.2%2Bfabric.bdaeb21.jar"
hash-format = "sha1"
hash = "6cf71105561a6893f76ae561fdbef839c404b8b5"
[update]
[update.modrinth]
mod-id = "H8CaAYZC"
version = "98VOoYPX"

View File

@@ -0,0 +1,13 @@
name = "Styled Chat"
filename = "styled-chat-2.3.0+1.20.2.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/doqSKB0e/versions/J9nCzhiG/styled-chat-2.3.0%2B1.20.2.jar"
hash-format = "sha1"
hash = "a6401354c9d393914930556827abe01e090d33df"
[update]
[update.modrinth]
mod-id = "doqSKB0e"
version = "J9nCzhiG"

View File

@@ -0,0 +1,13 @@
name = "Styled Player List"
filename = "styledplayerlist-3.2.0+1.20.2.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/DQIfKUHf/versions/8c1ZipKd/styledplayerlist-3.2.0%2B1.20.2.jar"
hash-format = "sha1"
hash = "82895d8776b10b927e503c3f79ece0d8a12eb839"
[update]
[update.modrinth]
mod-id = "DQIfKUHf"
version = "8c1ZipKd"

View File

@@ -0,0 +1,13 @@
name = "Vanish"
filename = "vanish-1.4.2+1.20.2.jar"
side = "server"
[download]
url = "https://cdn.modrinth.com/data/UL4bJFDY/versions/hqxpO8Cn/vanish-1.4.2%2B1.20.2.jar"
hash-format = "sha1"
hash = "cfa3fc2cdebb3fd4c88fa0b691651c797dc1ddf6"
[update]
[update.modrinth]
mod-id = "UL4bJFDY"
version = "hqxpO8Cn"

View File

@@ -0,0 +1,13 @@
name = "Very Many Players (Fabric)"
filename = "vmp-fabric-mc1.20.2-0.2.0+beta.7.115-all.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/wnEe9KBa/versions/XHRLuI9m/vmp-fabric-mc1.20.2-0.2.0%2Bbeta.7.115-all.jar"
hash-format = "sha1"
hash = "39322ddb12deb6c59599109733adc6435fe12ef7"
[update]
[update.modrinth]
mod-id = "wnEe9KBa"
version = "XHRLuI9m"

View File

@@ -0,0 +1,13 @@
name = "WorldEdit"
filename = "worldedit-mod-7.2.16.jar"
side = "both"
[download]
hash-format = "sha1"
hash = "6c55c44d4fa4b681c5c8d8159c33ff05c46b92d2"
mode = "metadata:curseforge"
[update]
[update.curseforge]
file-id = 4773938
project-id = 225608

View File

@@ -0,0 +1,13 @@
name = "YetAnotherConfigLib"
filename = "yet-another-config-lib-fabric-3.2.1+1.20.2.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/1eAoo2KR/versions/u6jV7Q7R/yet-another-config-lib-fabric-3.2.1%2B1.20.2.jar"
hash-format = "sha1"
hash = "887b5f955f0f46b64a1bbc2f219391eb5bb23985"
[update]
[update.modrinth]
mod-id = "1eAoo2KR"
version = "u6jV7Q7R"

16
modpack-server/pack.toml Normal file
View File

@@ -0,0 +1,16 @@
name = "Polarcraft Modpack"
author = "Xeovalyte"
version = "1.0.0"
pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "4331fb895594560196661b13075f6293a97f01df73e6e92c6be317aabe710484"
[versions]
fabric = "0.14.22"
minecraft = "1.20.2"
[options]
acceptable-game-versions = ["1.20"]