Skip to content

Commit 8cbce96

Browse files
committed
Merge branch 'version/7.0.x'
2 parents bb3fdcc + fffb0c1 commit 8cbce96

File tree

17 files changed

+87
-25
lines changed

17 files changed

+87
-25
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 7.0.9
4+
* Add support for MC 1.20
5+
* Made entities spawned via the `/summon` command get treated as plugin-spawned entities
6+
* Add sniffer egg trample protection options
7+
38
## 7.0.8
49
* Add support for MC 1.19
510
* Add skulk-growth flag and config option

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A Bukkit server implementation (such as [Paper](https://papermc.io)) and the [Wo
2323
Compiling
2424
---------
2525

26-
The project is written for Java 16 and our build process makes use of
26+
The project is written for Java 17 and our build process makes use of
2727
[Gradle](http://gradle.org).
2828

2929
Dependencies are automatically handled by Gradle.
@@ -40,8 +40,8 @@ Submissions must be licensed under the GNU Lesser General Public License v3.
4040
Links
4141
-----
4242

43-
* [Homepage](http://enginehub.org/worldguard)
43+
* [Homepage](https://enginehub.org/worldguard)
4444
* [Discord](https://discord.gg/enginehub)
4545
* [Issue tracker](https://github.com/EngineHub/WorldGuard/issues)
46-
* [Continuous integration](http://builds.enginehub.org) [![Build Status](https://ci.enginehub.org/app/rest/builds/buildType:bt11,branch:master/statusIcon.svg)](http://ci.enginehub.org/viewType.html?buildTypeId=bt11&guest=1)
46+
* [Continuous integration](https://builds.enginehub.org) [![Build Status](https://ci.enginehub.org/app/rest/builds/buildType:bt11,branch:master/statusIcon.svg)](http://ci.enginehub.org/viewType.html?buildTypeId=bt11&guest=1)
4747
* [End-user documentation](https://worldguard.enginehub.org/en/latest/)

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Versions {
22
// const val PISTON = "0.4.3"
33
// const val AUTO_VALUE = "1.6.5"
4-
const val WORLDEDIT = "7.2.12"
4+
const val WORLDEDIT = "7.2.14"
55
const val JUNIT = "5.9.1"
66
const val MOCKITO = "4.9.0"
77
const val SQUIRRELID = "0.3.2"

gradle/wrapper/gradle-wrapper.jar

468 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

worldguard-bukkit/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ configurations {
2020

2121
dependencies {
2222
"api"(project(":worldguard-core"))
23-
"compileOnly"("io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT")
24-
"runtimeOnly"("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT") {
23+
"compileOnly"("io.papermc.paper:paper-api:1.20-R0.1-SNAPSHOT")
24+
"runtimeOnly"("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") {
2525
exclude("junit", "junit")
2626
}
2727
"api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false }

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/BukkitWorldConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ public void loadConfiguration() {
256256

257257
disableCreatureTurtleEggTrampling = getBoolean("turtle-egg.disable-creature-trampling", false);
258258
disablePlayerTurtleEggTrampling = getBoolean("turtle-egg.disable-player-trampling", false);
259+
disableCreatureSnifferEggTrampling = getBoolean("sniffer-egg.disable-creature-trampling", false);
260+
disablePlayerSnifferEggTrampling = getBoolean("sniffer-egg.disable-player-trampling", false);
259261

260262
disallowedLightningBlocks = new HashSet<>(convertLegacyBlocks(getStringList("weather.prevent-lightning-strike-blocks", null)));
261263
preventLightningFire = getBoolean("weather.disable-lightning-strike-fire", false);

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ public void onPlayerInteract(PlayerInteractEvent event) {
454454
switch (event.getAction()) {
455455
case PHYSICAL:
456456
if (event.useInteractedBlock() != Result.DENY) {
457-
if (clicked.getType() == Material.FARMLAND || clicked.getType() == Material.TURTLE_EGG) {
457+
if (clicked.getType() == Material.FARMLAND ||
458+
clicked.getType() == Material.TURTLE_EGG ||
459+
clicked.getType() == Material.SNIFFER_EGG) {
458460
BreakBlockEvent breakDelagate = new BreakBlockEvent(event, cause, clicked);
459461
breakDelagate.setSilent(true);
460462
breakDelagate.getRelevantFlags().add(Flags.TRAMPLE_BLOCKS);
@@ -600,9 +602,7 @@ public void onBlockIgnite(BlockIgniteEvent event) {
600602

601603
@EventHandler(ignoreCancelled = true)
602604
public void onSignChange(SignChangeEvent event) {
603-
Events.fireToCancel(event, new UseBlockEvent(event, create(event.getPlayer()), event.getBlock()));
604-
605-
if (event.isCancelled()) {
605+
if (Events.fireToCancel(event, new PlaceBlockEvent(event, create(event.getPlayer()), event.getBlock()))) {
606606
playDenyEffect(event.getPlayer(), event.getBlock().getLocation().add(0.5, 0.5, 0.5));
607607
}
608608
}

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardEntityListener.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ public void onEntityInteract(EntityInteractEvent event) {
120120
event.setCancelled(true);
121121
return;
122122
}
123+
if (block.getType() == Material.SNIFFER_EGG && wcfg.disableCreatureSnifferEggTrampling) {
124+
event.setCancelled(true);
125+
return;
126+
}
123127
}
124128

125129
@EventHandler(priority = EventPriority.HIGH)
@@ -603,7 +607,7 @@ public void onCreatureSpawn(CreatureSpawnEvent event) {
603607
WorldConfiguration wcfg = getWorldConfig(event.getEntity().getWorld());
604608

605609
// allow spawning of creatures from plugins
606-
if (!wcfg.blockPluginSpawning && event.getSpawnReason() == CreatureSpawnEvent.SpawnReason.CUSTOM) {
610+
if (!wcfg.blockPluginSpawning && Entities.isPluginSpawning(event.getSpawnReason())) {
607611
return;
608612
}
609613

0 commit comments

Comments
 (0)