Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
BitHeaven | 4655fcf16f | |
BitHeaven | b50e01f79f | |
BitHeaven | 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.21.1
|
||||||
yarn_mappings=1.20.1+build.10
|
yarn_mappings=1.21.1+build.3
|
||||||
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.105.0+1.21.1
|
||||||
|
|
|
@ -40,8 +40,8 @@ public class DonPayInteg implements ModInitializer {
|
||||||
|
|
||||||
if(j.getAndIncrement() % (20 * 2) == 0) {
|
if(j.getAndIncrement() % (20 * 2) == 0) {
|
||||||
if (!commands.isEmpty()) {
|
if (!commands.isEmpty()) {
|
||||||
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.get(0));
|
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
|
||||||
commands.remove(0);
|
commands.removeFirst();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -47,8 +47,8 @@ public class DonateThread extends Thread {
|
||||||
|
|
||||||
lastDonate = objects.getInt("id");
|
lastDonate = objects.getInt("id");
|
||||||
|
|
||||||
DonPayInteg.commands.add("title @a title \"" + msg.replace("{username}", objects.getJSONObject("vars").getString("name")) + "\"");
|
DonPayInteg.commands.addLast("title @a title \"" + msg.replace("{username}", objects.getJSONObject("vars").getString("name")) + "\"");
|
||||||
DonPayInteg.commands.add(cmd.replace("{username}", objects.getJSONObject("vars").getString("name")));
|
DonPayInteg.commands.addLast(cmd.replace("{username}", objects.getJSONObject("vars").getString("name")));
|
||||||
|
|
||||||
LOGGER.info("Exec donate #{}", lastDonate);
|
LOGGER.info("Exec donate #{}", lastDonate);
|
||||||
Config config = ConfigHandler.load();
|
Config config = ConfigHandler.load();
|
||||||
|
|
Loading…
Reference in New Issue