axle2005 / clearmob Goto Github PK
View Code? Open in Web Editor NEWA Sponge Entity Clearing Plugin for Vanilla and Modded minecraft
License: GNU General Public License v3.0
A Sponge Entity Clearing Plugin for Vanilla and Modded minecraft
License: GNU General Public License v3.0
Not really sure what is going on, but i sometimes get this error in the console
https://pastebin.com/ndGnDh7h
Hai.
I was wondering if it was possible to have an option between whitelist and blacklist. How it works now is you remove the items specified in the list. But what I'd rather want is for items in that list to stay and all the other items to be removed. Otherwise I would have to make a weird huge list of items I want to keep when it would be much easier to just whitelist the one I would like to stay.
Thank you
Trying to run the dump tileentity command is causing a null pointer exception, I've also tried "/clearmob dump all" which prints the entities but gets a null pointer exception when it gets to the tile entities.
Error in console:
https://gist.github.com/Dylanavo/67f83389e0a2fb5a869c9243a8aedfe8
Our config:
https://gist.github.com/Dylanavo/c34b345ad5cffa86a79ad08debe39228
Minecraft: 1.10.2
SpongeForge: 1.10.2-2281-5.2.0-BETA-2626
Minecraft Forge: 12.18.3.2422
I want it to remove all ground items except those on the list. For now it works inverted, it removes only those which are on the list. I have a modded sdrver with over 2500 items so I just can't add everything to the list.
Also, none of the commands are working and the startup error is still there.
ClearMob version: 2.0.1
SpongeForge version: 2586-7.1.0
Forge version: 14.23.1.2586
Minecraft version: 1.12.2
ClearMob causes a single crash message when server is starting. This isn't crashing the whole server but I think that this isn't a normal behavior.
ClearMob version: 2.0.1
SpongeForge version: 2555-7.0.0-BETA-2764
Forge version: 14.23.1.2561
Minecraft version: 1.12.2
I uploaded the full crash message here.
[01:16:04] [pool-2-thread-15/ERROR] [Sponge]: The Scheduler tried to run the task clearmob-A-1375 owned by Plugin{id=clearmob, name=ClearMob, version=1.12.2-3.0.0, description=An Entity Cleanup Plugin. , source=/root/server/./mods/plugins/ClearMob-1.12.2-3.0.0.jar}, but an error occured.
java.lang.IllegalStateException: CauseStackManager called from off main thread (current='Thread{class=class java.lang.Thread, name=pool-2-thread-15, priority=5, group=net.minecraftforge.fml.common.thread.SidedThreadGroup[name=SERVER,maxpri=10]}', expected='Thread{class=class java.lang.Thread, name=Server thread, priority=5, group=net.minecraftforge.fml.common.thread.SidedThreadGroup[name=SERVER,maxpri=10]}')!
at org.spongepowered.common.event.SpongeCauseStackManager.enforceMainThread(SpongeCauseStackManager.java:121) ~[SpongeCauseStackManager.class:1.12.2-2838-7.1.9]
at org.spongepowered.common.event.SpongeCauseStackManager.getCurrentCause(SpongeCauseStackManager.java:136) ~[SpongeCauseStackManager.class:1.12.2-2838-7.1.9]
at net.minecraft.entity.Entity.handler$zee000$impl$createDestructionEventOnDeath(Entity.java:7469) ~[vg.class:?]
at net.minecraft.entity.Entity.func_70106_y(Entity.java:317) ~[vg.class:?]
at net.minecraft.entity.Entity.remove(Entity.java:4851) ~[vg.class:?]
at io.github.axle2005.clearmob.clearers.ClearEntity.run(ClearEntity.java:73) ~[ClearEntity.class:?]
at io.github.axle2005.clearmob.ClearMob.lambda$reload$1(ClearMob.java:138) ~[ClearMob.class:?]
at org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:139) ~[Task$Builder.class:1.12.2-2838-7.1.9]
at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:197) ~[SchedulerBase.class:1.12.2-2838-7.1.9]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_211]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_211]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_211]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_211]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
spongeforge-1.12.2-2838-7.1.9
Great Plugin, we love it.
One request, could it be possible to add a config option for a countdown timer (or 5 messages in 1 sec delay) to let players know when the clear is going to happen.
Like:
Clearing items in 5 secs
Clearing items in 4 secs
...
Clearing items in 1 sec
Thanks.
Hiya Axel, thanks for updating recently to fix the clear items issues, very much appreciated.
I was wondering if you would be able to update the documentation in the wiki/ore and/or add commenting to the config options?
When I was trying to set this up there was some confusion about what had changed and what the config options did exactly.
For example, the item blacklist, does that clear items only in the list or does that clear everything but the listed items?
Same goes for the entity whitelist.
The mob limiter, is that per world, per server, per chunk?
What are the upto date list of commands available?
Are there permissions for these commands?
Was working fine when first installed. Then stopped working. Not displaying the msgs of "clearing in 60 secs" or the "entities cleared". Even after server restart.
When manually running the command /clearmob run entity
it doesn't work and gives an error in console. Error here.
Using:
ClearMob-1.12.2-2.2.0
spongeforge-1.12.2-2825-7.1.6-RC3693
forge-1.12.2-14.23.5.2836-universal
On Minecolonies Official Server. Modpack info here if needed.
Thanks.
I'm fighting with this plugin right now as it is removing Steve's Carts despit me adding the only :ModularCart item to the blacklist.
Need this command to work to find out why it is not working properly. However it doesn't do anything. No error, no output.
[16:03:45] [pool-3-thread-22/ERROR] [Sponge]: The Scheduler tried to run the task clearmob-A-313 owned by Plugin{id=clearmob, name=ClearMob, version=1.12.2-2.2.3, description=An Entity Cleanup Plugin. , source=./mods/ClearMob-1.12.2-2.2.3.jar}, but an error occured.
java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_222]
at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_222]
at net.minecraft.world.World.func_175644_a(World.java:3040) ~[amu.class:?]
at net.minecraft.world.World.getEntities(World.java:4372) ~[amu.class:?]
at org.spongepowered.api.world.extent.EntityUniverse.getNearbyEntities(EntityUniverse.java:106) ~[EntityUniverse.class:1.12.2-2838-7.1.7-RC3948]
at org.spongepowered.api.entity.Entity.getNearbyEntities(Entity.java:494) ~[Entity.class:1.12.2-2838-7.1.7-RC3948]
at io.github.axle2005.clearmob.clearers.ClearAnimals.run(ClearAnimals.java:37) ~[ClearAnimals.class:?]
at io.github.axle2005.clearmob.clearers.ClearEntity.run(ClearEntity.java:79) ~[ClearEntity.class:?]
at io.github.axle2005.clearmob.clearers.ClearMain.run(ClearMain.java:24) ~[ClearMain.class:?]
at io.github.axle2005.clearmob.ClearMob.lambda$reload$1(ClearMob.java:104) ~[ClearMob.class:?]
at org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:139) ~[Task$Builder.class:1.12.2-2838-7.1.7-RC3948]
at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:197) ~[SchedulerBase.class:1.12.2-2838-7.1.7-RC3948]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_222]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_222]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
Hi, I suggest adding a setting to prevent the removal of entities with a tag.
Also, I have a question, how to prevent the removal of item frames and armor stands in the config?
^^ thats all
The cleared items announcement works but the warning one does not.
Version 1.3.2
spongeforge-1.10.2-2254-5.2.0-BETA-2264
CrashMode=false
Interval=300
KillAllMonsters=false
KillAnimalGroups=false
KillDrops=false
Lists {
EntityList=[
"minecraft:zombie",
"minecraft:witch",
"minecraft:skeleton",
"minecraft:creeper",
"minecraft:arrow",
"minecraft:redstone"
]
TileEntityList=[
]
}
MobLimiter {
Enabled=false
Limit=500
}
PassiveMode=true
}
Warning {
Enabled=true
Messages {
Cleared="[ClearMob] Endermen have removed mundane ground items"
Warning="[ClearMob] Endermen removing mundane ground items in 1 minute"
}
}
Self explanatory.
Some mods do not register when using /clearmob dump. Would be useful to find out the exact ID used by clearmob to blacklist/whitelist entities.
Does not work Warning Message although` the conception is true
Version (1.12.2-2.2.3)
[16:16:27] [pool-3-thread-3/INFO] [clearmob]: 0 Entity were removed [16:16:27] [pool-3-thread-3/INFO] [clearmob]: 0 Tile Entity were removed [16:16:27] [pool-3-thread-3/INFO] [minecraft/DedicatedServer]: [ClearMob] Entities have been cleared [16:17:27] [pool-3-thread-3/INFO] [clearmob]: 0 Entity were removed [16:17:27] [pool-3-thread-3/INFO] [clearmob]: 0 Tile Entity were removed [16:17:27] [pool-3-thread-3/INFO] [minecraft/DedicatedServer]: [ClearMob] Entities have been cleared
For example, at EntityLimiter.java
line 62, if you call setCancelled(true)
, then you can call return
immediately, there is nonsense in continuing the iteration.
I see in the wiki there should be a way to set the lists to black or whitelisting though I am not seeing anything in the actual config.
Seems every time the server restarts, my tamed mobs from mo creatures are getting culled....
Anyway to fix this ?
Reference from Sponge Forums:
https://forums.spongepowered.org/t/clearmob-entity-tileentity-removal-5-0-0-vanilla-modded/15221/29?u=axle2005
StackTrace: http://pastebin.com/napyJfxf
Sponge Version: spongeforge-1.10.2-API6.0.0-BETA-1873
Config Used: http://www.mediafire.com/file/jfl2s1p2393qjro/ClearMob.conf
{
"mobLimiter": [
{
"limit": 300,
"enabled": true
}
],
"options": [
{
"killAllMonsters": true,
"killAllDrops": true,
"listItemEntitys": [
"minecraft:redstone",
"minecraft:diamond"
],
"killAnimalGrocleups": false,
"listEntitys": [
"minecraft:zombie",
"minecraft:witch",
"minecraft:skeleton",
"minecraft:creeper",
"minecraft:arrow"
],
"listTileEntitys": [
"PlaceHolder"
]
}
],
"warning": [
{
"message": "[FluxxClear] Clearing Entities in 1 minute",
"enabled": true
}
],
"passive": [
{
"interval": 60,
"message": "&5[FluxxClear] Entities have been cleared",
"enabled": true
}
]
}
Thanks for your contribute! The plugin is what I'm looking for, which helps a lot. Whether can I reprint the plugin to another forum that is the most famous in China with all copyright information? Waiting for your reply :)
Like the title says, everytime when ClearMob tries to clean the server this is printed to the console.
ClearMob version: 2.0.1
SpongeForge version: 2586-7.1.0
Forge version: 14.23.1.2586
Minecraft version: 1.12.2
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.