mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge branch 'mg_incomplete' of https://github.com/TotalFreedom/TotalFreedomMod into mg_incomplete
This commit is contained in:
commit
c636ee043a
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
@ -106,6 +108,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");
|
||||||
|
Loading…
Reference in New Issue
Block a user