This is a awesome plugin and seems to work pretty much on API 5 up to the point of claiming land which i am unable to test since the golden axe throws and error when you try to right / left click to claim land. If this could be at least rectified then i am hoping that it continues to work as it has been so far. Creating and setting presidents disabling worlds all work fine on API 5 but the golden axe is the only issue so far that i am having.
[17:30:47] [Server thread/ERROR] [Sponge]: Could not pass InteractBlockEvent$Primary$MainHand$Impl to Plugin{id=com.arckenver.nations, name=Nations, version=0.10, description=A towny-like worldguard-like zone managment plugin., source=/home/minecraft/server/empyrean/mods/Nations-0.10.jar}
java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.Player.getItemInHand()Ljava/util/Optional;
at com.arckenver.nations.listener.GoldenAxeListener.onPlayerLeftClick(GoldenAxeListener.java:56) ~[GoldenAxeListener.class:0.10]
at org.spongepowered.common.event.listener.PrimaryListener_GoldenAxeListener_onPlayerLeftClick157.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.10.2-2092-5.0.0-BETA-1752]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:353) [SpongeModEventManager.class:1.10.2-2092-5.0.0-BETA-1752]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:336) [SpongeModEventManager.class:1.10.2-2092-5.0.0-BETA-1752]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:381) [SpongeModEventManager.class:1.10.2-2092-5.0.0-BETA-1752]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:366) [SpongeModEventManager.class:1.10.2-2092-5.0.0-BETA-1752]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:141) [SpongeImpl.class:1.10.2-2092-5.0.0-BETA-1752]
at net.minecraft.network.NetHandlerPlayServer.redirect$handleLeftBlockClick$0(NetHandlerPlayServer.java:590) [me.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:631) [me.class:?]
at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:40) [ja.class:?]
at net.minecraft.network.play.client.CPacketPlayerDigging.func_148833_a(SourceFile:10) [ja.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:122) [PacketUtil.class:1.10.2-2092-5.0.0-BETA-1752]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:39) [fl$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101]
at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
@Arckenver Thanks i just would love to have this available for my players when the server re opens but we will surely look at converting from polis to nations since nations does have a lot more features we are after. The only feature it lacks that i feel would be an improvement is the ability to claim the way you can with towny by claiming as you walk over the chunks you wish to claim.
Also a map feature like towny / factions would be helpful as a visual aid to nation admins to know where there borders are.
Thanks again for your work on this plugin it shows a lot of potential and glad its still being maintained and developed.
As youāve noticed, the original idea of Nations was precisely a sponge equivalent of towny except for land claiming (using per-block instead of per-chunk claim system). The thing is to make such a system work, Nations must group claims in sets of rectangles. So unfortunately, a āas-you-walkā claim feature would not be possibleā¦
For the map feature however, it could be possible but it would draw every block around you so not many of them. Not sure itās worth it, what do you guys think about that ?
@Arckenver the land claiming i thought would of been possible since it has been done by polis already and towny but at the end of the day its not a huge issue to live without but the map would be nice or at least some form of markers to mark the boundaries of the claimed area so to know exactly where your borders lie.
Looking forward to the update to api 5 ā¦I just curious is their any time frame of when the api 5 release may be coming i do know that you have said your busy with college but would be nice to know if this is something that is within the next couple of months or longer.
With the official announcement of the API 5 merge into master on october 15th, I can now officially announce Nationsā first official release and release for API 5 on october 16th !
I was testing out Nations, when all of a sudden I tried running the command /n leave as leader of the Nation. It said I couldnāt do it, so I proceeded to do /na delete town. Then it says that the town does not exist. I can go over my previously claimed areas and it constantly tells me my town is there even though no commands work except /n here. I can create another town and interact like usual, but that claimed area is still there without existing through /n list or /n info.
As you can see here I ran the command /n list and then /n here right after. I thought this problem might be fixed with /na unclaim, but that command didnāt exist. It would be great to have it in general if players were to claim areas you did not want them to claim.
EDIT
The error occurs when I have claimed land and I do /n leave. I get this message āError occurred while executing command: nullā. Then the claimed land stays there, havenāt tested server restart yet.
After restart, the town names re appeared. Though at this point I have personally created multiple towns at this point. I donāt know what information I could provide that could help, but itās not ground breaking information. I donāt know how this will effect info for other players when they are listed under multiple towns using this glitch.
@Hidden308
PermissionManager can works with every plugins. The home rule works with Nations only with the v1.2. Iām waiting the new version of Nations to add it to PermissionManager.
@Arckenver
Does Nations works with Sponge API 4.2.0? If yes, I will add the supports.