-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7981e4
commit 7db26f1
Showing
4 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
from piemc.handlers.command import Command | ||
from piemc.handlers.command import ConsoleCMD | ||
|
||
|
||
@Command | ||
@ConsoleCMD | ||
def ping(server): | ||
server.logger.info("Pong!") | ||
|
||
|
||
@Command | ||
@ConsoleCMD | ||
def stop(server): | ||
server.logger.info("Stopping the server...") | ||
server.stop() | ||
|
||
@Command | ||
@ConsoleCMD | ||
def setmaxplayers(server, maxplayers): | ||
server.max_players = maxplayers | ||
server.update_server_status() | ||
|
||
@Command | ||
def fakeonline(server, fakeonline): | ||
server.players_online = fakeonline | ||
@ConsoleCMD | ||
def fakeonline(server, amount): | ||
server.players_online = amount | ||
server.update_server_status() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters