material in prank
This commit is contained in:
@ -5,12 +5,12 @@ class PrankCommandCreate(BaseModel):
|
||||
name: str
|
||||
description: str
|
||||
price: int
|
||||
material: str
|
||||
command_template: str
|
||||
server_ids: List[str] = Field(
|
||||
default=[],
|
||||
description='Список серверов, где доступна команда. Использование ["*"] означает доступность на всех серверах'
|
||||
)
|
||||
material: str
|
||||
targetDescription: Optional[str] = None # Сообщение для целевого игрока
|
||||
globalDescription: Optional[str] = None # Сообщение для всех остальных
|
||||
|
||||
@ -18,6 +18,7 @@ class PrankCommandUpdate(BaseModel):
|
||||
name: Optional[str] = None
|
||||
description: Optional[str] = None
|
||||
price: Optional[int] = None
|
||||
material: Optional[str] = None
|
||||
command_template: Optional[str] = None
|
||||
server_ids: Optional[List[str]] = None
|
||||
targetDescription: Optional[str] = None
|
||||
@ -29,6 +30,7 @@ class PrankCommand(BaseModel):
|
||||
description: str
|
||||
price: int
|
||||
command_template: str
|
||||
material: str
|
||||
server_ids: List[str] = []
|
||||
|
||||
class PrankExecute(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user