matpow2 / cuwo

Open server and utilities for Cube World
GNU General Public License v3.0
170 stars 49 forks source link

Teleport command is broken #199

Open SinusStudios opened 6 years ago

SinusStudios commented 6 years ago

When logging in and entering /teleport waffeln otto (valid player names, online) Output in console: Traceback (most recent call last): File "/home/user/cuwo/cuwo/script.py", line 361, in call_command ret = command(user, *args) or '' File "/home/user/cuwo/cuwo/script.py", line 82, in __call__ return self.func(*arg, **kw) File "/home/user/cuwo/cuwo/script.py", line 158, in new_func return func(script, *arg, **kw) File "/home/user/cuwo/scripts/commands.py", line 284, in teleport pos = qvec3(int(a), int(b), 0) * constants.CHUNK_SCALE ValueError: invalid literal for int() with base 10: 'waffeln' System: Debian Linux 8, x64 (VPS)

matpow2 commented 6 years ago

/teleport does not allow you to teleport someone else, only yourself, but this could probably be added.

SinusStudios commented 6 years ago

I tried to teleport myself (waffeln) to the player "otto".