mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
parent
29d4e09983
commit
3f6b9586b4
@ -50,7 +50,7 @@ public class Commandhome extends EssentialsCommand
|
|||||||
if (bed != null)
|
if (bed != null)
|
||||||
{
|
{
|
||||||
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
||||||
return;
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
user.getTeleport().home(player, homeName.toLowerCase(Locale.ENGLISH), charge);
|
user.getTeleport().home(player, homeName.toLowerCase(Locale.ENGLISH), charge);
|
||||||
@ -64,10 +64,10 @@ public class Commandhome extends EssentialsCommand
|
|||||||
if (bed != null)
|
if (bed != null)
|
||||||
{
|
{
|
||||||
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
||||||
return;
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
user.getTeleport().respawn(charge, TeleportCause.COMMAND);
|
user.getTeleport().respawn(charge, TeleportCause.COMMAND);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if (homes.isEmpty())
|
else if (homes.isEmpty())
|
||||||
{
|
{
|
||||||
@ -76,7 +76,6 @@ public class Commandhome extends EssentialsCommand
|
|||||||
else if (homes.size() == 1 && player.equals(user))
|
else if (homes.size() == 1 && player.equals(user))
|
||||||
{
|
{
|
||||||
user.getTeleport().home(player, homes.get(0), charge);
|
user.getTeleport().home(player, homes.get(0), charge);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user