2

I'm starting to setup a server, me and a few friends are making a little decent spawn, were we don't want to have anyone that joins place/destroy blocks. I even disabled mobGriefing so that people can't lure creepers to destroy stuff.

However, I'd like them to be abble to use chests, ender chests and enchantment table, but without them to be abble to place/destroy blocks. Is there any way? I'm using bukkit, and the only plugin I have is FirstJoinPlus.

3
  • You could set their game mode to adventure mode.
    – Nick B.
    Commented Jul 5, 2015 at 22:08
  • @NickB. what would that do? Commented Jul 5, 2015 at 22:44
  • I'll post an answer.
    – Nick B.
    Commented Jul 5, 2015 at 23:37

2 Answers 2

1

You can change their game mode to adventure mode. If a player is in adventure mode, they can't break blocks but can interact with wooden doors, buttons, chests, etc. The command to set a player's game mode to adventure is /gamemode a username, where username is a target selector or player's username.

Here's how you could have only certain people in adventure mode.

  1. Create an infinite redstone loop with a command block. Video Tutorial (use a command block instead of a piston).

  2. Let's pretend you want everyone except Bob and Joe to be on adventure mode. You would enter this command into the command block. /gamemode a @a[name=!Bob,name=!Joe]. Bob and Joe would be the only players to not be in adventure mode.

  3. You can edit the command at any time to add more people to the list. Just make sure you put an exclamation point before their username. Good luck!

2
  • I think I'll try the adventure part, but not with a loop. I'll make 2 command blocks, one to make player adventurer and the other to make him survival again, so they can use enchant table at spawn and eventually other stuff :) Thanks! Commented Jul 6, 2015 at 0:07
  • @André, I made a mistake. [name=!Bob, name=!Joe] won't work. Remove the space after the comma.
    – Nick B.
    Commented Jul 6, 2015 at 1:07
2

Try these two plugins:

  • Essentials (This is probably the most useful plugin ever and you might already have it. If not I strongly recommend getting this as it will help you immensely.)

  • Towny (This can claim the spawn and allows you to add people to modify the claimed area and only they can.)

Not knowing what kind of server you are wanting to make, I can't really recommend any more sorry.

2
  • I heard about Essentials a lot, but since I have a really small server (512 MB RAM) I don't want to overload it with plugins. Commented Jul 5, 2015 at 22:41
  • Essentials is a must need if you want this server public. It will solve so many problems.
    – Skye
    Commented Jul 6, 2015 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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