mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
CB#1518 B#1042
Support for Enchantments & Removed broken BedFix (in cb now)
This commit is contained in:
parent
d5c852b79d
commit
f250a107e4
16 changed files with 124 additions and 68 deletions
|
@ -4,7 +4,6 @@ import static com.earth2me.essentials.I18n._;
|
|||
import com.earth2me.essentials.Trade;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import com.earth2me.essentials.craftbukkit.BedLocationFix;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import org.bukkit.Location;
|
||||
|
@ -45,7 +44,7 @@ public class Commandhome extends EssentialsCommand
|
|||
try
|
||||
{
|
||||
if ("bed".equalsIgnoreCase(homeName)) {
|
||||
final Location bed = BedLocationFix.getBedSpawnLocation(player);
|
||||
final Location bed = player.getBedSpawnLocation();
|
||||
if (bed != null)
|
||||
{
|
||||
user.getTeleport().teleport(bed, charge);
|
||||
|
@ -58,7 +57,7 @@ public class Commandhome extends EssentialsCommand
|
|||
final List<String> homes = player.getHomes();
|
||||
if (homes.isEmpty() && player.equals(user))
|
||||
{
|
||||
final Location loc = BedLocationFix.getBedSpawnLocation(player);
|
||||
final Location loc = player.getBedSpawnLocation();
|
||||
if (loc == null)
|
||||
{
|
||||
if (ess.getSettings().spawnIfNoHome())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue