Showing posts with label bukkit. Show all posts
Showing posts with label bukkit. Show all posts

Thursday, April 26, 2012

Minecraft, PermissionsEx and how group inheritance works

Question

I'm trying to setup permissions on a Bukkit server using PermissionsEx.

I've worked out how to add/remove permissions and basic group management, but I'd like to setup group inheritance.

The Groups I have are: default, member, moderator, admin and owner

I'd like it so that each group inherits from the one below. What I've done so far is "pex group parent set "

using that command ive done the following: default has a parent of member, member -> moderator, moderator -> admin, admin -> owner

I'm not sure thats right though :/ when i look at the permissions for default, it shows lots of permissions some saying "from member", "from moderator", "from admin" and so on.

Have I done it in the wrong direction? I've looked at the documentation but it just shows the command and not a lot else. Any help would be appreciated!

Asked by NickSlash

Answer

From your description it seems that you have done it in exactly the opposite order. (It would help if you also posted your script, though.)

When you 'inherit', it means the 'child' will inherit all of the parent's members and can also add its own. So basically what you did was, you let anybody (even default) use everything it inherited from every group all the way up to owner.
So basically what you need to do is:

  1. define the default group
  2. define member and set its parent (i.e. let it inherit from) default
  3. let moderator inherit from member
  4. and so on.

That should be it.

Edit: Yesterday at night I was pretty tired, about to go to sleep and a bit worried whether what I wrote would make any sense in the morning. Luckily it doesn't look that bad; so I'll even add an example now. :)

Make your yml file like this:

groups:
  Guest:
    default: true
    permissions:
    - modifyworld.*  Member:
    default: false
    inheritance:
    - Guest
    permissions:
    ...etc

(I've named the default group Guest for clarity.)

Answered by ver

Monday, March 12, 2012

Creative Mode Permissions Node(s)?

Question

Is there a permissions node to disable a player from being in creative mode?

Read: Not one that disallows access to /gamemode, but one that would prevent /gamemode from changing a players mode.

If there is not a built in one, does anyone know of a plugin that does this?

At the very least I would like a permission node that disallows flying while in creative mode.

I have searched the bukkit plugins site, for 'creative', and have seen all of those.

Asked by bitfed

Answer

No such plugin exists, so I made a quick and dirty custom one I call ModeLock. You can download it here, which should in theory work with all future versions of Bukkit unless something drastic changes.

It will by default block all gamemode changes for all players. To allow a player change into the creative gamemode, give them the permission node modelock.creative. To allow them to become survival, give them modelock.survival. To give them both, you can use modelock.gamemode.

Answered by Jake King

Monday, March 5, 2012

Bukkit Permissions, quick and simple

Question

I cannot for the life of me figure out how permissions.yml works for a CraftBukkit Minecraft Server. Here is what I want:

I would like three groups: admin, user, and default.

  • Admins should have complete access to all commands
  • Users should be able to use /tp and maybe a couple other commands
  • Defaults should not be able to use any command.

Here's what I have:

  5 users:
  6     my-name:
  7         groups:
  8         - admin
  9 groups:
 10     default:
 11         permissions:
 12             bukkit.command.*: false
 13     admin:
 14         permissions:
 15             bukkit.command.*: true
 16         inheritance:
 17         - user
 18     user:
 19         permissions:
 20             bukkit.command.teleport: true
 21             bukkit.command.tell: true
 22             bukkit.command.me: true
 23             bukkit.command.kill: true
 24         inheritance:
 25         - default
 26 messages:
 27     command.*: '&cYou do not have permission to use that command'

Can someone please do me a huge favor and help.

Asked by kevlar1818

Answer

Quite simply, the permissions.yml file that is in the root directory of your server does nothing on its own. It's a somewhat odd and misleading feature, so it's understandable that you'd be confused. The permissions.yml file is used only to create custom permissions node aliases and group nodes. To be perfectly honest, I find it fairly useless.

The format you are using does not go in the root permissions.yml, it goes in the config.yml of a plugin known as PermissionsBukkit. This is a plugin that actually manages the permissions for you, and you need some kind of permissions plugin to use the system effectively. You should be able to cut/paste your current permissions.yml file into the PermissionsBukkit config.yml, and it should work just fine.

This is a somewhat opinionated note, but I think it's worth pointing out that there are other permissions plugins out there besides PermissionsBukkit. There are two other main permissions plugins out there, PermissionsEX (my personal favorite) and bPermissions. These have a format slightly different from PermissionsBukkit, but they have many more features, including a good command system and much better APIs, so they might save you trouble in the long run.

Answered by Jake King

How do I disable PvP in regions using WorldGuard?

Question

I am running in to some problems when users kill each other in their homes. How can I configure the WorldGuard plugin to disable PvP in regions?

Asked by Roberts

Answer

According to the WorldGuard Wiki, use /region flag <id> pvp deny

Answered by Zommuter

Wednesday, February 29, 2012

How do I hide the plugin list from my users?

Question

I want to hide my plugin list from my users. How do I do that? They just type /plugins and all plugins are shown. Is there any option to disable this? I am using Essentials.

Asked by Roberts

Answer

You should use PluginList.

Answered by n/a

Monday, February 27, 2012

How to stop winter? (Or, how to change a single biome in Minecraft / bukkit) [closed]

Question

Possible Duplicate:
Can I alter the biome of an area?

After, copying my vanilla world to bukkit, the biome seems to have changed from tundra to snow (while the terrain is the same as I noticed by creating a new world with same seed). This means that there is a straight border between the tundra part of the world that I previously explored, and the snow land that bukkit generates now. It also causes WorldGuard to let my lake freeze since it is in a snow biome now.

Long story short: Is there any way to change the local biome back into tundra?

Asked by Zommuter

Answer

Currently there is no way to do this as biome data is not stored in the chunks.

In Minecraft snapshot 12w07a (i think it was this one), Jeb added a new world format which saves the biome data with the chunks. Because this snapshot is so new and the Minecraft Coder's Pack isn't released for the snapshots, there probably won't be a mod to allow this until Minecraft 1.2 is released.

I will update this answer if a tool to do this is ever released.

Answered by ryansworld10

Tuesday, February 21, 2012

How do I give permissions for the nether to my users?

Question

I have been searching everywhere for just the permissions I need to give my users so they can build/break stuff in the nether. Right now whenever someone enters the nether he gets a message stating something like: all your privilege have been deactivated because you teleported to a new world. I am using permissions bukkit. Thanks in advance! Here is my config.yml file:

   users:
    user1:
        groups:
        - user
groups:
    default:
        permissions:
            permissions.build: true
    admin:
        permissions:
            permissions.*: true
        inheritance:
        - user
    user:
        permissions:
            permissions.build: true
            admincmd.tp.to: true
            simplechestlock.lock: true
            blockdoor.*: true
            blockdoor.player: true
            blockdoor.link: true
            blockdoor.player.*: true
            blockdoor.link.*: true
            admincmd.time.day: true
            admincmd.time.set: true
            catacombs.admin: true
            electricraft.build.*: true
            electricraft.destroy.*: true
            electricraft.damage.*: true
            electricraft.teleport.lift: true
            electricraft.bucket.*: true
        worlds:
            creative:
                coolplugin.item: true
        inheritance:
        - default
messages:
    build: '&cYou do not have permission to build here.'

edit: Here is the list of plugins. Not that much. AdminCmd BlockDoor Catacombs Electricraft PermissionsBukkit PluginMetrics SimpleChestLock

Asked by Iznogood

Answer

There is the sub-group "worlds:". This most likely governs what the group can do in said world. Try typing the name of the nether file (by default it is world_nether) in the format shown with "creative". Then add the node "permission.build: true" along with anything you would allow them to do in the nether.

Sorry if this does not work as I used a different permissions plugin in my limited server hosting days.

Answered by Jonny B

Can I limit the amount of mobs within a chunk?

Question

Is there a plugin to limit the number of mobs that occupy a chunk in minecraft?

I'm concerned about players breeding or afking a mob spawner and bringing the server down by over concentrating mobs.

Asked by Kort Pleco

Answer

There is also EntitySuppressor, but I don't know if it supports per-chunk settings.

Answered by Tobias Kienzler

Saturday, February 4, 2012

Can you warn people that their Towny rent is almost due?

Question

In Towny, is it possible to warn players a certain time before rent is due if they won't be able to afford rent?

I'm open to installing further plugins to enable this, but it's rather painful to my players to have to replace torches and reclaim areas if they don't remember to pay rent and they lose their plots/towns.

Answer

I learned later that this is a feature request, but isn't an actual feature yet. Star the request and help get the developer's attention. =)

http://code.google.com/a/eclipselabs.org/p/towny/issues/detail?id=257&colspec=ID%20Type%20Status%20Priority%20Label%20Milestone%20Owner%20Summary

Tuesday, January 10, 2012

Wilderness Regrowth with Towny

Question

Is it possible to use the Towny plugin for Bukkit for Minecraft to regrow "wilderness" areas?

I'm hoping to allow blocks that are commonly harvested, like sand, to regrow over time so the landscape isn't destroyed by people harvesting sand for glass (as an example). I know you can do this with creeper explosions, so if there is a way to do this for player destruction then please let me know.

Answer

It looks like this has already been suggested and shot down a month ago, so the short answer is no. Interesting feasibility analysis there in the response, though the issues seem possible to overcome...

The source is available though if you want to take a crack at it.

Minecraft “Cauldron” (Custom Item Creation) + iConomy

Question

I'm aware of bukkit plugins that allow you to "combine" items into new items, like the default settings in the linked plugin lets you combine a red flower and a white wool block into a red wool block.

I would like to integrate this into my server, but with increase scaling inefficiency. So you could change a stack of logs into a stack of signs with one click, but not the same number of signs that you would get making them individually. That is to balance the saved time.

However, I would like the option to allow people to use iConomy credits/cash/currency to offset that inefficiency if they choose. So then said stack of logs would turn into the exact amount of signs that it should make.

Does such a bukkit plugin exist?

Answer

I don't think there is a plugin that does this as of yet, remember that the RB for Bukkit 1.0.0 wasn't released that long ago (I as a plugin developer myself, usually wait until one of these comes out until I really start to develop anything)

If you want a plugin that does this - then head over to the Plugin Requests section on the Bukkit Forums. If you want your request to have a better chance of being noticed - then read the stickied posts.

Hope this helps.

Sunday, December 25, 2011

Why don't I have permission to use WorldEdit?

Question

I'm trying to install WorldEdit, and I've done the following:

  • Gotten the craftbukkit JAR,
  • run it, stopped it,
  • replaced world with my save from single,
  • run again, stopped again,
  • copied WorldEdit.jar into plugins,
  • tried //hpos1 and other WorldEdit commands.

I get the following error:

You don't have permission to do this

What causes this? (I'm on a Mac, if that's a factor)

Answer

Due to the nature of worldedit, worldedit requires you to specify permissions, either the build in, or by using a permissions plugin

Worldedit uses the WEPIF (WorldEdit Permissions Interoperability Framework) to handle permissions.

If you're not using a permissions plugin, the easiest way is using Flat file permissions which allows you to simply give yourself all permissions by editing two files in the root of your server (same location as bukkit itself):

perms_groups.txt

admins:*

perms_users.txt

sk89q:admins:*

(replace sk89q with your username)

There's a list of permissions, on the Worldedit Wiki which can help you if you want to further specify permissions

Minecraft WorldEdit “You dont have permissions to do this”

Question

Gotten the craftbukkit JAR,
run it, stopped it,
replaced world with my save from single,
run again, stop again,
copy WorldEdit.jar into plugins,
tried //hpos1 and other WorldEdit specifics, but:

You don't have permission to do this

Help? (im on a mac? does that change anything?)

Answer

Due to the nature of worldedit, worldedit requires you to specify permissions, either the build in, or by using a permissions plugin

Worldedit uses the WEPIF (WorldEdit Permissions Interoperability Framework) to handle permissions.

If you're not using a permissions plugin, the easiest way is using Flat file permissions which allows you to simply give yourself all permissions by editing two files in the root of your server (same location as bukkit itself):

perms_groups.txt

admins:*

perms_users.txt

sk89q:admins:*

(replace sk89q with your username)

There's a list of permissions, on the Worldedit Wiki which can help you if you want to further specify permissions

Wednesday, December 21, 2011

Why does my bed explode when I try to sleep on it in the Nether, and how do I disable it?

Question

After I read the changelog for Minecraft 1.6, I saw that one of the few items that were fixed was beds in the nether. However, when trying to sleep in one, it explodes. Is this purely intentional, and does this happen in SMP (can't confirm now)? If it does explode in SMP, can I disable it (the explosion) for beds only, in case some griefer does this?

EDIT: Since it happens in SMP, is there a mod to disable this? Even if the bed kills them (the griefers) they still can go into the portal and wreak havoc in it

Answer

It is intentional, does happen in SMP, and cannot be disabled on a vanilla server as far as I know. On a Bukkit server, the NoExplode anti-griefing plugin can disable any type of explosion, includings beds.

In the Nether, there basically is no time of day — bring a watch with you and see what happens. The beds only let you sleep in them when it's night time, and this lack of time apparently confuses them to the point of spontaneous explosion.

Sleeping in the Nether has never worked, but before Beta 1.6 the beds were neither sentient nor quite as explosive; you'd simply get the "you can only sleep at night" message. Of course, this isn't really appropriate for the Nether, since it is never night. Notch likely wanted to make it more obvious to players that beds don't work in the Nether at all. Why explosions? I'm not sure, but it certainly drives the point home, doesn't it? Possibly Evil Notch had a hand in this.

Monday, December 19, 2011

How can I bar outsiders from a town with the Towny mod?

Question

Using the Towny plugin for Minecraft, how does one prevent people who are not the town's residents from being able to enter the town?

Answer

I had a quick look over the documentation and I couldn't find away to do so. You could either request that as a feature here or you could use WorldGuard to make regions around the towns, Then set flags so only the people you specify (or groups) are allowed into the area.

If you need more help with the second option - PM me on the Bukkit Forums (shadrxninga).

Tuesday, December 13, 2011

Is there a world generator that can create a Minecraft world that is solid rock?

Question

Is there a world generator that can create a Minecraft world that's solid rock? Literally, with one layer of bedrock at the bottom and the other 127 layers stone?

I don't care if it generates ores or not since it will be hosted on my server with other normal worlds connecting to it, but it would be a HUGE pain to make a world like that with mcedit or other programs manually.

It would be a huge plus if there's a bukkit plugin that can do that too. =)

Answer

Quite the contrary, it seems really easy to do with MCEdit (I've just tried it).

  • Start MCEdit, create a new world. Put in a few numbers - how large a world do you want to have?
  • Once the world is generated, press ctrl + a. That selects the whole world.
  • Select the Fill tool. Pick stone and pres fill.
  • Similarly, fill the bottommost layer with bedrock. (set the selection height to 1.
  • Take care to place the spawn point wherever you like it.

Save, and you're ready to go.

Sunday, December 11, 2011

Solid Rock Minecraft World Generator

Question

Is there a world generator that can create a minecraft world that's solid rock? Literally, with one layer of bedrock at the bottom and the other 127 layers stone?

I don't care if it generates ores or not since it will be hosted on my server with other normal worlds connecting to it, but it would be a HUGE pain to make a world like that with mcedit or other programs manually.

It would be a huge plus if there's a bukkit plugin that can do that too. =)

Answer

Quite the contrary, it seems really easy to do with MCEdit (I've just tried it).

  • Start MCEdit, create a new world. Put in a few numbers - how large a world do you want to have?
  • Once the world is generated, press ctrl + a. That selects the whole world.
  • Select the Fill tool. Pick stone and pres fill.
  • Similarly, fill the bottommost layer with bedrock. (set the selection height to 1.
  • Take care to place the spawn point wherever you like it.

Save, and you're ready to go.

Friday, November 11, 2011

Random Stone Brick Replacement with Worldedit in Minecraft

Question

How does one randomly pattern mossy and cracked stone brick among regular smooth stone brick using worldedit? Is there a script for it or does the "vanilla" worldedit have the capabilities of doing that?

I'm trying to create some stronghold-esque ruins and regular smooth stone doesn't have the right atmosphere, but I don't have the time to insert cracked and mossy one by one.

Answer

You can do this using block probability patterns.

Most places you'd normally enter a single block type in WorldEdit, you can instead enter one of these which will give you a random distribution of blocks instead of just one kind. You can specify which blocks and how often they should show up.

As an example, if you were to select a zone and enter the following command you'd end up with something like the following screenshot:

//replace grass,dirt 50%cloth:red,50%cloth:white

Pattern distribution example

Note that you cannot specify a probability pattern for the blocks you are going to replace - only for what you will replace them with.

So to get dungeony walls...

Assuming you already have the stone brick walls laid out, you just want a brush that replaces some of the stone bricks with mossy or cracked stone bricks. The below commands will give you a brush with a radius of 5 that exclusively targets stone brick (all kinds, including mossy and cracked) and replaces it with 70% regular stone brick (stonebrick:0), 10% mossy stone brick (stonebrick:1) and 20% cracked stone brick (stonebrick:2).

//brush sphere 70%stonebrick:0,10%stonebrick:1,20%stonebrick:2 5

//mask stonebrick

Just tweak the probabilities until you get an effect you like. You might want to make certain areas more mossy, or certain areas less mossy and more cracked, so play with it a bit.

Saturday, October 29, 2011

Disable Minecraft Server Chunk Caching on Windows Server 2008

Question

I'm running a minecraft server on windows server 2008, and I'm going to run the world on a RAM disk. However, since a RAM disk is RAM heavy, I would like to minimize or disable block caching in RAM. The read/write speed to the disk will be virtually identical to a cache, and doesn't cause me double overhead.

Is it possible to do disable caching, and if so, how?

Answer

Minecraft isnt caching it in the traditional sense of the word, the data has to be stored in memory owned by minecraft at some point, in order for minecraft to do anything with the data. Even reading it!

Therefor it is not possible to totally disable 'caching'. Its also not possible for minecraft to just use the memory of the RAM disk directly, it has to go through the operating system first, which adds quite a bit of latency (nothing compared to HD access, but compared to RAM access).

So it's not useful to just disable caching, it might be possible to reduce the time until chunks that aren't near any players are unloaded with a plugin, but I have been unable to find one. One hackish way that might work is to reduce the maximum memory minecraft can use, that would force it to unload unused chunks faster.

Of course, the only wasted RAM is RAM that's not being used, so (on a dedicated machine) there is no harm in letting minecraft store something it can access very fast.

Friday, October 7, 2011

Bukkit plugin to control which mobs spawn?

Question

I'd like mobs to spawn on my server: just skeletons and zombies though. I don't want those meddling creepers putting pockmarks in our architecture.

Is there a (current and up-to-date) server-side Bukkit plugin to control which mobs can spawn, and which cannot?

Answer

WorldGuard (Download) appears to have the ability to prevent certain mobs from spawning
(Control+F -> "block-creature-spawn").

At the time of this writing, it appears to be up to date.