Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
476d4f0
Merge pull request #72 from ParallelMC/maggie-shop-fixes
UnknownSilicon Oct 21, 2023
a0c9fe4
Bump version
UnknownSilicon Oct 22, 2023
68fa307
Fix misc bugs in Parallel Resources and add permission to ignore
UnknownSilicon Nov 15, 2023
98260a6
Merge branch 'main' into staging
UnknownSilicon Nov 15, 2023
0a235de
Oops
UnknownSilicon Nov 15, 2023
b139df2
Merge pull request #73 from ParallelMC/staging
UnknownSilicon Nov 15, 2023
c2606c4
Add proxy support to ParallelResources
UnknownSilicon Nov 25, 2023
e677515
Prevent re-applying the pack when the previous world's pack is the same
UnknownSilicon Nov 25, 2023
3429d6d
Add async packsquash support to partially alleviate lag
UnknownSilicon Nov 25, 2023
7a34728
Actually block joins while packsquashing
UnknownSilicon Nov 25, 2023
90ac7fe
Add crafting and dyeing support for custom hats that are dyeable, add…
Diamondback88 Dec 23, 2023
49eb004
Merge branch 'staging' into dyeable-hats
UnknownSilicon Dec 24, 2023
b7afe99
Merge pull request #74 from ParallelMC/dyeable-hats
UnknownSilicon Dec 24, 2023
84948fe
Merge pull request #75 from ParallelMC/staging
UnknownSilicon Dec 24, 2023
4bc497d
Update ParallelItems
UnknownSilicon Dec 24, 2023
2a1fedf
Update to 1.20.4
UnknownSilicon Feb 10, 2024
b59be85
Update EntityDamageEvent signature
UnknownSilicon Feb 14, 2024
b1491ce
Merge pull request #76 from ParallelMC/staging
UnknownSilicon Feb 14, 2024
e14850e
Initial sweethearts code
Diamondback88 Feb 14, 2024
8c88911
Sweethearts updates
Diamondback88 Feb 14, 2024
9d1a946
Sweethearts updates
Diamondback88 Feb 15, 2024
e052d6a
Sweethearts fix
Diamondback88 Feb 16, 2024
57d6b5a
Sweethearts fix
Diamondback88 Feb 16, 2024
d7ee0d0
Sweethearts fix
Diamondback88 Feb 16, 2024
e12547d
Add calling bell mechanic
Diamondback88 Feb 19, 2024
3d7e96c
Added sweethearts config toggle, changed advancement name
Diamondback88 Feb 19, 2024
6c1688f
Consolidated Gamemode 4 license info for various Bits & Bobs Modules
Diamondback88 Feb 21, 2024
f796e6e
Add bandaid fix for enchantment errors
Diamondback88 Apr 9, 2024
1946343
Add ziprails
Diamondback88 Apr 15, 2024
1a5947c
early proof of concept
EBro912 Apr 18, 2024
dd8ac69
fix last point not getting teleported to
EBro912 Apr 19, 2024
7a9e3cb
readd ROTATE functionality
EBro912 Apr 19, 2024
a68ce96
Merge branch 'staging' into sweethearts
Diamondback88 May 4, 2024
4330e4b
Merge pull request #77 from ParallelMC/sweethearts
Diamondback88 May 4, 2024
c170d30
Merge branch 'staging' into calling-bell
Diamondback88 May 4, 2024
d0a6082
Merge pull request #78 from ParallelMC/calling-bell
Diamondback88 May 4, 2024
b1bf0ed
Merge branch 'staging' into enchantment-temp-fix
Diamondback88 May 4, 2024
f922572
Merge pull request #80 from ParallelMC/enchantment-temp-fix
Diamondback88 May 4, 2024
0f66b31
Merge branch 'staging' into ziprails
Diamondback88 May 4, 2024
c623e9d
Merge pull request #81 from ParallelMC/ziprails
Diamondback88 May 4, 2024
a318b13
Merge branch 'staging' into tutorial-display-entities
Diamondback88 May 4, 2024
b879d22
Merge pull request #82 from ParallelMC/tutorial-display-entities
Diamondback88 May 4, 2024
e31ede3
Initial dependency version bumps
Diamondback88 May 4, 2024
94d4229
Update to 1.20.6
UnknownSilicon May 4, 2024
9ef5526
Fix old 1.13 Bukkit library getting in the way
Diamondback88 May 4, 2024
40ebcbb
Enum changes
Diamondback88 May 5, 2024
a998eb8
NBT fixes + remove Material checks for special items death checks + d…
Diamondback88 May 7, 2024
722fc30
Correctly change both BLOCK_CRACK and BLOCK_DUST to BLOCK
Diamondback88 May 7, 2024
89a2e7a
add missing method
EBro912 May 9, 2024
7a473af
proof of concept
EBro912 May 12, 2024
46ac8e9
ty Paper
Diamondback88 May 12, 2024
9e747df
implement recalculatepoints dev command
EBro912 May 13, 2024
5d33ad9
bugfixing
EBro912 May 13, 2024
2a05adb
Update mapping of plugin
UnknownSilicon May 19, 2024
0b9db81
Update to 1.20.6
UnknownSilicon May 19, 2024
709ffac
Update shadow config
UnknownSilicon May 19, 2024
4fcb220
skeleton of points gui
EBro912 May 22, 2024
b60af51
Bump plugin versions
UnknownSilicon May 24, 2024
f79fd14
Fix reflection errors
UnknownSilicon May 24, 2024
3120762
Bump parallelitems
UnknownSilicon May 24, 2024
0ee7db3
points config loading
EBro912 May 25, 2024
17dce39
missing function call
EBro912 May 25, 2024
ffdead6
remove unused field
EBro912 May 25, 2024
d818efa
small fixes
Diamondback88 May 25, 2024
b361ffa
Merge branch 'point-system' into 1.20.6
UnknownSilicon May 25, 2024
6441863
Update parallelitems
UnknownSilicon May 25, 2024
1d0d628
Merge pull request #83 from ParallelMC/1.20.6
Diamondback88 Aug 11, 2024
4131765
Merge pull request #84 from ParallelMC/staging
Diamondback88 Aug 11, 2024
a226441
Shiba Inu size modification code
Diamondback88 Aug 11, 2024
137e415
Merge pull request #85 from ParallelMC/1.20.6
Diamondback88 Aug 11, 2024
1087d54
Merge branch 'staging' into main
Diamondback88 Aug 11, 2024
d57624d
Merge pull request #87 from ParallelMC/main
Diamondback88 Aug 11, 2024
448f37f
Merge pull request #88 from ParallelMC/staging
Diamondback88 Aug 11, 2024
4475907
Initial 1.21.1 updates
Diamondback88 Aug 11, 2024
d7f0444
Merge pull request #89 from ParallelMC/1.21.1
Diamondback88 Oct 26, 2024
7ac42ad
Fix ProtocolLib not building
Diamondback88 Oct 26, 2024
d6deb90
Enchantment temp fixes, this has to be permanently fixed soon
Diamondback88 Oct 26, 2024
38573e1
Merge pull request #90 from ParallelMC/enchantment-temp-fixes
Diamondback88 Oct 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 43 additions & 12 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration

plugins {
id 'net.minecrell.plugin-yml.bukkit'
Expand All @@ -7,28 +8,37 @@ plugins {

group = 'org.parallelmc'

version = '4.2.0'
version = '4.4.0'
description = 'A set of utilities and features for use on the Parallel Minecraft server'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()

compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
processResources.filteringCharset = "UTF-8"

repositories {
mavenCentral()
maven { url = "https://repo.papermc.io/repository/maven-public/" }
}

dependencies {
//compileOnly 'io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT'
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21.1-R0.1-SNAPSHOT")

implementation 'org.jetbrains:annotations:24.0.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
implementation 'net.dv8tion:JDA:5.0.0-beta.10'
compileOnly 'me.clip:placeholderapi:2.11.3'
implementation 'net.dv8tion:JDA:5.0.0-beta.24'
compileOnly 'me.clip:placeholderapi:2.11.6'
compileOnly fileTree('libs') { include '*.jar' }
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.8'
implementation 'mysql:mysql-connector-java:8.0.33'
compileOnly 'com.comphenix.protocol:ProtocolLib:5.0.0'
compileOnly 'dev.esophose:playerparticles:8.4'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.10'
implementation 'com.mysql:mysql-connector-j:8.3.0'
compileOnly 'com.comphenix.protocol:ProtocolLib:5.3.0'
compileOnly 'dev.esophose:playerparticles:8.6'
implementation 'org.reflections:reflections:0.10.2'
}

Expand All @@ -39,17 +49,17 @@ artifacts {

tasks {
assemble {
dependsOn(reobfJar)
//dependsOn(reobfJar)
}

build {
dependsOn(reobfJar)
//dependsOn(reobfJar)
}

compileJava {
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
// See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17)
options.release.set(21)
}

shadowJar {
Expand All @@ -67,7 +77,7 @@ bukkit {

main = 'parallelmc.parallelutils.ParallelUtils'

apiVersion = '1.20'
apiVersion = '1.20.5'

depend = ['PlaceholderAPI', 'ProtocolLib']
softDepend = ['Multiverse-Core', 'FractalForest', 'WorldGuard', 'VoteParty', 'PlayerParticles', 'ProNouns']
Expand Down Expand Up @@ -279,6 +289,20 @@ bukkit {
description = 'Opens Maggies Shop'
usage = '/openmaggieshop (player)'
}
points {
description = 'View your advancement points'
usage = '/points'
}
recalculatepoints {
description = 'Recalculates advancement points for all players'
usage = '/recalculatepoints'
permissionMessage = 'You do not have permission.'
permission = 'parallelutils.recalculatepoints'
}
openpointsredemption {
description = 'Opens the point redemption shop for a player'
usage = '/openpointsredemption (player)'
}
}

permissions {
Expand Down Expand Up @@ -471,5 +495,12 @@ bukkit {
description = 'Gives access to ChestShop debug commands'
setDefault('FALSE')
}
'parallelutils.resources.unenforced' {
description = 'Prevents being kicked from not accepting the resource pack'
setDefault('FALSE')
}
'parallelutils.recalculatepoints' {
description = 'Gives access to the /recalculatepoints dev command'
}
}
}
6 changes: 5 additions & 1 deletion api/src/main/java/parallelmc/parallelutils/Constants.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package parallelmc.parallelutils;

import java.util.ArrayList;

public class Constants {

public static final Version VERSION = new Version(4, 2, 0);
public static final Version VERSION = new Version(4, 4, 0);
public static final String PLUGIN_NAME = "ParallelUtils";
public static final String DEFAULT_WORLD = "world2";

public static final String[] OVERWORLD_TYPE_WORLDS = {"world", "world2", "world_skyteaser"};
}
4 changes: 2 additions & 2 deletions api/src/main/java/parallelmc/parallelutils/ParallelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public void onEnable() {
config = this.getConfig();

config.options().copyDefaults(true);
config.options().parseComments(true);
config.options().setHeader(List.of(HEADER));
//config.options().parseComments(true);
config.options().header(HEADER);

// Read config
this.saveDefaultConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.command.*;
import org.bukkit.craftbukkit.v1_20_R1.command.ServerCommandSender;
import org.bukkit.craftbukkit.command.ServerCommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -220,9 +220,9 @@ public static Location convertLocation(CommandSender sender, String sx, String s
*/
public static List<String> getTargetedBlockTabHelper(@NotNull Player player, int depth) {
ArrayList<String> list = new ArrayList<>();
Block targetedBlock = player.getTargetBlockExact(5);
Block targetedBlock = player.getTargetBlock(null,5);

if (targetedBlock != null && targetedBlock.isSolid()) {
if (targetedBlock != null && !targetedBlock.isEmpty()) {
// Autofill targeted coords
if (depth >= 1) {
list.add(String.format("%d", targetedBlock.getZ()));
Expand Down
4 changes: 3 additions & 1 deletion api/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ announcements:

# Bits and Bobs
disable-ender-chests: false
prevent-spawner-mining: false
prevent-spawner-mining: false
enable-calling-bell: true
enable-sweethearts: true
31 changes: 17 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration

plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id("io.papermc.paperweight.userdev") version "1.5.5"
id "xyz.jpenilla.run-paper" version "2.1.0"
id 'io.github.goooler.shadow' version '8.1.7'
id "io.papermc.paperweight.userdev" version "1.7.1"
id "xyz.jpenilla.run-paper" version "2.3.0"
id 'net.minecrell.plugin-yml.bukkit' version '0.6.0'
}

dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.20.1-R0.1-SNAPSHOT")
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21.1-R0.1-SNAPSHOT")
}

compileJava.options.encoding = "UTF-8"
Expand All @@ -21,12 +24,12 @@ processResources.filteringCharset = "UTF-8"

allprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'io.github.goooler.shadow'
apply plugin: "io.papermc.paperweight.userdev"

repositories {
mavenCentral()
maven { url = "https://papermc.io/repo/repository/maven-public/" }
maven { url = "https://repo.papermc.io/repository/maven-public/" }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url = "https://maven.enginehub.org/repo/" }
maven { url = 'https://repo.md-5.net/content/groups/public/' }
Expand All @@ -36,15 +39,15 @@ allprojects {
maven { url = 'https://repo.codemc.org/repository/maven-public/' }
maven { url = 'https://repo.rosewooddev.io/repository/public/' }
maven { url = 'https://jitpack.io' }

}

dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.20.1-R0.1-SNAPSHOT")
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21.1-R0.1-SNAPSHOT")
//paperweight.paperDevBundle("1.20.6-R0.1-SNAPSHOT")

compileOnly "io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT"
//compileOnly "io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT"
compileOnly 'net.luckperms:api:5.4'
compileOnly 'dev.esophose:playerparticles:8.4'
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
compileOnly 'dev.esophose:playerparticles:8.6'
compileOnly "com.github.MilkBowl:VaultAPI:1.7.1"
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
62 changes: 33 additions & 29 deletions modules/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

import io.papermc.paperweight.tasks.RemapJar
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration

group = 'org.parallelmc'


java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()

compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
processResources.filteringCharset = "UTF-8"
Expand All @@ -19,14 +22,14 @@ dependencies {

compileOnly 'org.jetbrains:annotations:24.0.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
compileOnly 'net.dv8tion:JDA:5.0.0-beta.10'
compileOnly 'me.clip:placeholderapi:2.11.3'
compileOnly 'net.dv8tion:JDA:5.0.0-beta.24'
compileOnly 'me.clip:placeholderapi:2.11.6'
compileOnly fileTree('libs') { include '*.jar' }
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.8'
compileOnly 'mysql:mysql-connector-java:8.0.33'
compileOnly 'com.comphenix.protocol:ProtocolLib:5.0.0'
compileOnly 'dev.esophose:playerparticles:8.4'
compileOnly "io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT"
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.10'
compileOnly 'com.mysql:mysql-connector-j:8.3.0'
compileOnly 'com.comphenix.protocol:ProtocolLib:5.3.0'
compileOnly 'dev.esophose:playerparticles:8.6'
compileOnly "io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT"
}

def names = []
Expand Down Expand Up @@ -63,7 +66,8 @@ names.each { mod ->
def name = (String) "${mod}"
exList.remove(name)

archiveClassifier.set("shadow-${mod}")
archiveBaseName.set("")
archiveClassifier.set("${mod}")
from sourceSets.main.output


Expand All @@ -74,23 +78,23 @@ names.each { mod ->
// Figure out how to exclude META-INF
}
}

names.each { mod ->
task "reobf-${mod}" (type: RemapJar) {
dependsOn "shadow-${mod}"
group = "ReobfMod"
description = "Remap the compiled module jar to Spigot's obfuscated runtime names"

fromNamespace = reobfJar.fromNamespace
toNamespace = reobfJar.toNamespace
mappingsFile = reobfJar.mappingsFile
remapClasspath.from(reobfJar.remapClasspath.getFrom())
remapper.from(reobfJar.project.configurations.named("remapper"))
remapperArgs = reobfJar.remapperArgs


inputJar.set(new File("$buildDir/libs/modules-shadow-${mod}.jar"))
//outputJar.set(new File("$buildDir/libs/${mod}-${project.version}.jar"))
outputJar.set(new File("$buildDir/libs/${mod}.jar"))
}
}
//
//names.each { mod ->
// task "reobf-${mod}" (type: RemapJar) {
// dependsOn "shadow-${mod}"
// group = "ReobfMod"
// description = "Remap the compiled module jar to Spigot's obfuscated runtime names"
//
// fromNamespace = reobfJar.fromNamespace
// toNamespace = reobfJar.toNamespace
// mappingsFile = reobfJar.mappingsFile
// remapClasspath.from(reobfJar.remapClasspath.getFrom())
// remapper.from(reobfJar.project.configurations.named("remapper"))
// remapperArgs = reobfJar.remapperArgs
//
//
// inputJar.set(new File("$buildDir/libs/modules-shadow-${mod}.jar"))
// //outputJar.set(new File("$buildDir/libs/${mod}-${project.version}.jar"))
// outputJar.set(new File("$buildDir/libs/${mod}.jar"))
// }
//}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import parallelmc.parallelutils.modules.bitsandbobs.minimodules.togglepvp.TogglePvpCommand;
import parallelmc.parallelutils.modules.bitsandbobs.minimodules.togglepvp.TogglePvpManager;

import java.net.URLClassLoader;
import java.util.List;
import java.util.logging.Level;

Expand Down Expand Up @@ -62,6 +61,7 @@ public void onEnable() {
manager.registerEvents(new OnPvp(), plugin);
manager.registerEvents(new ShardLotto(), plugin);
manager.registerEvents(new ChickenFeatherDrops(), plugin);
manager.registerEvents(new EntityTweaks(), plugin);

if (config.getBoolean("disable-ender-chests", false)) {
manager.registerEvents(new DisableEnderChest(), plugin);
Expand All @@ -70,6 +70,18 @@ public void onEnable() {
if (config.getBoolean("prevent-spawner-mining", false)) {
manager.registerEvents(new PreventSpawnerMining(), plugin);
}

if (config.getBoolean("enable-ziprails", true)) {
manager.registerEvents(new Ziprails(), plugin);
}

if (config.getBoolean("enable-calling-bell", true)) {
manager.registerEvents(new CallingBell(), plugin);
}

if (config.getBoolean("enable-sweethearts", true)) {
manager.registerEvents(new Sweethearts(), plugin);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The following Bits & Bobs modules are plugin versions of datapack modules made by Gamemode 4:

- Beehive Inspector
- Calling Bell
- SweetHearts

For licensing of these modules, please refer to the included license file.
https://github.com/Gamemode4Dev/GM4_Datapacks
Loading