Skip to content

Commit 212fecc

Browse files
author
github-actions[bot]
committed
# pyproject.toml
- Removed unsed lint rule. # samples.py - Fixed example of using Players from a Minecraft server updated to reflect changes due to #16 .
1 parent 94282f2 commit 212fecc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ampapi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
__title__ = "CubeCoders AMP API"
2626
__author__ = "k8thekat"
2727
__license__ = "GNU"
28-
__version__ = "1.1.1"
28+
__version__ = "1.1.2"
2929
__credits__ = "AMP by CubeCoders and associates."
3030

3131
from typing import Literal, NamedTuple
@@ -55,6 +55,6 @@ class VersionInfo(NamedTuple):
5555
releaseLevel: Literal["alpha", "beta", "pre-release", "release", "development"]
5656

5757

58-
version_info: VersionInfo = VersionInfo(Major=1, Minor=1, Revision=1, releaseLevel="release")
58+
version_info: VersionInfo = VersionInfo(Major=1, Minor=1, Revision=2, releaseLevel="release")
5959

6060
del NamedTuple, Literal, VersionInfo

docs/samples/sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ async def Sample_API() -> None:
8383
mcinstance.status.metrics
8484

8585
# Want to kick a random person? Here ya go~
86-
players: list[Players] = await mcinstance.get_user_list()
87-
await mcinstance.mc_kick_user_by_id(user_id=players[0].uuid)
86+
players: Players = await mcinstance.get_user_list()
87+
await mcinstance.mc_kick_user_by_id(user_id=players.sorted[0].uuid)
8888

8989
# Analytics Introduction -
9090
# Simply call the below method.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ select = [
5555
"PTH",
5656
"RUF",
5757
"SIM",
58-
"TC",
58+
# "TC",
5959
"UP",
6060
"W",
6161
"PERF",

0 commit comments

Comments
 (0)