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.

  • 2
    You are the admin, but you are not an Op (operator) on your server. You need access either to the Minecraft server console or a shell on the server so that you can add your username to the ops.txt file (at least I think that's what it's called). – MBraedley Jan 28 '14 at 0:49
  • Nope had no idea about that post :P – Madz Jan 28 '14 at 4:00
  • What version of Minecraft is this? – aman207 Jan 28 '14 at 5:22
  • 1.7.4 my minecraft automatically updates. – Madz Jan 28 '14 at 13:37

You need to configure your Minecraft server. From the Minecraft wiki:

Configuring the Minecraft server

  1. 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.

  2. Add your username to the admin.txt and/or ops.txt (newer Minecraft versions may not have an admin.txt file). Ops.txt and admin.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 the ops.txt file.

  • Tried doing that already than I retried it and also restarted the server. Still not the result I wanted. – Madz Jan 28 '14 at 4:02
  • @Madz Have you tried going into your server command line and entered /op <playername>? – syb0rg Jan 28 '14 at 4:04
  • Yep already tried that. Came up with the same thing. – Madz Jan 28 '14 at 4:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.