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? :)
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this communityThe 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.
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\""]
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
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.
Put the first letter in their name in and press Tab, or alternatively use their player ID.