geforkt von Mirrors/FastAsyncWorldEdit
Update Piston to 0.4.0 for bugfixes
Dieser Commit ist enthalten in:
Ursprung
38607f387a
Commit
620992dd57
@ -22,6 +22,7 @@ package com.sk89q.worldedit.command.util;
|
|||||||
import com.sk89q.worldedit.extension.platform.Actor;
|
import com.sk89q.worldedit.extension.platform.Actor;
|
||||||
import org.enginehub.piston.Command;
|
import org.enginehub.piston.Command;
|
||||||
import org.enginehub.piston.CommandParameters;
|
import org.enginehub.piston.CommandParameters;
|
||||||
|
import org.enginehub.piston.inject.InjectedValueAccess;
|
||||||
import org.enginehub.piston.inject.Key;
|
import org.enginehub.piston.inject.Key;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
@ -41,8 +42,8 @@ public final class PermissionCondition implements Command.Condition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean satisfied(CommandParameters parameters) {
|
public boolean satisfied(InjectedValueAccess context) {
|
||||||
return parameters.injectedValue(ACTOR_KEY)
|
return context.injectedValue(ACTOR_KEY)
|
||||||
.map(actor -> permissions.stream().anyMatch(actor::hasPermission))
|
.map(actor -> permissions.stream().anyMatch(actor::hasPermission))
|
||||||
.orElse(false);
|
.orElse(false);
|
||||||
}
|
}
|
||||||
|
@ -90,13 +90,14 @@ configure(subprojects + project("core:ap")) {
|
|||||||
|
|
||||||
def textExtrasVersion = "3.0.2"
|
def textExtrasVersion = "3.0.2"
|
||||||
project("core") {
|
project("core") {
|
||||||
def textVersion = "3.0.0"
|
def textVersion = "3.0.1"
|
||||||
def pistonVersion = '0.3.0'
|
def pistonVersion = '0.4.0'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
shade "net.kyori:text-api:$textVersion"
|
shade "net.kyori:text-api:$textVersion"
|
||||||
shade "net.kyori:text-serializer-gson:$textVersion"
|
shade "net.kyori:text-serializer-gson:$textVersion"
|
||||||
shade "net.kyori:text-serializer-legacy:$textVersion"
|
shade "net.kyori:text-serializer-legacy:$textVersion"
|
||||||
|
shade "net.kyori:text-serializer-plain:$textVersion"
|
||||||
shade('com.sk89q:jchronic:0.2.4a') {
|
shade('com.sk89q:jchronic:0.2.4a') {
|
||||||
exclude(group: "junit", module: "junit")
|
exclude(group: "junit", module: "junit")
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren