[API 6.x/7.x] FoxGuard - The flexible world protection solution

Though, it’s not as if this is the only world with it. Other worlds seem to be completely fine. If there is a different way maybe I can guard I could try that and see if restart breaks that, but I really don’t know.

FoxGuard attempts to save worlds in the world folder, but SpongeAPI doesn’t appear to offer a way of finding the world folder…

Though, it saves the region, just the handlers disappear when I check spawn. I might try creating a new world and just pasting spawn there deleting the old one and seeing if that would work. If you can agree with me trying that.

Err… I think there were bugs that have since been fixed.

Wait for me to push out a new version and we’ll work from there.

1 Like

I don’t know why PJW would be causing problems. Sponge handles the worlds internally for the most part. PJW simple allows creating and altering world settings. Once the worlds are loaded and settings saved Sponge does the rest. No voodoo magic. I can’t rule anything out though. I’ve never used FoxGuard so I haven’t a clue how “handlers” work. Most problems with PJW lie with imported bukkit worlds. There is some mild hackery there but most has been phased out as the API has matured. I will have to play around with FoxGuard before I give anymore insight.

wait are the handlers disappearing? or just the links.

It might just be you’re not saving the configuration.

Try running /fg save after relinking to see if that solves it.

because of the way foxguard works, not everything will autosave. That command forces everything to be saved.

Right I wanted to post an update. We were doing manual restarts and those seem to have no effects whatsoever on the link for spawn. I will apologize in advance I guess the crashes might of roll backed possibly or created issues with the link. Whether this was an extremely isolated case I don’t know. Thanks for replying extremely fast to me though.

edit
The links were severed, but the handlers still existed.

yeah i’m going to say that you just didn’t save your configuration.

The server is SUPPOSED to do a save before shutting down, but force shutting down doesn’t trigger that.

to be on the safe side just run /fg save after you set everything up.

when I write the command

/fg modify handler spawnhandler set default fluids false

it tells me that it’s not a valid flag, though it’s written in your wiki of flags. I ended up using root but I want to know if I wrote it wrong or something.

i think fluids got removed…

I might add them back again though…

1 Like

how do I remove root from the settings now O.o I broke a lot of stuff lol

edit

ignore it i set it to passthrough it works

you can remove a flag by using the keyword clear.

Also fluids are blocks, so right now fluids are covered by the block flags

Before you release your latest version, would it be possible to add fall damage as a flag?

Potentially. I’m sorta adding more flags as I go. I’m trying to be careful with the flags as I don’t want to make too many changes too often. We’ll see though.

ok following…
I’m running a pixelmon server, made a startertown with a pokemon center and equipment.

I protected this town making a region “startertown” with the handler “village”.
Handler “village” has the default permission “Blocks: False”
People shouldn’t be allowed to break/spawn blocks, but use the equipment like the PC or trader.
Thing is, they can’t use that as it wouldn’t allow them. Thats not what I want.

So do I have to add a default permission with Use: True I’m guessing?
how would I be able to add it afterwards??

I tried:
/fg modify handler village set default Use true

it said “not a valid flag”

Do not set blocks to false if you want users to use healers/pcs. you need to set block break, place and modify to false and this should fix your proble.

blockchange covers breaking, placing, and modifying blocks.

It might be useful.

Is it possible for players to claim? If so what is the easiest way for them? Is it just /foxguard position x2 create region handler and link?

Our foxguard for some reason recently started deleting regions again, and not staying updated. We added the ‘Keys’ plugin yesterday, and only started getting the issues last night, where as we hadnt had these issues for weeks (since it was a known issue.) Do these plugins conflict do you know?

Do you have any logs or error reports?