Setup operators on Minecraft server [duplicate]
I was wondering how I can change my game difficulty and how to change my game to creative. Every time I type in /gamemode 1
or /gamemode creative
it comes up with:
I am sorry but you do not have permission to perform this command. Please contact the server administrators if you believe that this is an error.
I thought this was weird because I am the server administrator.
You need to configure your Minecraft server. From the Minecraft wiki:
Configuring the Minecraft server
Configure the server by editing the
server.properties
file, the format for which is explained here. Be certain to edit the file with a text editor that does not add formatting (e.g., for italics). Additional configuration may not be necessary as many servers run fine from the default values.Add your username to the
admin.txt
and/orops.txt
(newer Minecraft versions may not have anadmin.txt
file).Ops.txt
andadmin.txt
determine who may execute server commands. In other words, operator ("op") privileges allow you to control certain aspects of the game (e.g., teleporting players). Op privileges may also be granted from the server GUI: type "op " and it will automatically add to theops.txt
file.