Skip to content

Commit

Permalink
Fix old class using
Browse files Browse the repository at this point in the history
  • Loading branch information
davboecki committed Apr 26, 2012
1 parent 45d537f commit 55de6ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/de/davboecki/multimodworld/plugin/RoomControler.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;

import de.davboecki.multimodworld.api.ForgeLoginHooks;
import de.davboecki.multimodworld.api.plugin.PlayerStatus;


public class RoomControler {
Expand Down Expand Up @@ -149,7 +149,7 @@ public Location getPlayerLobbyLocation(Player player, World world){
Location loc = new Location(world, 6.5, 8, 6.5);
CheckItem Checker = new CheckItem(plugin, world.getName());
if(plugin.getSettings().ExchangeWorlds.containsKey(world.getName())){
if (plugin.getSettings().ExchangeWorlds.get(world.getName()).WorldType.equalsIgnoreCase("Mod") && ForgeLoginHooks.isPlayerConfirmed(player)) {
if (plugin.getSettings().ExchangeWorlds.get(world.getName()).WorldType.equalsIgnoreCase("Mod") && !PlayerStatus.isVanilla(player.getName())) {
loc = new Location(world, 6.5 + 16, 8, 6.5);
} else{
loc = new Location(world, 6.5, 8, 6.5);
Expand All @@ -173,7 +173,7 @@ public Location playertospawn(Player player) {
loc.setZ((plugin.RoomControl.getRoomlocation(player).getZ() * 7) +
3.5);
} else {
if (plugin.getSettings().ExchangeWorlds.get(player.getWorld().getName()).WorldType.equalsIgnoreCase("Mod") && ForgeLoginHooks.isPlayerConfirmed(player)) {
if (plugin.getSettings().ExchangeWorlds.get(player.getWorld().getName()).WorldType.equalsIgnoreCase("Mod") && !PlayerStatus.isVanilla(player.getName())) {
loc = new Location(player.getWorld(), 6.5 + 16, 8, 6.5);
} else {
loc = new Location(player.getWorld(), 6.5, 8, 6.5);
Expand Down Expand Up @@ -284,7 +284,7 @@ public boolean Teleport(Player player, String Target) {
}
} else if (Target == "OUT_MOD") {
if(plugin.Settings.ExchangeWorlds.get(player.getWorld().getName()).WorldType.equalsIgnoreCase("Mod")){
if(ForgeLoginHooks.isPlayerConfirmed(player)) {
if(!PlayerStatus.isVanilla(player.getName())) {
Location TeleportLoc = new Location(player.getWorld(), 26.5, 8,
6.5, 90, 0);

Expand Down

0 comments on commit 55de6ad

Please sign in to comment.