mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Rename some Settings getters
This commit is contained in:
1 parent
29cf3f9ffc
commit
34fdb88d5c
22 files changed
+44
-44
No files matched your search
@@ -56,7 +56,7 @@ public class Teleport {
|
||||
// Teleport a user on another server
|
||||
if (localTeleporter.isEmpty()) {
|
||||
final Username teleporter = (Username) this.teleporter;
|
||||
if (!plugin.getSettings().isCrossServer()) {
|
||||
if (!plugin.getSettings().doCrossServer()) {
|
||||
throw new TeleportationException(TeleportationException.Type.TELEPORTER_NOT_FOUND);
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public class Teleport {
|
||||
return;
|
||||
}
|
||||
|
||||
if (plugin.getSettings().isCrossServer()) {
|
||||
if (plugin.getSettings().doCrossServer()) {
|
||||
fireEvent((event) -> {
|
||||
executeEconomyActions();
|
||||
Message.builder()
|
||||
@@ -119,7 +119,7 @@ public class Teleport {
|
||||
}
|
||||
|
||||
final Position target = (Position) this.target;
|
||||
if (!plugin.getSettings().isCrossServer() || target.getServer().equals(plugin.getServerName())) {
|
||||
if (!plugin.getSettings().doCrossServer() || target.getServer().equals(plugin.getServerName())) {
|
||||
teleporter.teleportLocally(target, async);
|
||||
this.displayTeleportingComplete(teleporter);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user