mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2025-10-16 12:02:51 +00:00
Update Fun.py
This commit is contained in:
parent
c627af00b1
commit
c4679c5fe2
1 changed files with 15 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from .Handlers import handlemsg, handlemsg_all
|
||||
import ba, _ba
|
||||
from tools import corelib
|
||||
from .. import floater
|
||||
|
||||
Commands = ['fly', 'invisible', 'headless', 'creepy', 'celebrate', 'speed', 'floater']
|
||||
CommandAliases = ['inv', 'hl', 'creep', 'celeb', 'flo']
|
||||
|
|
@ -44,15 +45,19 @@ def ExcelCommand(command, arguments, clientid, accountid):
|
|||
floater(arguments,clientid)
|
||||
|
||||
|
||||
def floater(arguments,clientid):
|
||||
try:
|
||||
from .. import floater
|
||||
if arguments ==[]:
|
||||
floater.assignFloInputs(clientid)
|
||||
else:
|
||||
floater.assignFloInputs(arguments[0])
|
||||
except:
|
||||
pass
|
||||
def floater(arguments, client_id):
|
||||
try:
|
||||
if not arguments:
|
||||
from ..floater import assign_flo_inputs # Import the function from floater module
|
||||
assign_flo_inputs(client_id) # Call the function directly
|
||||
else:
|
||||
from ..floater import assign_flo_inputs # Import the function from floater module
|
||||
assign_flo_inputs(arguments[0]) # Call the function directly
|
||||
except ImportError as e:
|
||||
print(f"ImportError: {e}")
|
||||
except Exception as e:
|
||||
print(f"An error occurred: {e}")
|
||||
|
||||
|
||||
def speed(arguments):
|
||||
if arguments ==[] or arguments==['']:
|
||||
|
|
@ -215,4 +220,4 @@ def celeb(arguments):
|
|||
player = int(arguments[0])
|
||||
handlemsg(player, ba.CelebrateMessage())
|
||||
except:
|
||||
return
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue