Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件基本功能实现 #3

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ZCRQHD
Copy link
Collaborator

@ZCRQHD ZCRQHD commented May 1, 2024

@Zhou-Shilin

简介
加入了封禁和处罚函数
加入loop函数,实现每十秒请求服务端一次
使用json存储服务器密码等数据
测试环境
服务端
1.fabric端 0.15.10
2. 游戏版本1.19.3

运行环境
1.python:3.10.9
2.MCDR:2.12.3

@Zhou-Shilin Zhou-Shilin marked this pull request as draft May 1, 2024 10:54
@Zhou-Shilin Zhou-Shilin changed the title Dev#3 插件基本功能实现 May 1, 2024
"""
while True:
# todo:编写请求白名单黑名单的接口
newWhitelist = [] # 新白名单表单
Copy link
Contributor

@Zhou-Shilin Zhou-Shilin May 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注意到你在各种地方都喜欢使用小驼峰命名法(如someName)。但在Python中变量名和类名使用小驼峰命名法是不规范的。
在Python中常用的命名:
变量名、模块、方法和参数应为全小写、空格用下划线代替,如my_var
类名和异常名应为每个单词首字母大写、空格不表示,如MyClass
详见:https://www.python.org/dev/peps/pep-0008/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants