GravelMC/lib/commands.py

18 lines
267 B
Python
Raw Normal View History

2024-10-21 10:22:24 -05:00
from dataclasses import dataclass
import os
import lib.globalData
@dataclass
class Command:
Usage: str
Description: str
Method: callable
commands = []
def Parse(globalData: globalData, line: str):
args = str(line).split()
command = args[0]