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