mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Internalize PAPI hook, cache SavedUser data
This commit is contained in:
1 parent
d4be673581
commit
15227ee702
14 files changed
+193
-67
No files matched your search
+2
-1
@@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group 'net.william278'
|
||||
version "$ext.plugin_version-${versionMetadata()}"
|
||||
version "$ext.plugin_version"
|
||||
|
||||
ext {
|
||||
set 'version', version.toString()
|
||||
@@ -32,6 +32,7 @@ allprojects {
|
||||
maven { url 'https://libraries.minecraft.net/' }
|
||||
maven { url 'https://api.modrinth.com/maven' }
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
|
||||
maven { url 'https://repo.papermc.io/repository/maven-public/' }
|
||||
maven { url 'https://repo.minebench.de/' }
|
||||
maven { url 'https://repo.alessiodp.com/releases/' }
|
||||
|
||||
@@ -13,6 +13,7 @@ dependencies {
|
||||
compileOnly 'net.william278:DesertWell:1.1.1'
|
||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
||||
compileOnly 'com.github.Emibergo02:RedisEconomy:9f4f9c86f4'
|
||||
compileOnly 'me.clip:placeholderapi:2.11.3'
|
||||
|
||||
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:1.5.2'
|
||||
testImplementation 'de.themoep:minedown-adventure:1.7.2-SNAPSHOT'
|
||||
|
||||
@@ -29,6 +29,7 @@ import net.william278.huskhomes.random.RandomTeleportEngine;
|
||||
import net.william278.huskhomes.user.BukkitUser;
|
||||
import net.william278.huskhomes.user.ConsoleUser;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import net.william278.huskhomes.user.SavedUser;
|
||||
import net.william278.huskhomes.util.*;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bstats.charts.SimplePie;
|
||||
@@ -58,6 +59,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
|
||||
* Metrics ID for <a href="https://bstats.org/plugin/bukkit/HuskHomes/8430">HuskHomes on Bukkit</a>.
|
||||
*/
|
||||
private static final int METRICS_ID = 8430;
|
||||
private Set<SavedUser> savedUsers;
|
||||
private Settings settings;
|
||||
private Locales locales;
|
||||
private Database database;
|
||||
@@ -91,6 +93,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
|
||||
public void onEnable() {
|
||||
// Create adventure audience
|
||||
this.audiences = BukkitAudiences.create(this);
|
||||
this.savedUsers = new HashSet<>();
|
||||
this.globalPlayerList = new HashMap<>();
|
||||
this.currentlyOnWarmup = new HashSet<>();
|
||||
this.validator = new Validator(this);
|
||||
@@ -185,6 +188,9 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
|
||||
if (Bukkit.getPluginManager().getPlugin("Plan") != null) {
|
||||
hooks.add(new PlanHook(this));
|
||||
}
|
||||
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
|
||||
hooks.add(new PlaceholderAPIHook(this));
|
||||
}
|
||||
|
||||
if (hooks.size() > 0) {
|
||||
hooks.forEach(Hook::initialize);
|
||||
@@ -233,6 +239,12 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
|
||||
return Bukkit.getOnlinePlayers().stream().map(player -> (OnlineUser) BukkitUser.adapt(player)).toList();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<SavedUser> getSavedUsers() {
|
||||
return savedUsers;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Settings getSettings() {
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
package net.william278.huskhomes.hook;
|
||||
|
||||
import me.clip.placeholderapi.PlaceholderAPIPlugin;
|
||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.user.BukkitUser;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import net.william278.huskhomes.user.SavedUser;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class PlaceholderAPIHook extends Hook {
|
||||
|
||||
public PlaceholderAPIHook(@NotNull HuskHomes plugin) {
|
||||
super(plugin, "PlaceholderAPI");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
new HuskHomesExpansion(plugin).register();
|
||||
}
|
||||
|
||||
public static class HuskHomesExpansion extends PlaceholderExpansion {
|
||||
|
||||
@NotNull
|
||||
private final HuskHomes plugin;
|
||||
|
||||
private HuskHomesExpansion(@NotNull HuskHomes plugin) {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public String onRequest(OfflinePlayer offlinePlayer, @NotNull String params) {
|
||||
if (offlinePlayer == null || !offlinePlayer.isOnline() || offlinePlayer.getPlayer() == null) {
|
||||
return "Player not online";
|
||||
}
|
||||
|
||||
// Return the requested data
|
||||
final OnlineUser player = BukkitUser.adapt(offlinePlayer.getPlayer());
|
||||
return switch (params) {
|
||||
case "homes_count" -> String.valueOf(plugin.getManager().homes()
|
||||
.getUserHomes().get(player.getUsername())
|
||||
.size());
|
||||
case "max_homes" -> String.valueOf(player.getMaxHomes(
|
||||
plugin.getSettings().getMaxHomes(),
|
||||
plugin.getSettings().doStackPermissionLimits()
|
||||
));
|
||||
case "max_public_homes" -> String.valueOf(player.getMaxPublicHomes(
|
||||
plugin.getSettings().getMaxPublicHomes(),
|
||||
plugin.getSettings().doStackPermissionLimits()
|
||||
));
|
||||
case "free_home_slots" -> String.valueOf(player.getFreeHomes(
|
||||
plugin.getSettings().getFreeHomeSlots(),
|
||||
plugin.getSettings().doStackPermissionLimits()
|
||||
));
|
||||
case "home_slots" -> String.valueOf(plugin.getSavedUser(player)
|
||||
.map(SavedUser::getHomeSlots)
|
||||
.orElse(0));
|
||||
case "homes_list" -> String.join(", ", plugin.getManager()
|
||||
.homes().getUserHomes()
|
||||
.get(player.getUsername()));
|
||||
case "public_homes_count" -> String.valueOf(plugin.getManager().homes()
|
||||
.getPublicHomes().get(player.getUsername())
|
||||
.size());
|
||||
case "public_homes_list" -> String.join(", ", plugin.getManager().homes()
|
||||
.getPublicHomeNames());
|
||||
case "ignoring_tp_requests" -> getBooleanValue(plugin.getManager().requests()
|
||||
.isIgnoringRequests(player));
|
||||
default -> null;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean persist() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getIdentifier() {
|
||||
return "huskhomes";
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getAuthor() {
|
||||
return "William278";
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getVersion() {
|
||||
return plugin.getVersion().toStringWithoutMetadata();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private String getBooleanValue(final boolean bool) {
|
||||
return bool ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23,6 +23,8 @@ import net.william278.huskhomes.position.World;
|
||||
import net.william278.huskhomes.random.RandomTeleportEngine;
|
||||
import net.william278.huskhomes.user.ConsoleUser;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import net.william278.huskhomes.user.SavedUser;
|
||||
import net.william278.huskhomes.user.User;
|
||||
import net.william278.huskhomes.util.TaskRunner;
|
||||
import net.william278.huskhomes.util.Validator;
|
||||
import org.intellij.lang.annotations.Subst;
|
||||
@@ -33,6 +35,7 @@ import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.logging.Level;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
@@ -54,6 +57,23 @@ public interface HuskHomes extends TaskRunner, EventDispatcher {
|
||||
@NotNull
|
||||
List<OnlineUser> getOnlineUsers();
|
||||
|
||||
@NotNull
|
||||
Set<SavedUser> getSavedUsers();
|
||||
|
||||
default Optional<SavedUser> getSavedUser(@NotNull User user) {
|
||||
return getSavedUsers().stream()
|
||||
.filter(savedUser -> savedUser.getUser().equals(user))
|
||||
.findFirst();
|
||||
}
|
||||
|
||||
default void editUserData(@NotNull User user, @NotNull Consumer<SavedUser> editor) {
|
||||
runAsync(() -> getSavedUser(user)
|
||||
.ifPresent(result -> {
|
||||
editor.accept(result);
|
||||
getDatabase().updateUserData(result);
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds a local {@link OnlineUser} by their name. Auto-completes partially typed names for the closest match
|
||||
*
|
||||
|
||||
@@ -134,11 +134,10 @@ public abstract class BaseHuskHomesAPI {
|
||||
* @since 4.0
|
||||
*/
|
||||
public final void editUserData(@NotNull String username, @NotNull Consumer<SavedUser> editor) {
|
||||
plugin.runAsync(() -> {
|
||||
Optional<SavedUser> savedUser = plugin.getDatabase().getUserDataByName(username);
|
||||
if (savedUser.isPresent()) {
|
||||
editor.accept(savedUser.get());
|
||||
plugin.getDatabase().updateUserData(savedUser.get());
|
||||
plugin.getSavedUsers().stream().findAny().ifPresent(savedUser -> {
|
||||
if (savedUser.getUsername().equalsIgnoreCase(username)) {
|
||||
editor.accept(savedUser);
|
||||
saveUserData(savedUser);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -151,11 +150,10 @@ public abstract class BaseHuskHomesAPI {
|
||||
* @since 4.0
|
||||
*/
|
||||
public final void editUserData(@NotNull UUID uuid, @NotNull Consumer<SavedUser> editor) {
|
||||
plugin.runAsync(() -> {
|
||||
Optional<SavedUser> savedUser = plugin.getDatabase().getUserData(uuid);
|
||||
if (savedUser.isPresent()) {
|
||||
editor.accept(savedUser.get());
|
||||
plugin.getDatabase().updateUserData(savedUser.get());
|
||||
plugin.getSavedUsers().stream().findAny().ifPresent(savedUser -> {
|
||||
if (savedUser.getUser().getUuid().equals(uuid)) {
|
||||
editor.accept(savedUser);
|
||||
saveUserData(savedUser);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class PublicHomeCommand extends HomeCommand implements TabProvider {
|
||||
@NotNull
|
||||
public List<String> suggest(@NotNull CommandUser executor, @NotNull String[] args) {
|
||||
if (args.length <= 2) {
|
||||
return filter(reduceHomeList(plugin.getManager().homes().getPublicHomes()), args);
|
||||
return filter(plugin.getManager().homes().getPublicHomeNames(), args);
|
||||
}
|
||||
return List.of();
|
||||
}
|
||||
|
||||
@@ -64,11 +64,14 @@ public class RtpCommand extends Command {
|
||||
return;
|
||||
}
|
||||
|
||||
final SavedUser user = plugin.getDatabase().getUserData(teleporter.getUuid())
|
||||
plugin.editUserData(teleporter, (SavedUser user) -> {
|
||||
|
||||
});
|
||||
final SavedUser user = plugin.getSavedUser(teleporter)
|
||||
.orElseThrow(() -> new IllegalStateException("No user data found for " + teleporter.getUsername()));
|
||||
final Instant currentTime = Instant.now();
|
||||
if (executor.equals(teleporter) && !currentTime.isAfter(user.getRtpCooldown()) &&
|
||||
!executor.hasPermission(getPermission("bypass_cooldown"))) {
|
||||
!executor.hasPermission(getPermission("bypass_cooldown"))) {
|
||||
plugin.getLocales().getLocale("error_rtp_cooldown",
|
||||
Long.toString(currentTime.until(user.getRtpCooldown(), ChronoUnit.MINUTES) + 1))
|
||||
.ifPresent(executor::sendMessage);
|
||||
@@ -101,8 +104,8 @@ public class RtpCommand extends Command {
|
||||
return;
|
||||
}
|
||||
|
||||
user.setRtpCooldown(Instant.now().plus(plugin.getSettings().getRtpCooldownLength(), ChronoUnit.MINUTES));
|
||||
plugin.getDatabase().updateUserData(user);
|
||||
plugin.editUserData(teleporter, (SavedUser saved) -> saved.setRtpCooldown(Instant.now()
|
||||
.plus(plugin.getSettings().getRtpCooldownLength(), ChronoUnit.MINUTES)));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ import net.william278.huskhomes.user.CommandUser;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@@ -137,14 +136,14 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
|
||||
case 0, 1 -> {
|
||||
if (args.length == 1 && args[0].contains(".")) {
|
||||
if (executor.hasPermission(getOtherPermission())) {
|
||||
yield filter(reduceHomeList(plugin.getManager().homes().getUserHomes()), args);
|
||||
yield filter(plugin.getManager().homes().getUserHomeNames(), args);
|
||||
}
|
||||
yield filter(reduceHomeList(plugin.getManager().homes().getUserHomes()), args);
|
||||
yield filter(plugin.getManager().homes().getUserHomeNames(), args);
|
||||
}
|
||||
if (executor instanceof OnlineUser user) {
|
||||
yield filter(plugin.getManager().homes().getUserHomes().get(user.getUsername()), args);
|
||||
}
|
||||
yield filter(reduceHomeList(plugin.getManager().homes().getUserHomes()), args);
|
||||
yield filter(plugin.getManager().homes().getUserHomeNames(), args);
|
||||
}
|
||||
case 2 -> filter(arguments.stream().toList(), args);
|
||||
default -> List.of();
|
||||
@@ -158,11 +157,4 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected static List<String> reduceHomeList(@NotNull Map<String, List<String>> cachedMap) {
|
||||
final List<String> homeNames = new ArrayList<>();
|
||||
cachedMap.forEach((key, value) -> value.forEach(home -> homeNames.add(key + "." + home)));
|
||||
return homeNames;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -20,11 +20,7 @@ public class TpIgnoreCommand extends InGameCommand {
|
||||
final RequestsManager manager = plugin.getManager().requests();
|
||||
final boolean isIgnoringRequests = !manager.isIgnoringRequests(onlineUser);
|
||||
|
||||
final SavedUser user = plugin.getDatabase().getUserData(onlineUser.getUuid())
|
||||
.orElseThrow(() -> new IllegalStateException("User data not found for " + onlineUser.getUsername()));
|
||||
user.setIgnoringTeleports(isIgnoringRequests);
|
||||
manager.setIgnoringRequests(onlineUser, isIgnoringRequests);
|
||||
plugin.getDatabase().updateUserData(user);
|
||||
plugin.editUserData(onlineUser, (SavedUser user) -> user.setIgnoringTeleports(isIgnoringRequests));
|
||||
|
||||
plugin.getLocales().getRawLocale("tpignore_toggle_" + (isIgnoringRequests ? "on" : "off"),
|
||||
plugin.getLocales().getRawLocale("tpignore_toggle_button").orElse(""))
|
||||
|
||||
@@ -59,11 +59,10 @@ public class EventListener {
|
||||
|
||||
// Set their ignoring requests state
|
||||
plugin.getDatabase().getUserData(onlineUser.getUuid()).ifPresent(userData -> {
|
||||
final boolean ignoringRequests = userData.isIgnoringTeleports();
|
||||
plugin.getManager().requests().setIgnoringRequests(onlineUser, ignoringRequests);
|
||||
plugin.getSavedUsers().add(userData);
|
||||
|
||||
// Send a reminder message if they are still ignoring requests
|
||||
if (ignoringRequests) {
|
||||
if (userData.isIgnoringTeleports()) {
|
||||
plugin.getLocales().getRawLocale("tpignore_on_notification", plugin.getLocales()
|
||||
.getRawLocale("tpignore_toggle_button")
|
||||
.orElse("")).ifPresent(locale -> onlineUser.sendMessage(new MineDown(locale)));
|
||||
|
||||
@@ -42,6 +42,31 @@ public class HomesManager {
|
||||
HashMap::putAll);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getUserHomeNames() {
|
||||
return userHomes.entrySet().stream()
|
||||
.flatMap(e -> e.getValue().stream()
|
||||
.map(home -> home.getOwner().getUsername() + "." + home.getName()))
|
||||
.toList();
|
||||
}
|
||||
|
||||
/**
|
||||
* Cached public homes - maps a username to a list of their public homes
|
||||
*/
|
||||
@NotNull
|
||||
public Map<String, List<String>> getPublicHomes() {
|
||||
return publicHomes.stream()
|
||||
.collect(HashMap::new, (m, e) -> m.put(e.getOwner().getUsername(), List.of(e.getName())),
|
||||
HashMap::putAll);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getPublicHomeNames() {
|
||||
return publicHomes.stream()
|
||||
.map(home -> home.getOwner().getUsername() + "." + home.getName())
|
||||
.toList();
|
||||
}
|
||||
|
||||
public void cacheUserHomes(@NotNull User user) {
|
||||
userHomes.put(user.getUsername(), new ConcurrentLinkedQueue<>(plugin.getDatabase().getHomes(user)));
|
||||
}
|
||||
@@ -107,15 +132,6 @@ public class HomesManager {
|
||||
userHomes.remove(user.getUuid().toString());
|
||||
}
|
||||
|
||||
/**
|
||||
* Cached public homes - maps a username to a list of their public homes
|
||||
*/
|
||||
@NotNull
|
||||
public Map<String, List<String>> getPublicHomes() {
|
||||
return publicHomes.stream()
|
||||
.collect(HashMap::new, (m, e) -> m.put(e.getOwner().getUsername(), List.of(e.getName())),
|
||||
HashMap::putAll);
|
||||
}
|
||||
|
||||
public void createHome(@NotNull User owner, @NotNull String name, @NotNull Position position,
|
||||
boolean overwrite, boolean buyAdditionalSlots) throws ValidationException {
|
||||
@@ -138,7 +154,7 @@ public class HomesManager {
|
||||
}
|
||||
|
||||
// Validate against user home slots
|
||||
final SavedUser savedOwner = plugin.getDatabase().getUserData(owner.getUuid())
|
||||
final SavedUser savedOwner = plugin.getSavedUser(owner)
|
||||
.orElseThrow(() -> new IllegalStateException("User data not found for " + owner.getUuid()));
|
||||
if (plugin.getSettings().doEconomy() && homeCount >= savedOwner.getHomeSlots()) {
|
||||
if (!buyAdditionalSlots || plugin.getEconomyHook().isEmpty() || !(owner instanceof OnlineUser online)) {
|
||||
@@ -150,8 +166,7 @@ public class HomesManager {
|
||||
}
|
||||
|
||||
plugin.performEconomyTransaction(online, EconomyHook.Action.ADDITIONAL_HOME_SLOT);
|
||||
savedOwner.setHomeSlots(savedOwner.getHomeSlots() + 1);
|
||||
plugin.getDatabase().updateUserData(savedOwner);
|
||||
plugin.editUserData(online, (SavedUser saved) -> saved.setHomeSlots(saved.getHomeSlots() + 1));
|
||||
}
|
||||
|
||||
final Home home = existingHome
|
||||
|
||||
@@ -8,6 +8,7 @@ import net.william278.huskhomes.teleport.TeleportBuilder;
|
||||
import net.william278.huskhomes.teleport.TeleportRequest;
|
||||
import net.william278.huskhomes.teleport.TeleportationException;
|
||||
import net.william278.huskhomes.user.OnlineUser;
|
||||
import net.william278.huskhomes.user.SavedUser;
|
||||
import net.william278.huskhomes.user.User;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -23,27 +24,10 @@ public class RequestsManager {
|
||||
|
||||
// Map of user UUIDs to a queue of received teleport requests
|
||||
private final Map<UUID, Deque<TeleportRequest>> requests;
|
||||
// Set of users who are ignoring tpa requests
|
||||
private final Set<UUID> ignoringRequests;
|
||||
|
||||
public RequestsManager(@NotNull HuskHomes plugin) {
|
||||
this.plugin = plugin;
|
||||
this.requests = new HashMap<>();
|
||||
this.ignoringRequests = new HashSet<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark a user as ignoring or listening to tpa requests
|
||||
*
|
||||
* @param user the user to update
|
||||
* @param ignoring whether the user should be ignoring requests
|
||||
*/
|
||||
public void setIgnoringRequests(@NotNull User user, boolean ignoring) {
|
||||
if (ignoring) {
|
||||
this.ignoringRequests.add(user.getUuid());
|
||||
} else {
|
||||
this.ignoringRequests.remove(user.getUuid());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -53,7 +37,7 @@ public class RequestsManager {
|
||||
* @return {@code true} if the user is ignoring tpa requests
|
||||
*/
|
||||
public boolean isIgnoringRequests(@NotNull User user) {
|
||||
return this.ignoringRequests.contains(user.getUuid());
|
||||
return plugin.getSavedUser(user).map(SavedUser::isIgnoringTeleports).orElse(false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -189,7 +173,7 @@ public class RequestsManager {
|
||||
// Add the request and display a message to the recipient
|
||||
addTeleportRequest(request, recipient);
|
||||
plugin.getLocales().getLocale((request.getType() == TeleportRequest.Type.TPA ? "tpa" : "tpahere")
|
||||
+ "_request_received", request.getRequesterName())
|
||||
+ "_request_received", request.getRequesterName())
|
||||
.ifPresent(recipient::sendMessage);
|
||||
plugin.getLocales().getLocale("teleport_request_buttons", request.getRequesterName())
|
||||
.ifPresent(recipient::sendMessage);
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
||||
org.gradle.daemon=true
|
||||
javaVersion=16
|
||||
|
||||
plugin_version=4.0.4
|
||||
plugin_version=4.0.5
|
||||
plugin_archive=huskhomes
|
||||
|
||||
jedis_version=4.3.1
|
||||
|
||||
Reference in new issue
Block a user