TransWikia.com

How do I op a user who has spaces in their username on a Minecraft server?

Arqade Asked by Sean Airey on June 4, 2021

I have a Minecraft server which allows Bedrock clients, I would like to make one of our players who has a space in their Gamertag an operator.

We tried op "user name", however this throws exceptions harder than my lawyer ;P

Any ideas? 🙂

4 Answers

The quotation mark method seems like it would work, but it doesn't in /op. However there are still other methods that work. As the other answer mentions, you will be able to get a player UUID from that person in the chat.

But what if the player hasn't chatted recently?

If your player hasn't chatted recently, you won't see their username in chat and won't be able to get a UUID. Sure, you could just ask them to send a chat message, but that will get tricky when you're trying to deop a person, because they can resist you by simply not sending any chat messages.

But, there is yet another method that is the most elegant:

Specified the player to be grant op to. In Java Edition, must be a collection of game profiles (player profiles), which can be a player name (must be a real one if the server is in online mode), or a player-type target selector.

A target selector (@p, @r, @a, @e) can also be used to select a player. And target selectors have a name argument to select targets by name, and unlike /op directly? It allows " syntax.

This is the command to use:

op @a[name="a name with spaces and "quotation marks""]

Correct answer by ExpertCoder14 on June 4, 2021

If you hover over the user's name in chat, you'll see their UUID, e.g. 584fb77d-5c02-468b-a5ba-4d62ce8eabe2. You can use this in the /op command instead of a username: /op 584fb77d-5c02-468b-a5ba-4d62ce8eabe2

Answered by 4P5 on June 4, 2021

Put the first letter in their name in and press Tab, or alternatively use their player ID.

Answered by iMxqh on June 4, 2021

You could try adding to your ops.json:

{
    "uuid": "61c1bca3-2d8a-4756-a4fb-26fe22f3b000",
    "name": "Damemon",
    "level": 4,
    "bypassesPlayerLimit": false
}

Replace 61c1bca3-2d8a-4756-a4fb-26fe22f3b000 (UUID) and Damemon (username) with your friend's Floodgate UUID and name. The level and bypassesPlayerLimit can be left as-is.

Answered by aytimothy on June 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP