mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-31 04:21:40 +01:00
chore: pre-commit changes [skip ci]
This commit is contained in:
parent
2528ebfe51
commit
678b29d1f9
@ -142,8 +142,10 @@ public class DestinationServices {
|
||||
public boolean teleportToDestination(String name, PlayerContainer player,
|
||||
boolean doEffect) {
|
||||
if (this.destinationRepository.containsKey(name)) {
|
||||
|
||||
if (player.getServer().getWorld(this.destinationRepository.get(name).getLoc().getWorldName()) == null) {
|
||||
if (player.getServer().getWorld(this.destinationRepository.get(name)
|
||||
.getLoc()
|
||||
.getWorldName())
|
||||
== null) {
|
||||
infoLogger.warning(Lang.translate("desti.error.invalidworld"));
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user