Fix ops being able to use /give **

This commit is contained in:
Telesphoreo 2022-01-03 15:14:12 -06:00
parent 57be3e8593
commit c8f10a6dc7
3 changed files with 4 additions and 3 deletions

View file

@ -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'

View file

@ -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("*"))) {

View file

@ -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") }