UniverseGuard - A WorldGuard Solution for Sponge

Hi,
i have a little problem:

spongeforge-1.12.2-2529-7.0.0-BETA-2732

[Server thread/ERROR] [Sponge]: Could not pass GameInitializationEvent$Impl to Plugin{id=universeguard, name=Universe Guard, version=1.0, description=A World Guard solution for Sponge, authors=[Minehendrix], source=mods/UniverseGuard.jar}
java.lang.NoClassDefFoundError: org/spongepowered/api/event/cause/entity/spawn/EntitySpawnCause
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_131]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_131]
at java.lang.Class.privateGetPublicMethods(Class.java:2902) ~[?:1.8.0_131]
at java.lang.Class.getMethods(Class.java:1615) ~[?:1.8.0_131]
at org.spongepowered.common.event.SpongeEventManager.registerListener(SpongeEventManager.java:225) ~[SpongeEventManager.class:1.12.2-7.0.0-BETA-352]
at org.spongepowered.common.event.SpongeEventManager.registerListeners(SpongeEventManager.java:287) ~[SpongeEventManager.class:1.12.2-7.0.0-BETA-352]
at com.universeguard.UniverseGuard.onInit(UniverseGuard.java:264) ~[UniverseGuard.class:?]
at org.spongepowered.common.event.listener.GameInitializationEventListener_UniverseGuard_onInit44.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.12.2-7.0.0-BETA-352]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:371) [SpongeEventManager.class:1.12.2-7.0.0-BETA-352]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:388) [SpongeEventManager.class:1.12.2-7.0.0-BETA-352]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:392) [SpongeEventManager.class:1.12.2-7.0.0-BETA-352]
at org.spongepowered.common.SpongeImpl.postState(SpongeImpl.java:204) [SpongeImpl.class:1.12.2-7.0.0-BETA-352]
at org.spongepowered.server.SpongeVanilla.initialize(SpongeVanilla.java:150) [SpongeVanilla.class:1.12.2-7.0.0-BETA-352]
at net.minecraft.server.dedicated.DedicatedServer.handler$onServerInitialize$zoo000(SourceFile:1243) [nz.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(SourceFile:191) [nz.class:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:434) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.ClassNotFoundException: org.spongepowered.api.event.cause.entity.spawn.EntitySpawnCause
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_131]
… 18 more
Caused by: java.lang.NullPointerException
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_131]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_131]
… 18 more

thanks for help

It looks like is missing some class from Sponge :confused: Could be a compatibility issue with 1.12.2 (unfortunately i haven’t tested it yet in this version). Try to rollback to 1.12 and let me know if this error persists :confused:

Hi, sorry form my late answer (really super busy with the work in this period :frowning: ). There could be 2 problems: 1. a compatibility issue with the 1.12.2 (very likely since it’s the second same error i see today)
2. an incompatibility with sponge and forge. As far as i know the sponge version number should be the same as the forge version number, so in this case should be both 2491 or 2705 (or 2503, i don’t remember wich one is the one to consider).
Try to rollback to MC 1.12 and let me know if this error persists, since as i said it is very likely a compatibility error with MC 1.12.2

Hi, this is my conf, but mobs and animals still respawn in this area

{
“spawn”: {
“pos1”: {
“x”: -1,
“y”: 59,
“z”: 47
},
“pos2”: {
“x”: -200,
“y”: 73,
“z”: -160
},
“dimension”: “minecraft:overworld”,
“world”: “world”,
“priority”: 0,
“gamemode”: “minecraft:not_set”,
“teleport”: {
“x”: -1,
“y”: 59,
“z”: 47
},
“spawn”: {
“x”: -1,
“y”: 59,
“z”: 47
},
“flags”: {
“mobs”: false,
“waterflow”: false,
“sendchat”: true,
“use”: false,
“invincible”: false,
“chests”: false,
“drown”: true,
“otherexplosionsdamage”: false,
“sleep”: false,
“lavaflow”: false,
“cactusdamage”: true,
“falldamage”: true,
“walldamage”: true,
“vehicledestroy”: false,
“animals”: false,
“potionsplash”: true,
“animalspvp”: true,
“enderchests”: true,
“mobpvp”: true,
“otherexplosions”: false,
“firespread”: false,
“canspawn”: true,
“enderdragonblockdamage”: false,
“lighter”: false,
“pvp”: false,
“leafdecay”: true,
“cantp”: true,
“tntdamage”: false,
“endermangrief”: false,
“hunger”: true,
“enderpearl”: true,
“itemdrop”: true,
“vehicleplace”: false,
“build”: false,
“creeperexplosions”: false,
“expdrop”: true,
“mobdamage”: false,
“tnt”: false,
“firedamage”: true
},
“owners”: [],
“commands”: []
}
}

Will look into this problem as soon as possible. By the way stay tuned since a completely new version is in development :wink:

1 Like

Good news everyone! The new version of Universe Guard has been released! It includes new features and backward compatibility with old regions. All details can be found here! :smiley:

Since the new version is, at the end of the day, a new plugin, this version will no longer be supported. If you want to use Universe Guard, please use the newest version as it’s the version that will be developed from now on :slight_smile:

1 Like

I’m using UniverseGuard 2.2 with spongeforge 1.12.2-2555-7.0.0-BETA-2797 and It won’t let me have the region selector, in the console the following error is appearing constantly.

[10:53:16] [Server thread/ERROR] [Sponge]: Error occurred while executing command ‘region’ for source EntityPlayerMP[‘Kreezxil’/801, l=‘world’, x=36.35, y=63.88, z=232.00]: org/spongepowered/api/data/meta/ItemEnchantment
java.lang.NoClassDefFoundError: org/spongepowered/api/data/meta/ItemEnchantment
at com.universeguard.utils.InventoryUtils.getSelector(InventoryUtils.java:37) ~[InventoryUtils.class:?]
at com.universeguard.command.RegionExecutor.execute(RegionExecutor.java:35) ~[RegionExecutor.class:?]
at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:247) ~[ChildCommandElementExecutor.class:1.12.2-2555-7.0.0-BETA-2797]
at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:383) ~[CommandSpec.class:1.12.2-2555-7.0.0-BETA-2797]
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:342) ~[SimpleDispatcher.class:1.12.2-2555-7.0.0-BETA-2797]
at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:322) [SpongeCommandManager.class:1.12.2-2555-7.0.0-BETA-2797]
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) [dh.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:958) [pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:937) [pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [la.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:149) [PacketUtil.class:1.12.2-2555-7.0.0-BETA-2797]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjp000(SourceFile:539) [hv$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_151]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_151]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:274) [SpongeImplHooks.class:1.12.2-2555-7.0.0-BETA-2797]
at net.minecraft.server.MinecraftServer.redirect$onRun$zif000(MinecraftServer.java:4007) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:721) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
Caused by: java.lang.ClassNotFoundException: org.spongepowered.api.data.meta.ItemEnchantment
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_151]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_151]
… 24 more
Caused by: java.lang.NullPointerException

Thank you for using my plugin :slight_smile: I know about this issue and the problem is that 1.12.2 uses API7, while the plugin uses API6. An API7 version is in development and will be released shortly after the official release of Sponge API7 (wich will launch at the end of this month), so stay tuned for updates :wink:

How do I disable all mobs spawning within the region? I do not have the time to specify every single mob in the modpack I am running.

Disabling all mobs with one command is a feature that will come in the next release, wich will be today! So stay tuned on the UniverseGuard2 thread to know when it’s released :wink:

is there any API 7 ver for 1.12.2???

he is still working on it

I’m working on it. Unfortunately is not easy as i thought, since some events has been changed significantly, so they have to be rewrite (and this is time-consuming) :confused:

1 Like

then seek help if you can not do it alone! its a shame that there is no right worldguard alternative for sponge…

1 Like

Hii, sorry my english, i’m telling german.
I’m have 2 Problems:
Ingame Error-> /rg flag chests true -> Error Subflag. What it’s a Subflag?

Problem Global-Config - Server stay down. I’m edit the global config in the path
~/config/universeguard/globals/world.json
the flag chests to true, but after serverstart stay chests to false and players don’t have access to chests in the world.

This universegurad version is very old, pls use the new one Universe Guard 2: an easy to use world protection plugin

Edit:
If you’re using the new version and still have this problem than is the reason simple, the plugin does now cache all the information, to apply the changes you made manually form the config file do /rg reload

Oh, sorry. I’m use the UniverseGuard2 and now wrote in the right section for the plugin. :slight_smile:

Do you have plans to introduce a greeting and farewell flag like world guard has?

Those flags will be in the next release coming later this week in the new version of the plugin. You can read more about it here :wink:
https://forums.spongepowered.org/t/universe-guard-2-an-easy-to-use-world-protection-plugin/

Thanks for your quick response Jimi, Will the updated version be ForgeSponge 1.10 compatible?