Skip to content

Commit

Permalink
Update launcher_esp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ngdplnk committed Aug 30, 2023
1 parent 152f61e commit 196779a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions python/launcher/launcher_esp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,29 @@ def limpiar_consola():

#CAMBIO DE NOMBRE DE VENTANA
import sys
if sys.platform.startswith('win32'): #WINDOWS
if sys.platform.startswith('win32'): #WINDOWS
import ctypes
ctypes.windll.kernel32.SetConsoleTitleW("Lanzador de Servidores para Minecraft")
elif sys.platform.startswith('linux') or sys.platform.startswith('darwin'): #LINUX O MACOS
elif sys.platform.startswith('linux') or sys.platform.startswith('darwin'): #LINUX O MACOS
sys.stdout.write(f"\x1b]2;Lanzador de Servidores para Minecraft\x07")

#BLOQUES DE CÓDIGO
#BLOQUE DE SELECCIÓN DE RAM
def ram():
limpiar_consola()
#CÓDIGO AQUÍ
print("Lanzador de Servidores para Minecraft")
print("-------------------------------------")
print("")
print("Puedes volver al Menú Principal con 'N', o")
while True:
try:
gbs = int(input("Ingresa los GB de RAM para asignar al Servidor= "))
break
except ValueError:
ram()

print(f"El valor de gbs es: {gbs}")
print("Presiona Enter para continuar...")


def about():
limpiar_consola()
Expand Down

0 comments on commit 196779a

Please sign in to comment.