• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~
资源图标

资源 [原创,适用于非面板服]python写的自动重启!仅1kb!服务器关闭立即重启,无误判!可自定义服务器路径和重启时间! 0.1

ye1115660

【Lv:4】

VIP
开发者
正式会员
注册
2023/01/28
消息
544
金粒
42,372金粒
ye1115660 提交新资源:

[原创,适用于非面板服]python写的自动重启!仅1kb!服务器关闭立即重启,无误判!可自定义服务器路径和重启时间! - [适用于非面板服]python写的自动重启!仅1kb!服务器关闭立即重启,无误判!可自定义服务器路径和重启时间!

教程:(xxxx是源码保护)
源代码:
#需要安装python,编写时使用python3.11
#使用方法:改后缀为py后,右键,选择edit with idle后面唯一的一个选项,会打开源码窗口,点击run,run moudle
import psutil#需要打开cmd输入"pip install psutil"
import subprocess
import time

def xxxxxxxxxxxx:
for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
if proc.info['name'] == 'bedrock_server_mod.exe':#可以把此处改为别的名字以适配别的核心
xxxxxxxxxxxxx
xxxxxxxxxxxxxx

def xxxxxxxxxxxxxxxxx:
subprocess.Popen(r'D:\server\bedrock_server_mod.exe')#可以把此处路径修改以适配别的开服路径

while xxxx:
if...

阅读关于此资源更多信息...
 

在线会员

  • yanxi7584
  • Edithfus
  • 如果119
  • wudilaodengtou
  • AkkTNT
  • 南客18
  • Ayuu0v0
  • sunrises7g7
  • 迷途的鱼0x2
  • The_forgotten_loner
  • hu7_
后退
顶部 底部