AdminWorld welcome sign now facing the right direction :)

Added teleporting message to /adminworld
This commit is contained in:
JeromSar 2013-08-12 17:58:28 +02:00
parent 699d366efb
commit af7e6c5d41
4 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#Mon, 12 Aug 2013 12:49:58 +0200 #Mon, 12 Aug 2013 17:57:31 +0200
program.VERSION=2.22 program.VERSION=2.22
program.BUILDNUM=403 program.BUILDNUM=406
program.BUILDDATE=08/12/2013 12\:49 PM program.BUILDDATE=08/12/2013 05\:57 PM

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Mon Aug 12 12:49:58 CEST 2013 #Mon Aug 12 17:57:31 CEST 2013
build.number=404 build.number=407

View File

@ -12,6 +12,7 @@ public class Command_adminworld extends TFM_Command
@Override @Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{ {
playerMsg("Going to world: adminworld");
TFM_AdminWorld.getInstance().sendToAdminWorld(sender_p); TFM_AdminWorld.getInstance().sendToAdminWorld(sender_p);
return true; return true;

View File

@ -9,10 +9,12 @@ import org.bukkit.World;
import org.bukkit.WorldCreator; import org.bukkit.WorldCreator;
import org.bukkit.WorldType; import org.bukkit.WorldType;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.Sign; import org.bukkit.block.Sign;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.material.MaterialData;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
public class TFM_AdminWorld public class TFM_AdminWorld
@ -93,6 +95,11 @@ public class TFM_AdminWorld
Block welcomeSignBlock = adminWorld.getBlockAt(0, 50, 0); Block welcomeSignBlock = adminWorld.getBlockAt(0, 50, 0);
welcomeSignBlock.setType(Material.SIGN_POST); welcomeSignBlock.setType(Material.SIGN_POST);
Sign welcomeSign = (Sign) welcomeSignBlock.getState(); Sign welcomeSign = (Sign) welcomeSignBlock.getState();
org.bukkit.material.Sign signData = new org.bukkit.material.Sign(Material.SIGN_POST);
signData.setFacingDirection(BlockFace.NORTH);
welcomeSign.setData(signData);
welcomeSign.setLine(0, ChatColor.GREEN + "AdminWorld"); welcomeSign.setLine(0, ChatColor.GREEN + "AdminWorld");
welcomeSign.setLine(1, ChatColor.DARK_GRAY + "---"); welcomeSign.setLine(1, ChatColor.DARK_GRAY + "---");
welcomeSign.setLine(2, ChatColor.YELLOW + "Spawn Point"); welcomeSign.setLine(2, ChatColor.YELLOW + "Spawn Point");