mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-12-28 19:14:18 +00:00
Fix ops being able to use /give **
This commit is contained in:
parent
57be3e8593
commit
c8f10a6dc7
3 changed files with 4 additions and 3 deletions
|
@ -7,7 +7,7 @@ dependencies {
|
||||||
exclude group: "org.bukkit", module: "bukkit"
|
exclude group: "org.bukkit", module: "bukkit"
|
||||||
}
|
}
|
||||||
compileOnly 'net.luckperms:api:5.0'
|
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'
|
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));
|
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()) {
|
if (searchTerm.isEmpty()) {
|
||||||
throw new PlayerNotFoundException();
|
throw new PlayerNotFoundException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
matchWildcards = getTFMHandler().isAdmin(sender.getPlayer());
|
||||||
final boolean skipHidden = sender.isPlayer() && !ess.getUser(sender.getPlayer()).canInteractVanished();
|
final boolean skipHidden = sender.isPlayer() && !ess.getUser(sender.getPlayer()).canInteractVanished();
|
||||||
|
|
||||||
if (matchWildcards && (searchTerm.contentEquals("**") || searchTerm.contentEquals("*"))) {
|
if (matchWildcards && (searchTerm.contentEquals("**") || searchTerm.contentEquals("*"))) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ dependencyResolutionManagement {
|
||||||
content { includeGroup("com.github.milkbowl") }
|
content { includeGroup("com.github.milkbowl") }
|
||||||
}
|
}
|
||||||
maven("https://nexus.telesphoreo.me/repository/totalfreedom/") {
|
maven("https://nexus.telesphoreo.me/repository/totalfreedom/") {
|
||||||
content { includeGroup("me.totalfreedom") }
|
content { includeGroup("me.telesphoreo") }
|
||||||
}
|
}
|
||||||
maven("https://repo.codemc.org/repository/maven-public") {
|
maven("https://repo.codemc.org/repository/maven-public") {
|
||||||
content { includeGroup("org.bstats") }
|
content { includeGroup("org.bstats") }
|
||||||
|
|
Loading…
Reference in a new issue