Fix ops being able to use /give **

1.17
Telesphoreo 1 year ago
parent 57be3e8593
commit c8f10a6dc7

@ -7,7 +7,7 @@ dependencies {
exclude group: "org.bukkit", module: "bukkit"
}
compileOnly 'net.luckperms:api:5.0'
compileOnly 'me.totalfreedom:TotalFreedomMod:7.1.0'
compileOnly 'me.telesphoreo:DummyTFM:1.0'
api 'io.papermc:paperlib:1.0.6'

@ -69,11 +69,12 @@ public abstract class EssentialsLoopCommand extends EssentialsCommand {
loopOnlinePlayersConsumer(server, sender, multipleStringMatches, matchWildcards, searchTerm, user -> updatePlayer(server, sender, user, commandArgs));
}
protected void loopOnlinePlayersConsumer(final Server server, final CommandSource sender, final boolean multipleStringMatches, final boolean matchWildcards, final String searchTerm, final UserConsumer userConsumer) throws PlayerNotFoundException, NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException {
protected void loopOnlinePlayersConsumer(final Server server, final CommandSource sender, final boolean multipleStringMatches, boolean matchWildcards, final String searchTerm, final UserConsumer userConsumer) throws PlayerNotFoundException, NotEnoughArgumentsException, PlayerExemptException, ChargeException, MaxMoneyException {
if (searchTerm.isEmpty()) {
throw new PlayerNotFoundException();
}
matchWildcards = getTFMHandler().isAdmin(sender.getPlayer());
final boolean skipHidden = sender.isPlayer() && !ess.getUser(sender.getPlayer()).canInteractVanished();
if (matchWildcards && (searchTerm.contentEquals("**") || searchTerm.contentEquals("*"))) {

@ -6,7 +6,7 @@ dependencyResolutionManagement {
content { includeGroup("com.github.milkbowl") }
}
maven("https://nexus.telesphoreo.me/repository/totalfreedom/") {
content { includeGroup("me.totalfreedom") }
content { includeGroup("me.telesphoreo") }
}
maven("https://repo.codemc.org/repository/maven-public") {
content { includeGroup("org.bstats") }

Loading…
Cancel
Save