Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for playerfactions mod #37

Merged
merged 8 commits into from
Sep 21, 2019
Merged

Add support for playerfactions mod #37

merged 8 commits into from
Sep 21, 2019

Conversation

crabctrl
Copy link
Contributor

@crabctrl crabctrl commented Sep 9, 2019

Hello, I'm still pretty new to Minetest mod development in general so please correct me if I'm going about this wrong.

Frustrated by the lack of a way to manage allowing large groups of people to access certain areas, I've developed a factions mod which allows players to create and invite each other to factions. There's currently some room for improvement within the factions mod itself, but it is functional in its current state.

I've written some patches for the areas mod to allow players to control access to their areas using factions. It's an optional dependency of course, so existing users are completely unaffected. Specifically, it adds one command, /area_faction_open <ID>, which functions exactly the same as /area_open <ID> except that it opens/closes the area to faction members only.

I've done some testing on my own, and it seems to work fine. If somebody else would like to test it I'll be happy to help in any way I can. The actual factions mod can be found here.

Thanks for your time!

Alden Peeters added 2 commits September 9, 2019 15:55
Also added faction indicator to HUD
@crabctrl crabctrl changed the title Add support for factions mod Add support for playerfactions mod Sep 9, 2019
chatcommands.lua Outdated Show resolved Hide resolved
api.lua Outdated Show resolved Hide resolved
@crabctrl
Copy link
Contributor Author

Thanks for the review, the code has been updated accordingly

init.lua Outdated Show resolved Hide resolved
Renamed factions_avail to areas.factions_available
@crabctrl
Copy link
Contributor Author

I've updated the code yet again; thank you for your patience

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SmallJoker
Copy link
Member

SmallJoker commented Sep 14, 2019

Will merge in a few days to see whether any other change requests appear.

@crabctrl
Copy link
Contributor Author

It's been a cool three days now; time to merge?

hud.lua Outdated Show resolved Hide resolved
chatcommands.lua Outdated Show resolved Hide resolved
api.lua Show resolved Hide resolved
hud.lua Outdated Show resolved Hide resolved
hud.lua Outdated Show resolved Hide resolved
@SmallJoker SmallJoker merged commit aca830f into minetest-mods:master Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants