Minecolonies & Permission Fiddling
Hey everyone, minecolonies comes shipped with a protection system which is responsible for protecting the colony from griefers, explosions and other devastating things.
This has for quite a while protected our colonies on diverse servers and at the same time works as a claim system for the server owners.
Players can also use this system to add new players to their colony to enable them to break/place blocks or open containers etc.
Nevertheless, for quite a while we have an issue with the so-called "Fake-players".
Forge enables the programmers to code "fake players" which are certain entities which have a game-profile as a player but aren't actually one.
Following Forge this entity is supposed to store its placers UUID in order to guarantee that mods can check who placed it.
Unfortunately, most mods do not follow this specification which ended with the issue that minecolonies is unable to let those fake players engage in our colonies.
Players have been trying to get us to add a system which allows them to add the name as it would be a player to the colony which unlocks all those fake-players.
But, this would mean that anyone could place their fake-player to an unlocked colony to grief it, which made us deny this proposal.
That's one of the reasons I implemented the Permission log.
The permission log displays all actions which have been blocked by the colonies anti-griefing mechanism.
This is helpful to detect possible griefers.
Besides implementing the list we added a way to add the exact entity which tried to edit the colony.
This way the player can now add any fakePlayer by its unique id nicely to the colony without having to worry that someone uses a similar fake player to grief his colony
After clicking add it will be added to the colony and the player will be able to adjust its rank:
For the GUI I added the list to the GUI:
Which I then filled in the window class with the data.
The data gets stored in the town hall of the colony which means that at least a level 1 townhall is required to get the info.
Then, I added a PermissionEvent class which holds all the relevant data.
Now, the only thing left is to wait for an event to happen, create the permission event and add it to the town hall of the colony.
I hope you guys liked our new addition to minecolonies.
A lot of our server owners and players are extremely glad to get their automatic machines set up inside their colonies.
See you the next time
Posted on Utopian.io - Rewarding Open Source Contributors
Hey @raycoms I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Great one the sharing ,thanks the post @raycoms again a great news fort this beatiful platfom,back to back good news are coming.
I feel so happy after reading this.now I realize that we are really on a good parth.securing our future
great
thank you bro