Skip to content

Commit

Permalink
Merge pull request #430 from Shynixn/development
Browse files Browse the repository at this point in the history
Merge changes to Master --release
  • Loading branch information
Shynixn committed May 6, 2022
2 parents 091f26f + aa3d449 commit 64be6b7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN ./gradlew build pluginJar --no-daemon
# 4. Launch a minecraft server with jdk17 and plugin
FROM amazoncorretto:17
# Change to the current plugin version present in build.gradle
ENV PLUGIN_VERSION=6.29.2
ENV PLUGIN_VERSION=6.29.3
# Change to the server version you want to test.
ENV SERVER_VERSION=spigot-1.18.jar
# Port of the Minecraft Server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ class ProxyServiceImpl @Inject constructor(
*/
override fun <P> setPlayerFlying(player: P, enabled: Boolean) {
require(player is Player)
player.isFlying = enabled

if (enabled) {
player.isFlying = player.allowFlight
} else {
player.isFlying = false
}
}

/**
Expand Down Expand Up @@ -520,11 +525,12 @@ class ProxyServiceImpl @Inject constructor(
val chatComponent =
clazz.getDeclaredMethod("a", String::class.java).invoke(null, chatBuilder.toString())
val systemUtilsClazz = findClazz("net.minecraft.SystemUtils")
val defaultUUID = if(pluginProxy.getServerVersion().isVersionSameOrGreaterThan(Version.VERSION_1_18_R2)){
systemUtilsClazz.getDeclaredField("c").get(null) as UUID
}else{
systemUtilsClazz.getDeclaredField("b").get(null) as UUID
}
val defaultUUID =
if (pluginProxy.getServerVersion().isVersionSameOrGreaterThan(Version.VERSION_1_18_R2)) {
systemUtilsClazz.getDeclaredField("c").get(null) as UUID
} else {
systemUtilsClazz.getDeclaredField("b").get(null) as UUID
}
val chatEnumMessage = findClazz("net.minecraft.network.chat.ChatMessageType")
packetClazz.getDeclaredConstructor(chatBaseComponentClazz, chatEnumMessage, UUID::class.java)
.newInstance(chatComponent, chatEnumMessage.enumConstants[0], defaultUUID)
Expand Down Expand Up @@ -650,8 +656,7 @@ class ProxyServiceImpl @Inject constructor(
.accessible(true)
.get(null) as AtomicInteger
atomicInteger.incrementAndGet()
}
else if (pluginProxy.getServerVersion().isVersionSameOrGreaterThan(Version.VERSION_1_17_R1)) {
} else if (pluginProxy.getServerVersion().isVersionSameOrGreaterThan(Version.VERSION_1_17_R1)) {
val atomicInteger = findClazz("net.minecraft.world.entity.Entity")
.getDeclaredField("b")
.accessible(true)
Expand Down
2 changes: 1 addition & 1 deletion blockball-bukkit-plugin/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: BlockBall
version: 6.29.2
version: 6.29.3
author: Shynixn
website: https://www.spigotmc.org/members/shynixn.63455/
main: com.github.shynixn.blockball.bukkit.BlockBallPlugin
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tasks.register("printVersion") {

subprojects {
group 'com.github.shynixn.blockball'
version '6.29.2'
version '6.29.3'

sourceCompatibility = 1.8

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
# built documents.
#
# The short X.Y version.
version = '6.29.2'
version = '6.29.3'
# The full version, including alpha/beta/rc tags.
release = '6.29.2'
release = '6.29.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 64be6b7

Please sign in to comment.