foxdenstudio / foxguard-sponge Goto Github PK
View Code? Open in Web Editor NEWA Minecraft world protection plugin for SpongeAPI
License: Other
A Minecraft world protection plugin for SpongeAPI
License: Other
Can you please add support for Sponge Api 5?
It would be great!
Thank you very much for your awesome work!
Player can still place chest after denying the root flag although there is a error message about lack of permission.
Destroying that chest or placing other block are still blocked as expected.
I am using FoxGuard-v0.15.0-188-SNAPSHOT and FoxCore-v0.5.0-54-SNAPSHOT.
https://gist.github.com/d4rkfly3r/bc54fada7442f5cb6cc8
The plugin should fail gracefully if the h2 file is corrupted. As it is now, the plugin gets disabled and will no longer work for that instance. Had to completely delete world before it fixed.
that protect leaves blocks (from my awesome wood) but infinitly generate drop from that blocks like if it decay allow.
i use your plugin on my server on 1.11 =)
thats funny what players can found on spawn free apples and leaves like in realistic wood, but that generate to many item entitys...
how possible stop it now? or that is bug what will fix future?
Then will be FoxGuard compiled without errors.
Hi, I am wondering how to add flags. Thanks!
When someone launches TNT into a protected area which they do not have permission to change, the block changes are rejected, but the items are still dropped.
put in that region as owner tnt block
and come as other player (not owner and not op) and activate tnt block from flint&steel
that lauch intinity tnt explosions in that tnt block.
and if near placed some redstone - that make dupe redstone from every tnt explosion near.
//but what i as OP and not as owner handler cant put blocks from creative or from console commands thats SUCH AWESOME!!!
CommandCreate.java line 155
"Worldr" : "R") + "egion created successfully"));
This might get trashed but I'm not sure of a better place to give you feedback.
I have enjoyed Worldguard for around 3 years and have grown accustom to its flags. Moving to sponge has been concerning me with the absence of WG but a friend told me about your plugin and I am extremely excited.
Having said that,
The flags for entrance, exit, welcome messages, leave messages, pvp (allow/deny) and firespread are all important to me. I know this is just one person's opinion and you hear tons of people voicing their opinions as a plugin creator. I just feel like the flags could be flushed out a lot more.
I know that filling them out is in your roadmap but I also see its on the bottom of the list and this concerns me.
If you do this right, WG has no place on Sponge. We will be all using FoxGuard. You already have an amazing start and I enjoyed your youtube video.
Keep up the work!!
1 case:
skeleton horses + skeletons from lighting horse:
that working like: 4 skeleton horses + 4 invisible passive skeletons who play there sounds if i stay near.
if i try kill that invisible entitys (skeletons) and all other near entitys from command
/kill @e[type=!player,r=2]
that make kill skeleton horse and error about skeletons text of error looks like:
entity 'bla-bla-bla' not found.
and that invisible undying entitys blocking transport like boats/minecarts on road.
pls fix that
//with love to your job :3
//when i start getting donate on my server i will donate you for your plugin!
https://gist.github.com/d4rkfly3r/19343e3db10514ce0490
This happened the first time that I enabled the plugin.... If it is OK, please make it fail gracefully.
Thanks Mike xD
--Joshua (d4rkfly3r)
This error seemed to occur when a new world was being created via EssentialCmds.
[13:21:44] [Server thread/INFO] [foxguard]: Constructing Regions for World: "PosterWorldV2"
[13:21:44] [Server thread/INFO] [STDERR]: [org.h2.jdbc.JdbcBatchUpdateException:printStackTrace:37]: org.h2.jdbc.JdbcBatchUpdateException: Table "LINKAGES" not found; SQL statement:
INSERT INTO LINKAGES(REGION, HANDLER) VALUES ('_global', '_global'); [42102-190]
[13:21:44] [Server thread/INFO] [STDERR]: [org.h2.jdbc.JdbcBatchUpdateException:printStackTrace:37]: at org.h2.jdbc.JdbcStatement.executeBatch(JdbcStatement.java:676)
[13:21:44] [Server thread/INFO] [STDERR]: [org.h2.jdbc.JdbcBatchUpdateException:printStackTrace:37]: at com.zaxxer.hikari.pool.ProxyStatement.executeBatch(ProxyStatement.java:128)
[13:21:44] [Server thread/INFO] [STDERR]: [org.h2.jdbc.JdbcBatchUpdateException:printStackTrace:37]: at com.zaxxer.hikari.pool.HikariProxyStatement.executeBatch(HikariProxyStatement.java)
[13:21:44] [Server thread/INFO] [STDERR]: [org.h2.jdbc.JdbcBatchUpdateException:printStackTrace:37]: at net.foxdenstudio.sponge.foxguard.plugin.FGStorageManager.updateLists(FGStorageManager.java:520)
This thing is horrendously outdated, and needs some serious rework.
Issues include, but are not limited to:
It just needs to be rewritten, flat out.
Hello ! The flag Block Attack have a little problem with the priority of handler :p
I set this perm handler for global worldregion :
https://gyazo.com/aa653af183c396eadd8bc6a14f1d0bba
I set this perm handler for "claim worldregion" :
https://gyazo.com/f65df5b849d20337c586843709ff7275
The user can place block but not attack
if i set break deny instead of block attack , its work a player can break in their claim.
But i need use blockattack ^^'
Any idea ?
Thanks !
Everything works , handlers , define regions , but Players still can break blocks.
Flags for Default are : change blocks :false
break blocks :false
And i cant use /fg wand error:.... No value present
I've been thinking about how to do this, and the best idea I can come up with is to use an elevation region from the bottom of the world to the top and set a handler that doesn't allow building. I was wondering if there's a way to register a handler to an entire world instead of just making a region that encompasses the entire world, because I thought it might be simpler and use less resources.
This was due to early confusion of its parameters.
when we type a command like this /foxguard modify handler Exolord_ set owners block true they are nothing happening
I was playing using v0.15.1, saved on foxguard, shut down the server and didn't play for several days. Before playing I updated to the new versions of FG and FC v0.16.1 and v0.6.2.. Now the regions do not exist in game. FG list regions is blank and none of the rules I made apply in game anymore... When I look in the world folder, in the foxguard folder; the regions and handlers are still there. They are NOT empty files either.. each is around the range of 470k in size.... they just don't seem to load.
Users will need the ability to limit region sizes, so a player can't just claim some 10k^2 region. There should be some permission-based limits so that players are limited to increasingly larger regions as they rank up.
Right now the /foxguard detail command displays the flags in one large pile.
This is due chiefly to HashMap behavior.
They should display according to hierarchy and with proper indentation.
If you mine a block on the edge of a region with a turtle, the block returns but the item goes into the turtles inventory.
on your tutorial video every block what u put from wand visually marked as white colored limpid block.
when i marking blocks from wand with any choosed color i never see that visually marked.
im using command /fg wand position white
how i can make that marked blocks visually effect?
same spongevanilla for 1.11
//im sorry for bad english
Here is my wish list for FoxGuard features, that might get implemented in-the-fullness-of-time:
All region of my server was delete i thinks it cause by that
[00:40:02] [Server thread/INFO] [com.zaxxer.hikari.HikariDataSource/]: HikariPool-0 - is starting.
[00:40:02] [Hikari connection adder (pool HikariPool-0)/DEBUG] [com.zaxxer.hikari.pool.HikariPool/]: HikariPool-0 - Cannot acquire connection from data source
org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-190]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[DbException.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.message.DbException.get(DbException.java:168) ~[DbException.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.db.MVTableEngine$Store.convertIllegalStateException(MVTableEngine.java:187) ~[MVTableEngine$Store.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:167) ~[MVTableEngine$Store.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.db.MVTableEngine.init(MVTableEngine.java:99) ~[MVTableEngine.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Database.getPageStore(Database.java:2450) ~[Database.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Database.open(Database.java:672) ~[Database.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Database.openDatabase(Database.java:269) ~[Database.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Database.<init>(Database.java:263) ~[Database.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Engine.openSession(Engine.java:65) ~[Engine.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Engine.openSession(Engine.java:175) ~[Engine.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Engine.createSessionAndValidate(Engine.java:153) ~[Engine.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Engine.createSession(Engine.java:136) ~[Engine.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.Engine.createSession(Engine.java:28) ~[Engine.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:349) ~[SessionRemote.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107) ~[JdbcConnection.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91) ~[JdbcConnection.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.Driver.connect(Driver.java:72) ~[Driver.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:95) ~[DriverDataSource.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:314) ~[PoolBase.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:171) ~[PoolBase.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:436) [HikariPool.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.pool.HikariPool.access$500(HikariPool.java:65) [HikariPool.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:567) [HikariPool$PoolEntryCreator.class:1.8-1577-3.0.0-BETA-1014]
at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:560) [HikariPool$PoolEntryCreator.class:1.8-1577-3.0.0-BETA-1014]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_66]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
Caused by: java.lang.IllegalStateException: The file is locked: nio:/home/Serveur_Bungee/PokePixel/principale/foxguard/regions/_global.mv.db [1.4.190/7]
at org.h2.mvstore.DataUtils.newIllegalStateException(DataUtils.java:773) ~[DataUtils.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.FileStore.open(FileStore.java:172) ~[FileStore.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.MVStore.<init>(MVStore.java:342) ~[MVStore.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2888) ~[MVStore$Builder.class:1.8-1577-3.0.0-BETA-1014]
at org.h2.mvstore.db.MVTableEngine$Store.open(MVTableEngine.java:154) ~[MVTableEngine$Store.class:1.8-1577-3.0.0-BETA-1014]
... 25 more
Hey u commented on my plugin message on fox here is the message:
Hey i was wondering if there is a plugin that replaces blocks? Its a bit like griefprevention but when a pkayer chops something like a tree or an ore the player will get the actual block, and the block will recover after it has been removed.
Thanx.
Right now when a command error happens it displays the syntax for the root command, which isn't always helpful.
Server always crashing on loading links so was wondering if you could help me. As far as I am aware the only thing I change between starting my server when it worked to when it crashed is that I added a second owner to my main protection handler.
This is the console output (dosn't show in latest.log) - https://i.gyazo.com/aadf390a8e49fb4170b7a0b9c50ad29b.png
This is the crash log - http://pastebin.com/quBN0CeL
Sponge - spongeforge-1.8.9-1808-4.1.0-BETA-1285
Forge - forge-1.8.9-11.15.1.1855-universal
Foxcore - FoxCore-0.8.0-103
Foxguard - FoxGuard-0.18.0-249
If there is any more info I can provide let me know.
Our beta sponge server crashed and best as I can tell, the foxguard db methods were involved.
i have listed all permission of your plugin
/fg handlers priority : foxguard.command.modify.objects.handlers.priority
/fg modify : foxguard.command.modify.objects.modify
/fg delete : foxguard.command.modify.objects.delete
/fg detail : foxguard.command.info.objects.detail
/fg list : foxguard.command.info.objects.list
/fg create : foxguard.command.modify.objects.create
/fg enable/disable : foxguard.command.modify.objects.enabledisable
/fg link : foxguard.command.modify.link.add
/fg rename : foxguard.command.modify.objects.rename
/fg save : foxguard.command.save
/fg remove : foxguard.command.modify.link.remove
/fg about : foxcore.command.info.about
/fg add : foxcore.command.state.add
/fg debug : foxcore.command.debug.debug
/fg flush : foxcore.command.state.flush
/fg position : foxcore.command.state.add.position
/fg state : foxcore.command.state.state
/fg subtract : foxcore.command.state.subtract
/fg test : foxcore.command.debug.test
/fg wand : foxcore.command.wand
it's all and when you thinks made the update for beta ?
There are 6 FoxCore files.
Wich do i need for my server ?
I've wanted an importing feature for a while. This allows you to pop a folder with some files into a folder in the server, and foxguard will scan for any metadata.foxdb
files, before using that data to load the region or handler, whatever it may be.
This could be good for when things break, and you want to re-import saved configs for handlers and such.
This is a roadmap of things that will be done, in a vague order.
More things can and will be added along the way.
As the title says, denying passive events seems to be buggy if not nonfunctional this version.
I'm specifically referring to ice forming - after setting a simple handler's passive status to 'deny' and linking it to _sglobal, ice still forms in cold biomes. Just a couple versions of this plugin ago this feature worked just fine.
I'm very anxious for this to be addressed, and thank you for your time.
~ WryWolfy
P.S.: I'm using version 0.18.0-249 of FoxGuard and FoxCore version 0.8.0-103-server
Hi @gravityfox ~
I contact u today, for report a bug or... something like that c: . We have a server Minecraft with a friend, a pixelmon server [With Pokemons, yay !] & actually when we try to create a region and only let players use the command /spawn [So we don't let them, place blocks & open chests for example.]. There's a matter, because players & OP-players can't do nothing except /spawn in this region. But normally, the OP one should be able to do all the commands they want & pass the guard, shouldn't them ? Can we use a command or something for give some access in this region to the admins ?
We use this version : FoxCore-0.8.1-108.jar
FoxGuard-0.18.0-249.jar
& I have two little more questions for u : - Do we need the mod client ?
- Do we need to put the server mod, on the server or players need to have it too ?
Thanks for ur answers ~
if you put a handler in your region that disallows placing or breaking blocks
Anyone who is not owner will not be able to operate anything that uses a block break or place.
additionally i have found that on the piston, even the owner can not operate it because 2 events in the retract sequence are triggered by the entity None.
The only way to let them retract is to set passive allow, which appears the area to be damaged
by things not the player (like creepers exploding)
In effect, players who are not owners of a region can not interact with many things in it
I have not gone through and tested all blocks, but it appears to affect anything that has moving parts
at server start
While testing the new update I realized that some onClick-TextActions miss a space here and there which results in invalid commands.
Edit: Removed falsely reported code locations... sorry for that :/
Hi, i managed to make the protections work, but the handler suddently as no effect after an hour more or less, like if the handler didnt have any permissions and every user could ignore them so the protection doesnt work..., it works again after rebooting the server but after an hour the same thing happens, i need help please, this is the only protection sponge plugin and i really need it :(
I'm using the most updated versión of the plugin, my server is in 1.8.9 using most updated sponge coremod.
/foxguard delete <region [--w:<world>] | handler> <name>
Right?
OK, I use:
/fg delete myregion -- ERROR
/fg delete myregion world -- ERROR
/fg delete myregion --w:world -- ERROR
/fg delete myregion myregion -- ERROR
/fg delete myregion [--w:] -- ERROR
ERRRRRRRRRRRRRRROR!!!!!!!!!!!!!!!!!!!!!!
............More and more.
OH MY GOD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Can you tell me how to delete a region??? This is so... I have nothing to say.
Will be possible add some API? I would like extend yours plugin.
Will be possible create some wiki page similar like this: http://wiki.sk89q.com/wiki/WorldGuard/Regions/API
For example i would like to create regions, modify members and using special wand when click to ground get info about region (if present). Also when know Location in the world, would like get into if there any regions and can build for example.
Thanks.
It's probably me doing something wrong, I can create a reigon and see it on the list, and details about the region. When I try creating a handler for the region I get Not a valid category! handler.
Are you able to bind a tool to your position settings? Like world edit does with the Wooden Axe.
Using
-Spongeforge Dev 848
-Forge 1577
I made a region with flag "root false"
My friend can break blocks with dynamite. Then i tested this plugin with IC2, when IC2 tnt or nuke explodes, no blocks will break, but blocks will be dropped as drop.
Sorry for bad english.
Currently running http://puu.sh/rsTBQ/10816a687c.png
and http://puu.sh/rsTCR/40600ebce4.png
People are able to ruin the stores itemframes. They spawn a pixelmon (5.0.0 Beta 9) and the item frames get destroyed.
How can I block them from throwing pokemon in a region.
Thanks
Well, I added your new version of FoxGuard to my test server(Thank god) and when I started the server up i get sent this error and crash
I then removed the mod and deleted all the configs and tried to start the server up again and it sent me same error and crashed. So I deleted my world folder, readded the mod and tried again. It worked after that. Is it the mod that caused it or something else?
I just noticed that the flag(s) "playerpass" do not deny you anything when set to deny.
No error messages or whatsoever: But if I had to, I would guess this is due to the recent changes to the teleportation API of Sponge.
Spongev.: spongevanilla-1.8.9-4.1.0-BETA-332.jar
FGv.: FoxGuard-0.18.0-249.jar
FGCv.: FoxCore-0.8.1-108
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.