@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
if (!world.isRemote)
MinecraftServer.getServer().getCommandManager().executeCommand(player, "spawnpoint");
return true;
}