mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Refactor player location and server name fetching, prune unused locales
This commit is contained in:
1 parent
571f35429d
commit
7e3dab918f
23 files changed
+151
-200
No files matched your search
@@ -39,7 +39,7 @@ public class RtpCommand extends CommandBase implements ConsoleExecutable {
|
||||
.ifPresent(onlineUser::sendMessage);
|
||||
return;
|
||||
}
|
||||
final Position userPosition = target.getPosition().join();
|
||||
final Position userPosition = target.getPosition();
|
||||
if (plugin.getSettings().rtpRestrictedWorlds.stream()
|
||||
.anyMatch(worldName -> worldName.equals(userPosition.world.name))) {
|
||||
plugin.getLocales().getLocale("error_rtp_restricted_world")
|
||||
|
||||
Reference in new issue
Block a user