15 Commits
Author SHA1 Message Date
NotAlexNoyle 13be31b6f6 Update canonical Gitea links 2026-10-31 11:37:45 -04:00
NotAlexNoyle c1e409ab1a Update canonical Gitea links 2026-10-31 11:37:45 -04:00
NotAlexNoyle b3d36e6e5f Exclude CODEOWNERS from language statistics 2026-10-31 09:54:52 -04:00
NotAlexNoyle 2275eebc4d Add CODEOWNERS (one staff approval) 2026-10-31 09:54:51 -04:00
NotAlexNoyle a91bc4ba9d Fix typos 2026-06-08 01:29:33 -04:00
NotAlexNoyle 79584c46e0 Faster arena regeneration 2026-06-06 10:07:34 -04:00
NotAlexNoyle faa2c60f19 Always extract zones 2026-05-13 04:19:23 -04:00
NotAlexNoyle be1821db02 Use live TrueOG Network config file 2026-04-30 13:41:18 -04:00
NotAlexNoyle 25ae33f929 Remove .github 2026-04-15 06:53:44 -04:00
NotAlexNoyle ed453fa290 Update README.md 2026-04-15 06:51:39 -04:00
NotAlexNoyle f399d621df Fix version variable 2026-04-01 04:54:27 -04:00
NotAlexNoyle c6ac356ad1 Fix API version for true-og/Duels 2025-12-26 07:05:38 -05:00
NotAlexNoyle 3edc1a0275 Update Duels API 2025-12-26 06:48:07 -05:00
NotAlexNoyle 95e4f73c98 Rebase 2025-12-23 09:35:16 -05:00
BoomEaro ab60b6c61b Attempt to fix chunk sending 2024-03-15 18:05:02 +02:00
43 changed files with 51187 additions and 418 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
.gitea/CODEOWNERS linguist-detectable=false
+3
View File
@@ -0,0 +1,3 @@
# Pull requests request review from the eligible staff team(s).
# One approval from either an Admin or Developer satisfies branch protection.
* @trueog/Admins @trueog/Developers
-29
View File
@@ -1,29 +0,0 @@
name: Java CI with Gradle
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -x test
- name: Upload ArenaRegen to the GitHub release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out/ArenaRegen-1.3.0.jar
asset_name: ArenaRegen-1.3.0.jar
asset_content_type: application/java-archive
+4
View File
@@ -3,3 +3,7 @@
.idea/
build/
out/
# Eclipse / IDE metadata (ignore anywhere in the repo)
**/.classpath
**/.project
**/.settings/
+11 -2
View File
@@ -1,3 +1,12 @@
# DE-ArenaRegen
# ArenaRegen-OG
Read more about this resource here: https://www.spigotmc.org/resources/duels-extension-arenaregen.59686/
A free and open source fork of [DE-ArenaRegen](https://github.com/Realizedd/DE-ArenaRegen) including fixes by [BoomEaro](https://github.com/BoomEaro/DE-ArenaRegen) maintained for Purpur 1.19.4 by [TrueOG Network](https://trueog.net).
## Changes from upstream
- **Chunk send throttling** — `ChunkRefreshTask` now skips chunk packets for players farther than 48 blocks (horizontal) from the chunk center, preventing needless network traffic and client-side lag during large arena resets.
- **Task logging** — `ScanBlocksTask`, `FilterBlocksTask`, `ResetBlocksTask`, `RelightBlocksTask`, and `ChunkRefreshTask` accept a `Logger` and emit start/progress messages so zone operations are visible in server logs.
- **Java 17 target** — toolchain and bytecode bumped to 17 for modern Purpur/Paper 1.19.4.
- **Kotlin DSL build** — migrated `build.gradle`/`settings.gradle` to `build.gradle.kts`/`settings.gradle.kts`; subproject `build.gradle` files collapsed into the root script.
- **Duels API** — targets the [trueog/Duels-OG](https://git.trueog.net/trueog/Duels-OG) fork; `extension.yml` pinned to `api-version: 3.4.1` with quoted `@VERSION@` placeholder so Gradle token replacement works.
- **Dropped legacy Paper NMS** — `v1_8_R3_paper/NMSHandler.java` removed; 1.19.4 is the only supported target.
-57
View File
@@ -1,57 +0,0 @@
import org.apache.tools.ant.filters.ReplaceTokens
clean.doFirst {
delete "$rootDir/out/"
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter(ReplaceTokens, tokens: [VERSION: project.version])
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
implementation 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT'
implementation 'com.github.Realizedd.Duels:duels-api:3.4.1'
implementation project(':nms')
implementation project(':v1_8_R3')
implementation project(':v1_12_R1')
implementation project(':v1_14_R1')
implementation project(':v1_15_R1')
implementation project(':v1_16_R3')
implementation project(':v1_17_R1')
implementation project(':v1_18_R1')
implementation project(':v1_18_R2')
implementation project(':v1_19_R1')
}
shadowJar {
getDestinationDirectory().set(file("$rootDir/out/"))
final String archiveName = parent.name.replace("Parent", "") + '-' + project.version + '.jar'
getArchiveFileName().set(archiveName)
dependencies {
include(dependency(':nms'))
include(dependency(':v1_8_R3'))
include(dependency(':v1_8_R3_paper'))
include(dependency(':v1_12_R1'))
include(dependency(':v1_14_R1'))
include(dependency(':v1_15_R1'))
include(dependency(':v1_16_R3'))
include(dependency(':v1_17_R1'))
include(dependency(':v1_18_R1'))
include(dependency(':v1_18_R2'))
include(dependency(':v1_19_R1'))
}
}
// To build extension jar, run './gradlew clean build'.
build {
dependsOn(shadowJar)
}
@@ -1,9 +1,13 @@
package me.realized.de.arenaregen.zone;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import me.realized.de.arenaregen.ArenaRegen;
import me.realized.de.arenaregen.selection.Selection;
import me.realized.duels.api.Duels;
@@ -14,6 +18,8 @@ import org.bukkit.entity.Player;
public class ZoneManager {
private static final String BUNDLED_ZONES_PREFIX = "zones/";
private final ArenaRegen extension;
private final Duels api;
private final ArenaManager arenaManager;
@@ -29,9 +35,11 @@ public class ZoneManager {
api.registerListener(new ZoneListener(extension, this));
if (!folder.exists()) {
folder.mkdir();
folder.mkdirs();
}
extractBundledZones();
final File[] files = folder.listFiles();
if (files != null) {
@@ -110,4 +118,43 @@ public class ZoneManager {
public Collection<Zone> getZones() {
return zones.values();
}
private void extractBundledZones() {
final File jar = extension.getFile();
if (jar == null || !jar.isFile()) {
return;
}
try (final JarFile jarFile = new JarFile(jar)) {
final Enumeration<JarEntry> entries = jarFile.entries();
while (entries.hasMoreElements()) {
final JarEntry entry = entries.nextElement();
final String entryName = entry.getName();
if (entry.isDirectory() || !entryName.startsWith(BUNDLED_ZONES_PREFIX) || entryName.length() == BUNDLED_ZONES_PREFIX.length()) {
continue;
}
final String relative = entryName.substring(BUNDLED_ZONES_PREFIX.length());
if (relative.indexOf('/') >= 0) {
continue;
}
if (new File(folder, relative).exists()) {
continue;
}
try {
extension.saveResource(entryName);
} catch (IllegalArgumentException ex) {
extension.error("Could not extract bundled zone '" + relative + "'!", ex);
}
}
} catch (IOException ex) {
extension.error("Could not read bundled zones from extension jar!", ex);
}
}
}
@@ -1,15 +1,16 @@
package me.realized.de.arenaregen.zone.task.tasks;
import java.util.LinkedList;
import java.util.Queue;
import java.util.logging.Logger;
import me.realized.de.arenaregen.ArenaRegen;
import me.realized.de.arenaregen.util.Callback;
import me.realized.de.arenaregen.util.ChunkLoc;
import me.realized.de.arenaregen.zone.Zone;
import me.realized.de.arenaregen.zone.task.Task;
import org.bukkit.Chunk;
import org.bukkit.Location;
import java.util.LinkedList;
import java.util.Queue;
import java.util.logging.Logger;
public class ChunkRefreshTask extends Task {
@@ -42,7 +43,18 @@ public class ChunkRefreshTask extends Task {
return;
}
api.getServer().getOnlinePlayers().stream().filter(player -> player.getWorld().equals(chunk.getWorld())).forEach(online -> handler.sendChunkUpdate(online, chunk));
api.getServer().getOnlinePlayers().stream()
.filter(player -> player.getWorld() == chunk.getWorld())
.forEach(online -> {
Location chunkLocation = new Location(chunk.getWorld(), (chunk.getX() << 4) + 7.5d, 0, (chunk.getZ() << 4) + 7.5d);
Location playerLocation = online.getLocation().clone();
playerLocation.setY(0);
if (chunkLocation.distanceSquared(playerLocation) > (48 * 48)) {
return;
}
handler.sendChunkUpdate(online, chunk);
});
}
}
@@ -63,7 +63,7 @@ public class FilterBlocksTask extends Task {
iterator.remove();
}
this.logger.info("Starting to block reset task for zone " + this.zone.getName());
this.logger.info("Starting block reset task for zone " + this.zone.getName());
zone.startSyncTaskTimer(new ResetBlocksTask(logger, extension, zone, onDone, changes));
}
}
@@ -51,7 +51,7 @@ public class ResetBlocksTask extends Task {
return;
}
this.logger.info("Starting to block relight task for zone " + this.zone.getName());
this.logger.info("Starting block relighting task for zone " + this.zone.getName());
zone.startSyncTaskTimer(new RelightBlocksTask(logger, extension, zone, onDone));
}
}
@@ -57,7 +57,7 @@ public class ScanBlocksTask extends Task {
if (x > max.getBlockX()) {
cancel();
this.logger.info("Starting to block reset task for zone " + this.zone.getName());
this.logger.info("Starting block reset task for zone " + this.zone.getName());
zone.startSyncTaskTimer(new ResetBlocksTask(logger, extension, zone, onDone, changed));
}
}
+4 -4
View File
@@ -1,6 +1,6 @@
# Item to use as a cube selecting tool.
# default: IRON_HOE
selecting-tool: IRON_HOE
selecting-tool: STONE_AXE
experimental:
# If enabled, the extension will track block changes made by players during the match instead of scanning
@@ -10,7 +10,7 @@ experimental:
track-block-changes: true
# Blocks to reset per tick.
blocks-per-tick: 100
blocks-per-tick: 40
# Allow breaking blocks in the reset zone that is not placed by a player in match.
# default: false
@@ -27,11 +27,11 @@ remove-dropped-items: true
# Remove entities in the reset zone when the match ends.
# default: [ENDER_CRYSTAL, MINECART_TNT]
remove-entities: [ENDER_CRYSTAL, MINECART_TNT]
remove-entities: [MINECART_TNT]
# Prevent blocks in the reset zone from burning.
# default: true
prevent-block-burn: true
prevent-block-burn: false
# Prevents blocks in the reset zone from melting. (snow, ice)
# default: true
+5 -5
View File
@@ -1,7 +1,7 @@
name: ArenaRegen
version: @VERSION@
name: ArenaRegen-OG
version: '@VERSION@'
main: me.realized.de.arenaregen.ArenaRegen
authors: [Realized]
authors: [Realized, NotAlexNoyle ]
description: Create automatically resetting arenas!
website: https://www.spigotmc.org/resources/duels-extension-arenaregen.59686/
api-version: 3.4.1
website: https://git.trueog.net/trueog/ArenaRegen-OG
api-version: 3.4.1
+4 -4
View File
@@ -1,13 +1,13 @@
# Define placeholders usable in any message below.
# Example: Adding 'PREFIX: '[Cool]'' below and then putting '{PREFIX}' in a message will display '[Cool]' when the message is sent in game.
STRINGS:
PREFIX: '&9[Duels]'
LINE: '&9&m------------------------------------&r'
HALF_LINE: '&9&m----------------&r'
PREFIX: '&7[&3Duels-OG&f-&4OG&7]'
LINE: '&B&m---------------&7[&3Duels-OG&f-&4OG&7]&B---------------&r'
HALF_LINE: '&B&m--------------------&r'
ERROR:
invalid-sub-command: '{PREFIX} &c''%argument%'' is not a valid command. Please type ''/%command%'' for help.'
no-selection: '{PREFIX} &cYou must select two points with an iron hoe to create a reset zone.'
no-selection: '{PREFIX} &cYou must select two points with a &3Stone Axe &cto create a reset zone.'
cancel-arena-block-break: '{PREFIX} &cCannot destroy the arena.'
already-exists: '{PREFIX} &cArena ''%name%'' already has a reset zone. To delete, use the command ''/ds ar delete %name%'''
arena-not-found: '{PREFIX} &c''%name%'' is not an existing arena.'
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,530 @@
world
-104
46
-294
-97
52
-269
-104;52;-269:SOUL_SOIL;0
-104;52;-271:SOUL_SOIL;0
-104;52;-270:SOUL_SOIL;0
-104;52;-273:SOUL_SOIL;0
-104;52;-272:SOUL_SOIL;0
-104;52;-275:SOUL_SOIL;0
-104;52;-274:SOUL_SOIL;0
-104;52;-277:SOUL_SOIL;0
-104;52;-276:SOUL_SOIL;0
-104;52;-279:SOUL_SOIL;0
-104;52;-278:SOUL_SOIL;0
-104;52;-281:STONE_BRICK_STAIRS;6
-104;52;-280:SOUL_SOIL;0
-104;52;-284:VINE;0
-104;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-104;51;-269:STONE_BRICKS;0
-104;51;-272:MOSSY_STONE_BRICK_STAIRS;0
-104;51;-271:MOSSY_STONE_BRICK_STAIRS;0
-104;51;-274:STONE_BRICK_STAIRS;0
-104;51;-273:STONE_BRICK_STAIRS;5
-104;51;-276:MOSSY_STONE_BRICK_SLAB;0
-104;51;-275:STONE_BRICK_SLAB;13
-104;51;-278:STONE_BRICK_SLAB;13
-104;51;-277:MOSSY_STONE_BRICK_SLAB;0
-104;51;-280:MOSSY_STONE_BRICK_SLAB;0
-104;51;-279:STONE_BRICK_SLAB;13
-104;51;-294:BARRIER;0
-104;50;-269:STONE_BRICKS;0
-103;52;-270:CRACKED_STONE_BRICKS;2
-103;52;-269:CRACKED_STONE_BRICKS;2
-103;52;-272:CRACKED_STONE_BRICKS;2
-103;52;-271:CRACKED_STONE_BRICKS;2
-103;52;-274:MOSSY_STONE_BRICKS;1
-103;52;-273:MOSSY_STONE_BRICKS;1
-103;52;-276:MOSSY_STONE_BRICKS;1
-103;52;-275:STONE_BRICKS;0
-103;52;-278:CRACKED_STONE_BRICKS;2
-103;52;-277:MOSSY_STONE_BRICKS;1
-103;52;-280:MOSSY_STONE_BRICKS;1
-103;52;-279:MOSSY_STONE_BRICKS;1
-103;52;-281:STONE_BRICK_STAIRS;6
-104;50;-294:POLISHED_DEEPSLATE_WALL;0
-103;51;-269:STONE_BRICKS;0
-104;49;-269:STONE_BRICKS;0
-103;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-103;51;-275:VINE;0
-103;51;-280:VINE;0
-104;49;-294:STONE;0
-104;49;-293:VINE;0
-103;51;-294:BARRIER;0
-104;48;-269:STONE_BRICKS;0
-102;52;-269:STONE;0
-103;50;-269:STONE_BRICKS;0
-102;52;-271:CRACKED_STONE_BRICKS;2
-102;52;-270:CRACKED_STONE_BRICKS;2
-102;52;-273:CRACKED_STONE_BRICKS;2
-102;52;-272:MOSSY_STONE_BRICKS;1
-102;52;-275:MOSSY_STONE_BRICKS;1
-102;52;-274:STONE_BRICK_SLAB;5
-102;52;-277:CRACKED_STONE_BRICKS;2
-102;52;-276:STONE_BRICKS;0
-102;52;-279:CRACKED_STONE_BRICKS;2
-102;52;-278:MOSSY_STONE_BRICKS;1
-102;52;-281:STONE_BRICK_STAIRS;6
-102;52;-280:MOSSY_STONE_BRICKS;1
-102;52;-289:VINE;0
-104;48;-293:VINE;0
-103;50;-294:POLISHED_DEEPSLATE_WALL;0
-104;48;-294:STONE;0
-102;52;-294:VINE;0
-104;47;-270:BLACK_CANDLE;0
-103;49;-269:IRON_BARS;0
-104;47;-269:STONE_BRICKS;0
-102;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-102;51;-269:STONE_BRICKS;0
-102;51;-273:VINE;0
-102;51;-275:VINE;0
-104;47;-280:GREEN_CANDLE;0
-104;47;-285:BLACK_CANDLE;0
-104;47;-292:GREEN_CANDLE;0
-104;47;-294:STONE;0
-103;49;-293:VINE;0
-104;47;-293:VINE;0
-102;51;-294:BARRIER;0
-103;49;-294:STONE;0
-104;46;-269:STONE_BRICKS;0
-104;46;-271:LIME_STAINED_GLASS;5
-102;50;-269:IRON_BARS;0
-104;46;-270:TINTED_GLASS;0
-103;48;-269:IRON_BARS;0
-104;46;-273:TINTED_GLASS;0
-101;52;-270:CRACKED_STONE_BRICKS;2
-104;46;-272:BLACK_STAINED_GLASS;15
-101;52;-269:STONE;0
-104;46;-275:TINTED_GLASS;0
-101;52;-272:MOSSY_STONE_BRICKS;1
-104;46;-274:BLACK_STAINED_GLASS;15
-101;52;-271:CRACKED_STONE_BRICKS;2
-104;46;-277:TINTED_GLASS;0
-101;52;-274:STONE_BRICKS;0
-104;46;-276:GREEN_STAINED_GLASS;13
-101;52;-273:STONE_BRICKS;0
-104;46;-279:BLACK_STAINED_GLASS;15
-101;52;-276:SEA_LANTERN;0
-104;46;-278:GREEN_STAINED_GLASS;13
-101;52;-275:MOSSY_STONE_BRICKS;1
-104;46;-281:LIME_STAINED_GLASS;5
-101;52;-278:MOSSY_STONE_BRICKS;1
-104;46;-280:GREEN_STAINED_GLASS;13
-101;52;-277:MOSSY_STONE_BRICKS;1
-104;46;-283:GREEN_STAINED_GLASS;13
-101;52;-280:CRACKED_STONE_BRICKS;2
-104;46;-282:BLACK_STAINED_GLASS;15
-101;52;-279:STONE_BRICKS;0
-104;46;-285:BLACK_STAINED_GLASS;15
-104;46;-284:GREEN_STAINED_GLASS;13
-101;52;-281:STONE_BRICK_STAIRS;6
-104;46;-287:TINTED_GLASS;0
-104;46;-286:BLACK_STAINED_GLASS;15
-101;52;-283:VINE;0
-104;46;-289:TINTED_GLASS;0
-104;46;-288:LIME_STAINED_GLASS;5
-101;52;-285:VINE;0
-104;46;-291:TINTED_GLASS;0
-104;46;-290:TINTED_GLASS;0
-104;46;-293:BLACK_STAINED_GLASS;15
-104;46;-292:BLACK_STAINED_GLASS;15
-103;48;-294:STONE;0
-104;46;-294:STONE;0
-103;48;-293:VINE;0
-102;50;-294:POLISHED_DEEPSLATE_WALL;0
-103;47;-269:IRON_BARS;0
-101;51;-269:STONE_BRICKS;0
-102;49;-269:IRON_BARS;0
-101;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-101;51;-279:VINE;0
-101;51;-280:VINE;0
-103;47;-293:VINE;0
-102;49;-294:STONE;0
-103;47;-294:STONE;0
-102;49;-293:VINE;0
-101;51;-294:BARRIER;0
-103;46;-270:GREEN_STAINED_GLASS;13
-102;48;-269:IRON_BARS;0
-103;46;-269:IRON_BARS;0
-103;46;-272:BLACK_STAINED_GLASS;15
-103;46;-271:BLACK_STAINED_GLASS;15
-101;50;-269:IRON_BARS;0
-100;52;-269:STONE;0
-103;46;-274:LIME_STAINED_GLASS;5
-100;52;-270:CRACKED_STONE_BRICKS;2
-103;46;-273:GREEN_STAINED_GLASS;13
-100;52;-271:MOSSY_STONE_BRICKS;1
-103;46;-276:LIME_STAINED_GLASS;5
-100;52;-272:STONE_BRICKS;0
-103;46;-275:GREEN_STAINED_GLASS;13
-100;52;-273:STONE_BRICKS;0
-103;46;-278:LIME_STAINED_GLASS;5
-100;52;-274:MOSSY_STONE_BRICKS;1
-103;46;-277:LIME_STAINED_GLASS;5
-100;52;-275:CRACKED_STONE_BRICKS;2
-103;46;-280:TINTED_GLASS;0
-100;52;-276:MOSSY_STONE_BRICKS;1
-103;46;-279:BLACK_STAINED_GLASS;15
-100;52;-277:MOSSY_STONE_BRICKS;1
-103;46;-282:LIME_STAINED_GLASS;5
-100;52;-278:STONE_BRICK_SLAB;5
-103;46;-281:LIME_STAINED_GLASS;5
-100;52;-279:MOSSY_STONE_BRICKS;1
-103;46;-284:BLACK_STAINED_GLASS;15
-100;52;-280:MOSSY_STONE_BRICKS;1
-103;46;-283:GREEN_STAINED_GLASS;13
-100;52;-281:STONE_BRICK_STAIRS;6
-103;46;-286:BLACK_STAINED_GLASS;15
-103;46;-285:LIME_STAINED_GLASS;5
-103;46;-288:LIME_STAINED_GLASS;5
-103;46;-287:BLACK_STAINED_GLASS;15
-103;46;-290:GREEN_STAINED_GLASS;13
-103;46;-289:BLACK_STAINED_GLASS;15
-103;46;-292:TINTED_GLASS;0
-103;46;-291:LIME_STAINED_GLASS;5
-103;46;-294:STONE;0
-102;48;-293:VINE;0
-103;46;-293:LIME_STAINED_GLASS;5
-101;50;-294:POLISHED_DEEPSLATE_WALL;0
-100;52;-292:VINE;0
-102;48;-294:STONE;0
-101;49;-269:IRON_BARS;0
-102;47;-269:IRON_BARS;0
-100;51;-269:STONE_BRICKS;0
-100;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-100;51;-272:VINE;0
-102;47;-294:STONE;0
-101;49;-293:VINE;0
-102;47;-293:VINE;0
-101;49;-294:STONE;0
-100;51;-294:BARRIER;0
-102;46;-269:IRON_BARS;0
-102;46;-271:GREEN_STAINED_GLASS;13
-102;46;-270:TINTED_GLASS;0
-101;48;-269:IRON_BARS;0
-100;50;-269:IRON_BARS;0
-102;46;-273:BLACK_STAINED_GLASS;15
-99;52;-269:STONE_BRICKS;0
-102;46;-272:LIME_STAINED_GLASS;5
-99;52;-270:STONE_BRICK_SLAB;5
-102;46;-275:GREEN_STAINED_GLASS;13
-99;52;-271:MOSSY_STONE_BRICKS;1
-102;46;-274:BLACK_STAINED_GLASS;15
-99;52;-272:CRACKED_STONE_BRICKS;2
-102;46;-277:BLACK_STAINED_GLASS;15
-99;52;-273:STONE_BRICKS;0
-102;46;-276:LIME_STAINED_GLASS;5
-99;52;-274:STONE_BRICKS;0
-102;46;-279:LIME_STAINED_GLASS;5
-99;52;-275:STONE_BRICKS;0
-102;46;-278:TINTED_GLASS;0
-99;52;-276:CRACKED_STONE_BRICKS;2
-102;46;-281:LIME_STAINED_GLASS;5
-99;52;-277:MOSSY_STONE_BRICKS;1
-102;46;-280:GREEN_STAINED_GLASS;13
-99;52;-278:MOSSY_STONE_BRICKS;1
-102;46;-283:TINTED_GLASS;0
-99;52;-279:STONE_BRICKS;0
-102;46;-282:BLACK_STAINED_GLASS;15
-99;52;-280:STONE_BRICKS;0
-102;46;-285:GREEN_STAINED_GLASS;13
-99;52;-281:STONE_BRICK_STAIRS;6
-102;46;-284:GREEN_STAINED_GLASS;13
-102;46;-287:GREEN_STAINED_GLASS;13
-99;52;-283:VINE;0
-102;46;-286:BLACK_STAINED_GLASS;15
-102;46;-289:LIME_STAINED_GLASS;5
-102;46;-288:GREEN_STAINED_GLASS;13
-102;46;-291:TINTED_GLASS;0
-102;46;-290:GREEN_STAINED_GLASS;13
-102;46;-293:TINTED_GLASS;0
-102;46;-292:TINTED_GLASS;0
-99;52;-290:VINE;0
-101;48;-294:STONE_BRICKS;0
-102;46;-294:STONE;0
-99;52;-292:VINE;0
-100;50;-294:POLISHED_DEEPSLATE_WALL;0
-101;47;-269:IRON_BARS;0
-100;49;-269:IRON_BARS;0
-99;51;-269:STONE_BRICKS;0
-99;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-99;51;-277:VINE;0
-101;47;-293:VINE;0
-100;49;-293:VINE;0
-101;47;-294:STONE;0
-100;49;-294:STONE;0
-99;51;-294:BARRIER;0
-101;46;-270:TINTED_GLASS;0
-101;46;-269:IRON_BARS;0
-100;48;-269:IRON_BARS;0
-101;46;-272:BLACK_STAINED_GLASS;15
-99;50;-269:MOSSY_STONE_BRICKS;1
-101;46;-271:DIAMOND_ORE;0
-98;52;-269:STONE_BRICKS;0
-101;46;-274:TINTED_GLASS;0
-98;52;-270:STONE_BRICKS;0
-101;46;-273:BLACK_STAINED_GLASS;15
-98;52;-271:MOSSY_STONE_BRICK_STAIRS;0
-101;46;-276:TINTED_GLASS;0
-101;46;-275:GREEN_STAINED_GLASS;13
-101;46;-278:BLACK_STAINED_GLASS;15
-101;46;-277:GREEN_STAINED_GLASS;13
-98;52;-275:MOSSY_STONE_BRICKS;1
-101;46;-280:LIME_STAINED_GLASS;5
-98;52;-276:MOSSY_STONE_BRICKS;1
-101;46;-279:LIME_STAINED_GLASS;5
-98;52;-277:STONE_BRICKS;0
-101;46;-282:GREEN_STAINED_GLASS;13
-98;52;-278:STONE_BRICKS;0
-101;46;-281:BLACK_STAINED_GLASS;15
-98;52;-279:CRACKED_STONE_BRICKS;2
-101;46;-284:TINTED_GLASS;0
-98;52;-280:STONE_BRICKS;0
-101;46;-283:GREEN_STAINED_GLASS;13
-98;52;-281:STONE_BRICK_STAIRS;6
-101;46;-286:GREEN_STAINED_GLASS;13
-101;46;-285:GREEN_STAINED_GLASS;13
-101;46;-288:TINTED_GLASS;0
-101;46;-287:BLACK_STAINED_GLASS;15
-101;46;-290:GREEN_STAINED_GLASS;13
-101;46;-289:BLACK_STAINED_GLASS;15
-101;46;-292:DIAMOND_ORE;0
-101;46;-291:GREEN_STAINED_GLASS;13
-98;52;-289:VINE;0
-101;46;-294:STONE;0
-101;46;-293:LIME_STAINED_GLASS;5
-100;48;-293:VINE;0
-100;48;-294:STONE;0
-99;50;-294:POLISHED_DEEPSLATE_WALL;0
-100;47;-269:IRON_BARS;0
-99;49;-269:IRON_BARS;0
-98;51;-269:STONE_BRICKS;0
-98;51;-270:MOSSY_STONE_BRICK_STAIRS;0
-98;51;-271:MOSSY_STONE_BRICK_STAIRS;0
-98;51;-272:STONE_BRICK_STAIRS;4
-98;51;-273:MOSSY_STONE_BRICK_STAIRS;0
-98;51;-274:MOSSY_STONE_BRICK_STAIRS;0
-98;51;-275:MOSSY_STONE_BRICK_SLAB;0
-98;51;-276:STONE_BRICK_SLAB;13
-98;51;-277:STONE_BRICK_SLAB;13
-98;51;-278:MOSSY_STONE_BRICK_SLAB;0
-98;51;-279:MOSSY_STONE_BRICK_SLAB;0
-98;51;-280:STONE_BRICK_SLAB;13
-100;47;-293:VINE;0
-100;47;-294:STONE;0
-99;49;-294:STONE_BRICKS;0
-98;51;-294:BARRIER;0
-100;46;-269:IRON_BARS;0
-100;46;-270:LIME_STAINED_GLASS;5
-99;48;-269:IRON_BARS;0
-100;46;-271:LIME_STAINED_GLASS;5
-98;50;-269:MOSSY_STONE_BRICKS;1
-100;46;-272:LIME_STAINED_GLASS;5
-97;52;-269:STONE_BRICKS;0
-100;46;-273:TINTED_GLASS;0
-97;52;-270:STONE_BRICKS;0
-100;46;-274:BLACK_STAINED_GLASS;15
-97;52;-271:STONE_BRICK_STAIRS;6
-100;46;-275:TINTED_GLASS;0
-100;46;-276:TINTED_GLASS;0
-100;46;-277:TINTED_GLASS;0
-100;46;-278:TINTED_GLASS;0
-100;46;-279:LIME_STAINED_GLASS;5
-100;46;-280:TINTED_GLASS;0
-100;46;-281:BLACK_STAINED_GLASS;15
-100;46;-282:LIME_STAINED_GLASS;5
-100;46;-283:TINTED_GLASS;0
-100;46;-284:TINTED_GLASS;0
-97;52;-281:CRACKED_STONE_BRICKS;2
-100;46;-285:LIME_STAINED_GLASS;5
-97;52;-282:STONE_BRICK_STAIRS;4
-100;46;-286:LIME_STAINED_GLASS;5
-97;52;-283:MOSSY_STONE_BRICK_STAIRS;0
-100;46;-287:TINTED_GLASS;0
-97;52;-284:STONE_BRICK_STAIRS;4
-100;46;-288:BLACK_STAINED_GLASS;15
-97;52;-285:STONE_BRICKS;0
-100;46;-289:LIME_STAINED_GLASS;5
-97;52;-286:STONE_BRICK_STAIRS;4
-100;46;-290:BLACK_STAINED_GLASS;15
-97;52;-287:MOSSY_STONE_BRICKS;1
-100;46;-291:TINTED_GLASS;0
-97;52;-288:STONE_BRICK_STAIRS;4
-100;46;-292:GREEN_STAINED_GLASS;13
-97;52;-289:MOSSY_STONE_BRICK_STAIRS;0
-100;46;-293:BLACK_STAINED_GLASS;15
-97;52;-290:STONE_BRICK_STAIRS;4
-100;46;-294:STONE;0
-99;48;-293:VINE;0
-97;52;-291:MOSSY_STONE_BRICK_STAIRS;0
-99;48;-294:STONE;0
-97;52;-292:MOSSY_STONE_BRICK_STAIRS;0
-98;50;-294:POLISHED_DEEPSLATE_WALL;0
-97;52;-293:STONE_BRICK_STAIRS;4
-97;52;-294:STONE_BRICK_STAIRS;4
-99;47;-269:IRON_BARS;0
-98;49;-269:STONE_BRICKS;0
-97;51;-269:STONE_BRICKS;0
-99;47;-272:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-270:SEA_LANTERN;0
-99;47;-273:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-271:STONE_BRICKS;0
-99;47;-274:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-272:CRACKED_STONE_BRICKS;2
-97;51;-273:MOSSY_STONE_BRICKS;1
-97;51;-274:STONE_BRICKS;0
-97;51;-275:STONE_BRICK_STAIRS;4
-97;51;-276:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-277:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-278:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-279:STONE_BRICK_STAIRS;4
-97;51;-280:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-281:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-285:MOSSY_STONE_BRICK_STAIRS;0
-97;51;-289:VINE;0
-99;47;-293:VINE;0
-99;47;-294:STONE;0
-98;49;-293:VINE;0
-98;49;-294:STONE;0
-97;51;-293:VINE;0
-97;51;-294:BARRIER;0
-99;46;-269:IRON_BARS;0
-99;46;-270:TINTED_GLASS;0
-98;48;-269:STONE_BRICKS;0
-99;46;-271:TINTED_GLASS;0
-97;50;-269:STONE_BRICKS;0
-99;46;-272:LIME_STAINED_GLASS;5
-99;46;-273:GREEN_STAINED_GLASS;13
-99;46;-274:GREEN_STAINED_GLASS;13
-98;48;-273:WATER;1
-99;46;-275:GREEN_STAINED_GLASS;13
-99;46;-276:TINTED_GLASS;0
-99;46;-277:GREEN_STAINED_GLASS;13
-99;46;-278:GREEN_STAINED_GLASS;13
-99;46;-279:LIME_STAINED_GLASS;5
-99;46;-280:LIME_STAINED_GLASS;5
-97;50;-278:VINE;0
-99;46;-281:BLACK_STAINED_GLASS;15
-99;46;-282:GREEN_STAINED_GLASS;13
-99;46;-283:BLACK_STAINED_GLASS;15
-97;50;-281:VINE;0
-99;46;-284:BLACK_STAINED_GLASS;15
-99;46;-285:LIME_STAINED_GLASS;5
-99;46;-286:LIME_STAINED_GLASS;5
-99;46;-287:TINTED_GLASS;0
-99;46;-288:TINTED_GLASS;0
-99;46;-289:BLACK_STAINED_GLASS;15
-99;46;-290:GREEN_STAINED_GLASS;13
-99;46;-291:TINTED_GLASS;0
-97;50;-289:VINE;0
-99;46;-292:GREEN_STAINED_GLASS;13
-99;46;-293:LIME_STAINED_GLASS;5
-99;46;-294:STONE;0
-98;48;-293:VINE;0
-98;48;-294:STONE;0
-97;50;-293:VINE;0
-97;50;-294:POLISHED_DEEPSLATE_WALL;0
-98;47;-269:MOSSY_STONE_BRICKS;1
-98;47;-270:BLACK_CANDLE;0
-97;49;-269:INFESTED_STONE_BRICKS;2
-98;47;-272:MOSSY_STONE_BRICK_STAIRS;0
-98;47;-273:WATER;8
-98;47;-274:MOSSY_STONE_BRICK_STAIRS;0
-97;49;-273:WATER;1
-98;47;-278:BLACK_CANDLE;0
-97;49;-280:VINE;0
-98;47;-283:GREEN_CANDLE;0
-98;47;-291:LIME_CANDLE;0
-98;47;-293:VINE;0
-98;47;-294:STONE;0
-97;49;-293:VINE;0
-97;49;-294:STONE;0
-98;46;-269:MOSSY_STONE_BRICKS;1
-98;46;-270:TINTED_GLASS;0
-97;48;-269:INFESTED_STONE_BRICKS;2
-98;46;-271:GREEN_STAINED_GLASS;13
-98;46;-272:GREEN_STAINED_GLASS;13
-98;46;-273:BLACK_STAINED_GLASS;15
-98;46;-274:LIME_STAINED_GLASS;5
-97;48;-273:WATER;8
-98;46;-275:BLACK_STAINED_GLASS;15
-98;46;-276:GREEN_STAINED_GLASS;13
-98;46;-277:GREEN_STAINED_GLASS;13
-98;46;-278:TINTED_GLASS;0
-98;46;-279:LIME_STAINED_GLASS;5
-97;48;-278:VINE;0
-98;46;-280:TINTED_GLASS;0
-98;46;-281:LIME_STAINED_GLASS;5
-98;46;-282:LIME_STAINED_GLASS;5
-98;46;-283:BLACK_STAINED_GLASS;15
-98;46;-284:BLACK_STAINED_GLASS;15
-98;46;-285:GREEN_STAINED_GLASS;13
-98;46;-286:TINTED_GLASS;0
-98;46;-287:TINTED_GLASS;0
-98;46;-288:LIME_STAINED_GLASS;5
-98;46;-289:LIME_STAINED_GLASS;5
-97;48;-288:VINE;0
-98;46;-290:GREEN_STAINED_GLASS;13
-98;46;-291:GREEN_STAINED_GLASS;13
-98;46;-292:LIME_STAINED_GLASS;5
-98;46;-293:BLACK_STAINED_GLASS;15
-97;48;-292:VINE;0
-98;46;-294:STONE;0
-97;48;-293:VINE;0
-97;48;-294:STONE;0
-97;47;-269:STONE_BRICKS;0
-97;47;-270:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-271:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-272:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-273:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-274:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-275:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-276:STONE_BRICK_STAIRS;0
-97;47;-277:STONE_BRICK_STAIRS;0
-97;47;-278:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-279:STONE_BRICK_STAIRS;0
-97;47;-280:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-281:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-282:STONE_BRICK_STAIRS;0
-97;47;-283:STONE_BRICK_STAIRS;0
-97;47;-284:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-285:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-286:STONE_BRICK_STAIRS;0
-97;47;-287:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-288:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-289:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-290:STONE_BRICK_STAIRS;0
-97;47;-291:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-292:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-293:MOSSY_STONE_BRICK_STAIRS;0
-97;47;-294:STONE;0
-97;46;-269:STONE_BRICKS;0
-97;46;-270:STONE_BRICKS;0
-97;46;-271:STONE_BRICKS;0
-97;46;-272:STONE_BRICKS;0
-97;46;-273:STONE_BRICKS;0
-97;46;-274:STONE_BRICKS;0
-97;46;-275:STONE_BRICKS;0
-97;46;-276:STONE_BRICKS;0
-97;46;-277:STONE_BRICKS;0
-97;46;-278:STONE_BRICKS;0
-97;46;-279:STONE_BRICKS;0
-97;46;-280:STONE_BRICKS;0
-97;46;-281:STONE_BRICKS;0
-97;46;-282:STONE_BRICKS;0
-97;46;-283:STONE_BRICKS;0
-97;46;-284:STONE_BRICKS;0
-97;46;-285:STONE_BRICKS;0
-97;46;-286:STONE_BRICKS;0
-97;46;-287:STONE_BRICKS;0
-97;46;-288:STONE_BRICKS;0
-97;46;-289:STONE_BRICKS;0
-97;46;-290:MOSSY_STONE_BRICKS;1
-97;46;-291:MOSSY_STONE_BRICKS;1
-97;46;-292:STONE_BRICKS;0
-97;46;-293:STONE_BRICKS;0
-97;46;-294:STONE;0
-53
View File
@@ -1,53 +0,0 @@
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}
allprojects {
group 'me.realized.de'
version '1.3.0'
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
mavenCentral()
maven {
name 'spigot-repo'
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots'
}
maven {
name 'bungeecord-repo'
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
name 'jitpack-repo'
url 'https://jitpack.io'
}
maven {
name = 'codemc-repo'
url "https://repo.codemc.org/repository/nms/"
}
maven {
name = 'paper-repo'
url = "https://repo.papermc.io/repository/maven-public/"
}
}
}
+177
View File
@@ -0,0 +1,177 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id("base")
id("eclipse")
id("java-library")
id("com.gradleup.shadow") version "8.3.9" apply false
}
allprojects {
group = "me.realized.de"
version = "3.4.1"
repositories {
mavenLocal()
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") { name = "spigot-repo" }
maven("https://oss.sonatype.org/content/repositories/snapshots") { name = "bungeecord-repo" }
maven("https://jitpack.io") { name = "jitpack-repo" }
maven("https://repo.codemc.org/repository/nms/") { name = "codemc-repo" }
maven("https://repo.papermc.io/repository/maven-public/") { name = "paper-repo" }
}
}
subprojects {
apply(plugin = "eclipse")
apply(plugin = "java-library")
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(17)
}
}
project(":nms") {
dependencies {
compileOnly("org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT")
}
}
project(":v1_8_R3") {
dependencies {
compileOnly("org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_12_R1") {
dependencies {
compileOnly("org.spigotmc:spigot:1.12.2-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_14_R1") {
dependencies {
compileOnly("org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_15_R1") {
dependencies {
compileOnly("org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_16_R3") {
dependencies {
compileOnly("org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_17_R1") {
dependencies {
compileOnly("org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_18_R1") {
dependencies {
compileOnly("org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_18_R2") {
dependencies {
compileOnly("org.spigotmc:spigot:1.18.2-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":v1_19_R1") {
dependencies {
compileOnly("org.spigotmc:spigot:1.19.2-R0.1-SNAPSHOT")
compileOnly(project(":nms"))
}
}
project(":arenaregen") {
apply(plugin = "com.gradleup.shadow")
val shade by configurations.creating
dependencies {
compileOnly("org.projectlombok:lombok:1.18.22")
annotationProcessor("org.projectlombok:lombok:1.18.22")
compileOnly("org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT")
compileOnly("com.github.Realizedd.Duels:duels-api:3.4.1")
compileOnly(project(":nms"))
compileOnly(project(":v1_8_R3"))
compileOnly(project(":v1_12_R1"))
compileOnly(project(":v1_14_R1"))
compileOnly(project(":v1_15_R1"))
compileOnly(project(":v1_16_R3"))
compileOnly(project(":v1_17_R1"))
compileOnly(project(":v1_18_R1"))
compileOnly(project(":v1_18_R2"))
compileOnly(project(":v1_19_R1"))
shade(project(":nms")) { isTransitive = false }
shade(project(":v1_8_R3")) { isTransitive = false }
shade(project(":v1_12_R1")) { isTransitive = false }
shade(project(":v1_14_R1")) { isTransitive = false }
shade(project(":v1_15_R1")) { isTransitive = false }
shade(project(":v1_16_R3")) { isTransitive = false }
shade(project(":v1_17_R1")) { isTransitive = false }
shade(project(":v1_18_R1")) { isTransitive = false }
shade(project(":v1_18_R2")) { isTransitive = false }
shade(project(":v1_19_R1")) { isTransitive = false }
}
tasks.processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.get().resources.srcDirs) {
include("**/*.yml")
filter(
ReplaceTokens::class,
mapOf("tokens" to mapOf("VERSION" to project.version.toString()))
)
}
}
tasks.named<ShadowJar>("shadowJar") {
dependsOn(tasks.processResources)
destinationDirectory.set(rootProject.layout.buildDirectory.dir("libs"))
archiveBaseName.set("ArenaRegen-OG")
archiveVersion.set(project.version.toString())
archiveClassifier.set("")
from(sourceSets.main.get().output)
configurations = listOf(shade)
}
tasks.named<Jar>("jar") {
enabled = false
}
}
tasks.named("build") {
dependsOn(":arenaregen:shadowJar")
}
Binary file not shown.
+3 -1
View File
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
Vendored
+196 -117
View File
@@ -1,78 +1,129 @@
#!/usr/bin/env sh
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
##
## Gradle start up script for UN*X
##
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
MAX_FD=maximum
warn () {
echo "$*"
}
} >&2
die () {
echo
echo "$*"
echo
exit 1
}
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD="$JAVA_HOME/bin/java"
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -81,92 +132,120 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
Vendored
+94 -84
View File
@@ -1,84 +1,94 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:execute
@rem Setup the command line
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
-3
View File
@@ -1,3 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
}
-13
View File
@@ -1,13 +0,0 @@
rootProject.name = 'ArenaRegenParent'
include 'arenaregen'
include 'nms'
include 'v1_8_R3'
include 'v1_12_R1'
include 'v1_14_R1'
include 'v1_15_R1'
include 'v1_16_R3'
include 'v1_17_R1'
include 'v1_18_R1'
include 'v1_18_R2'
include 'v1_19_R1'
+15
View File
@@ -0,0 +1,15 @@
rootProject.name = "ArenaRegen-OG"
include(
"arenaregen",
"nms",
"v1_8_R3",
"v1_12_R1",
"v1_14_R1",
"v1_15_R1",
"v1_16_R3",
"v1_17_R1",
"v1_18_R1",
"v1_18_R2",
"v1_19_R1"
)
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.12.2-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.18.1-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.18.2-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.19.2-R0.1-SNAPSHOT'
implementation project(':nms')
}
-4
View File
@@ -1,4 +0,0 @@
dependencies {
implementation 'org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT'
implementation project(':nms')
}