Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
7290d25869 | |||
4655fcf16f | |||
b50e01f79f | |||
07445ebeff |
@ -42,8 +42,8 @@ dependencies {
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
|
||||
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'
|
||||
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.0'
|
||||
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.3'
|
||||
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.3'
|
||||
implementation group: 'org.json', name: 'json', version: '20240303'
|
||||
includedJars group: 'org.json', name: 'json', version: '20240303'
|
||||
}
|
||||
@ -61,7 +61,7 @@ processResources {
|
||||
}
|
||||
}
|
||||
|
||||
def targetJavaVersion = 17
|
||||
def targetJavaVersion = 21
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||
// this fixes some edge cases with special characters not displaying correctly
|
||||
@ -85,10 +85,10 @@ java {
|
||||
}
|
||||
|
||||
jar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}" }
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from {
|
||||
configurations.includedJars.collect {
|
||||
it.isDirectory() ? it : zipTree(it)
|
||||
|
@ -2,8 +2,8 @@
|
||||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.20.1
|
||||
yarn_mappings=1.20.1+build.10
|
||||
minecraft_version=1.19.2
|
||||
yarn_mappings=1.19.2+build.28
|
||||
loader_version=0.16.5
|
||||
# Mod Properties
|
||||
mod_version=1.0.1
|
||||
@ -11,4 +11,4 @@ maven_group=ru.bitheaven
|
||||
archives_base_name=donpayinteg
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.92.2+1.20.1
|
||||
fabric_version=0.77.0+1.19.2
|
@ -4,9 +4,9 @@ import com.mojang.brigadier.arguments.IntegerArgumentType;
|
||||
import com.mojang.brigadier.arguments.StringArgumentType;
|
||||
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
|
||||
import net.minecraft.server.command.CommandManager;
|
||||
import net.minecraft.text.Text;
|
||||
import ru.bitheaven.donpayinteg.config.Config;
|
||||
import ru.bitheaven.donpayinteg.config.ConfigHandler;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
public class DPI {
|
||||
public DPI() {
|
||||
@ -25,7 +25,7 @@ public class DPI {
|
||||
config.setDonpayToken(token);
|
||||
ConfigHandler.save(config);
|
||||
|
||||
context.getSource().sendFeedback(() -> Text.literal("DonatePay token set!"), false);
|
||||
context.getSource().sendFeedback(Text.literal("DonatePay token set!"), false);
|
||||
|
||||
return 1;
|
||||
})))
|
||||
|
Reference in New Issue
Block a user