[Mod] Land Rush [landrush]
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
[Mod] Land Rush [landrush]
[Mod] Land Rush [landrush]
Code license: GNU LGPL version 2
Image license: CC Attribution-ShareAlike 3.0
Plugin dependencies: none (bucket, default, and fire are supported, however), money2 for land sale
This is a fork of 0gb.us' landclaim mod http://forum.minetest.net/viewtopic.php?id=3679.
Imagine the entire map is divided into chunks. You place your land rush land claim block and it protects that chunk (then the land claim block disappears).
Chunk size is configurable, default is 16x16. There are three stages of vertical protection:
-30 thru 120
120 thru vertical map limit,
-200 thru -30.
This is a partial protection mod. This is intended for PvP type maps.
1) Your areas are fully protected if you are offline.
2) You are not protected if you are online, but you will receive chat messages when somebody starts to grief one of your protected areas. Anybody you have shared the area with will also be notified. The griefer also gets a chat message that they are griefing in case it's an accident. This way you can initiate a conversation with the griefer or go and fight them.
There are two modes for this Mod
1) You are required to claim areas you wish the build on. You cannot dig or build in unclaimed areas. The exception to this are ladders, you can place and dig ladders in unclaimed areas to get yourself out of a hole or something like that. With this mode you really have to give people a few land rush land claim blocks when they first log in. Edit init.lua and change requireClaim = true to use this mode.
2) Anybody can dig or build in unclaimed areas. Edit init.lua and change requireClaim = false to use this mode.
Auto Ban
This protection has an option to auto ban players who repeatedly try to dig in claimed areas. I'm tired of people using lag to break through protected walls to get into areas that are meant to be private then steal stuff out of nodes that can't be locked like furnaces and auto crafters. This should deter that. The default settings gives the player a chat and audio warning after a couple of digging attempts, and bans them after roughly 5 digging attempts. The level of the offense is based on a weighted formula, so if they dig in one protected area (A), then attempt to dig in another area (B) 200 nodes away the digging attempt in area (B) isn't judged as severe, a second digging attempt in area (B) would be judged more severely. By default all offenses are cleared after 24 hours. If you have ChatPlus installed you can enter an admin name and that admin will get a mail message through chat plus when a player has been auto banned. Auto ban has 4 stages, 3 temp bans (10 min, 20 min, 30 min bans) then a permanent ban.
Damage Player for attempting to dig in claimed areas
Players are dealt damage for attempting to dig in claimed areas.
HUD
Displays the land owner in the lower left of the screen. This updates every couple of seconds so if you are moving around a lot it may not be 100% accurate until you stand still for a little while.
Land Sale
Sell your unused land claims. Craft a sale block and place it anywhere inside the claim, right click the block to set the price. Other players punch the block to purchase the claim.
Craft Recipe
Land Claim Block
S = Stone
I = Steel Ingot
M = Mese / Mese Crystal
S I S
I M I
S I S
Land Sale Block
W = Default Wood Planks
X = nothing
X WW
X W X
WW X
Chat Commands
/showarea - Draws a box around the current chunk you are in
/landowner - shows the current owner of the chunk you are in
/unclaim - remove your claim on the current chunk you are in
/sharearea <name> - shares the area with <name>
/unsharearea <name> - removes <name> from the share
/mayedit - Shows who has permissions to edit the claim
Download: https://github.com/Bremaweb/landrush/archive/master.zip
Code license: GNU LGPL version 2
Image license: CC Attribution-ShareAlike 3.0
Plugin dependencies: none (bucket, default, and fire are supported, however), money2 for land sale
This is a fork of 0gb.us' landclaim mod http://forum.minetest.net/viewtopic.php?id=3679.
Imagine the entire map is divided into chunks. You place your land rush land claim block and it protects that chunk (then the land claim block disappears).
Chunk size is configurable, default is 16x16. There are three stages of vertical protection:
-30 thru 120
120 thru vertical map limit,
-200 thru -30.
This is a partial protection mod. This is intended for PvP type maps.
1) Your areas are fully protected if you are offline.
2) You are not protected if you are online, but you will receive chat messages when somebody starts to grief one of your protected areas. Anybody you have shared the area with will also be notified. The griefer also gets a chat message that they are griefing in case it's an accident. This way you can initiate a conversation with the griefer or go and fight them.
There are two modes for this Mod
1) You are required to claim areas you wish the build on. You cannot dig or build in unclaimed areas. The exception to this are ladders, you can place and dig ladders in unclaimed areas to get yourself out of a hole or something like that. With this mode you really have to give people a few land rush land claim blocks when they first log in. Edit init.lua and change requireClaim = true to use this mode.
2) Anybody can dig or build in unclaimed areas. Edit init.lua and change requireClaim = false to use this mode.
Auto Ban
This protection has an option to auto ban players who repeatedly try to dig in claimed areas. I'm tired of people using lag to break through protected walls to get into areas that are meant to be private then steal stuff out of nodes that can't be locked like furnaces and auto crafters. This should deter that. The default settings gives the player a chat and audio warning after a couple of digging attempts, and bans them after roughly 5 digging attempts. The level of the offense is based on a weighted formula, so if they dig in one protected area (A), then attempt to dig in another area (B) 200 nodes away the digging attempt in area (B) isn't judged as severe, a second digging attempt in area (B) would be judged more severely. By default all offenses are cleared after 24 hours. If you have ChatPlus installed you can enter an admin name and that admin will get a mail message through chat plus when a player has been auto banned. Auto ban has 4 stages, 3 temp bans (10 min, 20 min, 30 min bans) then a permanent ban.
Damage Player for attempting to dig in claimed areas
Players are dealt damage for attempting to dig in claimed areas.
HUD
Displays the land owner in the lower left of the screen. This updates every couple of seconds so if you are moving around a lot it may not be 100% accurate until you stand still for a little while.
Land Sale
Sell your unused land claims. Craft a sale block and place it anywhere inside the claim, right click the block to set the price. Other players punch the block to purchase the claim.
Craft Recipe
Land Claim Block
S = Stone
I = Steel Ingot
M = Mese / Mese Crystal
S I S
I M I
S I S
Land Sale Block
W = Default Wood Planks
X = nothing
X WW
X W X
WW X
Chat Commands
/showarea - Draws a box around the current chunk you are in
/landowner - shows the current owner of the chunk you are in
/unclaim - remove your claim on the current chunk you are in
/sharearea <name> - shares the area with <name>
/unsharearea <name> - removes <name> from the share
/mayedit - Shows who has permissions to edit the claim
Download: https://github.com/Bremaweb/landrush/archive/master.zip
Last edited by BrandonReese on Sat Jun 29, 2013 03:18, edited 1 time in total.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
Hello Brandon, I like your land rush mod, but it protects only if you are offline and if you are online it sends you a text message. How can I change this? It should protect always. How can I change it?
I have also an improvement suggestion. If a player grief a not protected house and protect it then, then nobody can repair the griefing. Can you please add a privilege like "landrush" and everyone who have the privilege "landrush" (only admins) can build in protected areas, and can execute the command /unclaim in all areas. Is that possible?
Regards
Cooper97
I have also an improvement suggestion. If a player grief a not protected house and protect it then, then nobody can repair the griefing. Can you please add a privilege like "landrush" and everyone who have the privilege "landrush" (only admins) can build in protected areas, and can execute the command /unclaim in all areas. Is that possible?
Regards
Cooper97
Last edited by Cooper97 on Tue May 28, 2013 07:07, edited 1 time in total.
Sorry for my bad english. (I am from germany.)
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
I actually updated it a couple of days ago and added an onlineProtection option. Update your mod from the latest github version which defaults to online protection being on. You can change online protection by changing
to
Code: Select all
local onlineProtection = true
Code: Select all
local onlineProtection = false
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
I have added the landrush privilege, it doesn't work with the unclaim or sharearea commands yet, I overlooked that. I'll update it soon to include those. With the landrush privilege you can build/dig anywhere, claimed or unclaimed.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
I describe the auto ban in first post. You get several warnings that you can be banned (chat messages and an audio warning) and chat messages telling you to use /landowner and /showarea to see if the player is allowed to dig in the area.Cooper97 wrote:Thanks but what means that? Auto ban for all players who dig inadvertently in a protected area?BrandonReese wrote:Added auto ban feature
It's optional and it's off by default, and you can make the ban strict or lenient. The settings are explained pretty well in the init.lua file in the comment next to each setting.
I'm thinking about putting something in the hud to warn them as well in case they miss the other warnings.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
As another form of warning players, five hearts of damage could be dealt by digging in protected areas.
It would be a good idea to have this mod explain itself to a player every time he/she enters a server that has it.
It would be a good idea to have this mod explain itself to a player every time he/she enters a server that has it.
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
I've been thinking about dealing damage to a player and/or destroying the tool they are using before banning them. I've also been working on a temp ban so the first time they are banned for 10 minutes, 20, 30, then permanent ban.Inocudom wrote:As another form of warning players, five hearts of damage could be dealt by digging in protected areas.
It would be a good idea to have this mod explain itself to a player every time he/she enters a server that has it.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
Inocudom, I LIKE that idea! A legit player will surely have food handy anyway, whilst a griefer trying to nuke someone's structure probably won't. Can we take this one step further and outright kick the player from the server automatically above some reasonable threshold?
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
There is an Auto Ban feature that has an adjustable threshold. I'm still working on the balance, and I have a temp ban written but not tested yet.VanessaE wrote:Inocudom, I LIKE that idea! A legit player will surely have food handy anyway, whilst a griefer trying to nuke someone's structure probably won't. Can we take this one step further and outright kick the player from the server automatically above some reasonable threshold?
BrandonReese wrote: The level of the offense is based on a weighted formula, so if they dig in one protected area (A), then attempt to dig in another area (B) 200 nodes away the digging attempt in area (B) isn't judged as severe, a second digging attempt in area (B) would be judged more severely. By default all offenses are cleared after 24 hours.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
If I can remember to, I'm gonna have to stea...er..*ahem* "borrow" some of the code for use in my fork of node_ownership :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
If we just happen to come up with the same solution with very similar code I won't think anything of itVanessaE wrote:If I can remember to, I'm gonna have to stea...er..*ahem* "borrow" some of the code for use in my fork of node_ownership :-)
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
-
- Member
- Posts: 31
- Joined: Wed May 01, 2013 07:55
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
I'm planning something like that, I haven't started on it yet, but I'm trying to figure out how to do that. It will be a separate script that would need to be ran separate from minetestmapper.arsdragonfly wrote:very nice mod.I wish it could work with minetestmapper, and chunks owned by different players will be tinted with different colors :-)
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
Added damage to player when digging in claimed areas
Added 3 temp bans before the permanent ban ( 10 min, 20 min, 30 min ).
Added a hud item in the lower left of the screen to display the land owner for the claim you are standing in. The hud item updates every second so if you are running it may not be 100% accurate until you stand still for a little bit (I may slow this down to 2 or 3 seconds if 1 second puts too much of a load on the server)
Added 3 temp bans before the permanent ban ( 10 min, 20 min, 30 min ).
Added a hud item in the lower left of the screen to display the land owner for the claim you are standing in. The hud item updates every second so if you are running it may not be 100% accurate until you stand still for a little bit (I may slow this down to 2 or 3 seconds if 1 second puts too much of a load on the server)
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
You could also add a low humming noise to give protected areas an ambient sound. Below is an existing mod that should help with doing that.
http://forum.minetest.net/viewtopic.php?id=6295
http://forum.minetest.net/viewtopic.php?id=6295
[BitChute: https://www.bitchute.com/channel/fCcBQxrYQjNX/] [Rumble: https://rumble.com/user/HPoorHMagentaHChildH]
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
I think that would just end up getting annoying because there are large expenses of land that are claimed so you would hear the humming a lot.Inocudom wrote:You could also add a low humming noise to give protected areas an ambient sound. Below is an existing mod that should help with doing that.
http://forum.minetest.net/viewtopic.php?id=6295
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
Updated, added the ability to sell claims, see first post for details.
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
Changed sale block recipe so it wouldn't conflict with the wood shield recipe
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
Who is online
Users browsing this forum: No registered users and 22 guests