.bat level name switcher

Discussion in 'Bukkit Help' started by Nirvatho, Jul 16, 2012.

  1. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is it possible to leave level-name= empty and on the Run.bat whenever you run it, it asks what server u want to load? im working on a LoZ:LttP Map and want to be able to work on it on multi-player if a buddie but also be able to just change to my brothers server when he wants to play mc.
  2. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    create 2 seperate server folders?
  3. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i know that but like some way to have 1 file to be able to load both servers just not at same time cause that cant happen
  4. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    this is what i have come up with so far
    Code:
    :main
    @ECHO OFF
    color 0a
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    echo.
    echo Which server would you like to run?
    set /p S="server: "
    if "%S%"=="1" goto A
    if "%S%"=="2" goto B
    if "%S%"=="exit" exit
    if not "%S%"=="S" goto Z
    cls
     
    :A
     
    @echo off
    color a
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    cls
    goto main
     
    :B
     
     
    @echo off
    color a
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar server.jar
    PAUSE
    cls
    goto main
     
    :Z
     
    @echo off
    color a
    echo sry this is not a valid server
    pause
    cls
    goto main
  5. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    but the problem is that you need to have both craftbukkit files in the same folder and that doesnt work
    ill look into it more for u
  6. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    so for this i would need to rename a craftbukkit.jar to server.jar??
  7. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    and what if i place it in a nother folder inside the folder??
  8. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    never mind i did a new fix heres what it looks like

    This post has been edited 1 time. It was last edited by jacklin213 Jul 16, 2012.
  9. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i dont see anythign new
  10. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    wait up im uploading it
  11. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 1 time. It was last edited by jacklin213 Jul 16, 2012.
  12. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    unable to retrieve document
  13. Offline

    Nirvatho

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    kk i checked it out basicly its what im looking for now exiting twice looks like its gonna be fun but thats the cost of having to just load from 1 screen

    This post has been edited 1 time. It was last edited by Nirvatho Jul 16, 2012.
  14. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  15. Offline

    jacklin213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hope this helps ^_^

Share This Page