[Mod] Ban Hammer [0.2.1] [ban_hammer]

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

[Mod] Ban Hammer [0.2.1] [ban_hammer]

by Evergreen » Fri Apr 11, 2014 20:26

Image

This mod adds a hammer which bans (kicks, or removes shout privilege depending on the mode) any player it is punched with. The user of it must have the "ban" privilege. To switch modes, hold the shift key and punch while the item is wielded. Works with 0.4.9 and above.


Depends: none

License:
Textures: CC BY-SA 4.0
Code: GPL v3

Downloads:
Browse the code: https://github.com/4Evergreen4/ban_hammer
.zip: https://github.com/4Evergreen4/ban_hammer/archive/master.zip
.tar.gz: https://github.com/4Evergreen4/ban_hammer/archive/master.tar.gz
Last edited by Evergreen on Fri Jun 19, 2015 22:00, edited 3 times in total.
Back from the dead!
 

User avatar
stu
Member
 
Posts: 907
Joined: Sat Feb 02, 2013 02:51
Location: United Kingdom
GitHub: stujones11

by stu » Fri Apr 11, 2014 20:42

Nicely done!

I don't run a public server myself but I am sure this will go down well with those that do.

One little thing, you might want to check that the user does have the server privilege to use the tool.
Maybe overkill but imagine the consequences should one of these get in the wrong hands.

Edit: Forget that, on closer inspection I see you do check for that, only not where I would expect it.
That should be fine though, my apologies,
Last edited by stu on Fri Apr 11, 2014 21:32, edited 1 time in total.
 

twoelk
Member
 
Posts: 1258
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk

by twoelk » Fri Apr 11, 2014 20:58

how about a milder "kick player" version?
 

User avatar
minermoder27
Member
 
Posts: 138
Joined: Wed Nov 20, 2013 23:24
Location: Unfortunately, not in Baikonur
GitHub: ZNixian
In-game: minermoder27

by minermoder27 » Sat Apr 12, 2014 04:13

twoelk wrote:how about a milder "kick player" version?

There is no mine test.kick player function, but you could kick them by sending a invalid formspec.
My best mods:
Buildtest
 

CWz
Member
 
Posts: 195
Joined: Tue Dec 24, 2013 17:01
Location: Banana Land
GitHub: chaoswormz
IRC: CWz
In-game: CWz

by CWz » Sat Apr 12, 2014 05:46

cool, someone did my suggestion.
I am CWz on the following servers: Bluelobster, turtletango, VanessaE's servers, linuxgaming, redcrab, Silvercrab, ChainLynx, lord of the test server. If you see CWz on server other then those then chances are it's a Fake. you can contact me on irc.freenode.net or by PM if you are not sure
 

User avatar
TenPlus1
Member
 
Posts: 2424
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

by TenPlus1 » Sat Apr 12, 2014 07:13

/kick <player> is a command in 0.4.9
 

User avatar
CraigyDavi
Member
 
Posts: 582
Joined: Sat Aug 10, 2013 13:08
Location: Hampshire, UK
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi

by CraigyDavi » Sat Apr 12, 2014 07:19

minermoder27 wrote:
twoelk wrote:how about a milder "kick player" version?

There is no mine test.kick player function, but you could kick them by sending a invalid formspec.


http://dev.minetest.net/minetest.kick_player
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Sat Apr 12, 2014 22:10

twoelk wrote:how about a milder "kick player" version?
I was planning on switching tools when click and shift is pressed. I might also make one which takes the "voice" privilege. I also might make a formspec appear which asks for the player's name on rightclick.
Back from the dead!
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Sat Apr 12, 2014 22:10

CWz wrote:cool, someone did my suggestion.
Oh, I didn't even know you suggested it. :P
Back from the dead!
 

User avatar
Krock
Developer
 
Posts: 4151
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

by Krock » Sun Apr 13, 2014 07:26

minermoder27 wrote:
twoelk wrote:how about a milder "kick player" version?

There is no mine test.kick player function, but you could kick them by sending a invalid formspec.

https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1583
wut?
Yes, it's a new thing in minetest 0.4.9
Last edited by Krock on Sun Apr 13, 2014 07:28, edited 1 time in total.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

CWz
Member
 
Posts: 195
Joined: Tue Dec 24, 2013 17:01
Location: Banana Land
GitHub: chaoswormz
IRC: CWz
In-game: CWz

by CWz » Sun Apr 13, 2014 14:50

Krock wrote:
minermoder27 wrote:
twoelk wrote:how about a milder "kick player" version?

There is no mine test.kick player function, but you could kick them by sending a invalid formspec.

https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1583
wut?
Yes, it's a new thing in minetest 0.4.9


0.4.9 stable doesn't have kick if I recall correctly it was added in dev.
I am CWz on the following servers: Bluelobster, turtletango, VanessaE's servers, linuxgaming, redcrab, Silvercrab, ChainLynx, lord of the test server. If you see CWz on server other then those then chances are it's a Fake. you can contact me on irc.freenode.net or by PM if you are not sure
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Fri Apr 18, 2014 23:02

Updates:
[spoiler=Version 0.2.0]
[/spoiler]

So essentially, I added a screwdriver like ability changer.
Back from the dead!
 

User avatar
crazyginger72
Member
 
Posts: 69
Joined: Wed Jan 01, 2014 07:57
Location: gone to lunch
GitHub: crazyginger72
IRC: cg72
In-game: crazyginger72

Re: [Mod] Ban Hammer [0.2.0] [ban_hammer]

by crazyginger72 » Sun Apr 20, 2014 16:58

Evergreen i always say i will use my "banhammer" now i really can! XD i love it <3
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Ban Hammer [0.2.0] [ban_hammer]

by Evergreen » Sun Apr 20, 2014 18:09

crazyginger72 wrote:Evergreen i always say i will use my "banhammer" now i really can! XD i love it <3

That's what I was going for. :P
 

User avatar
crazyginger72
Member
 
Posts: 69
Joined: Wed Jan 01, 2014 07:57
Location: gone to lunch
GitHub: crazyginger72
IRC: cg72
In-game: crazyginger72

Re: [Mod] Ban Hammer [0.2.0] [ban_hammer]

by crazyginger72 » Sun Apr 20, 2014 23:08

I love it, I made a few changes for my server version. I made new textures ( in the normal admin tool colours ) and added chat messages :)


http://cg72server.d-n-s.name/minetest/ban_hammer.zip
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Ban Hammer [0.2.0] [ban_hammer]

by Evergreen » Mon Apr 21, 2014 00:02

crazyginger72 wrote:I love it, I made a few changes for my server version. I made new textures ( in the normal admin tool colours ) and added chat messages :)


http://cg72server.d-n-s.name/minetest/ban_hammer.zip

I can add chat messages to the regular version if you want. (maybe make it optional via a settings.txt)
 

User avatar
crazyginger72
Member
 
Posts: 69
Joined: Wed Jan 01, 2014 07:57
Location: gone to lunch
GitHub: crazyginger72
IRC: cg72
In-game: crazyginger72

Re: [Mod] Ban Hammer [0.2.0] [ban_hammer]

by crazyginger72 » Mon Apr 21, 2014 00:50

its up to you :) and to be honest im not sure myself how to make a mod check and use a .conf or settinggs.txt for a mod lol!

But i do like all my admin stuff the same colour ( i think i have OCD )
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Ban Hammer [0.2.1] [ban_hammer]

by Evergreen » Mon Apr 21, 2014 01:42

Also, instead of just revoking the shout command, I might make it bring up a formspec asking which privileges to take.
Last edited by Evergreen on Tue Apr 29, 2014 15:30, edited 1 time in total.
 

User avatar
crazyginger72
Member
 
Posts: 69
Joined: Wed Jan 01, 2014 07:57
Location: gone to lunch
GitHub: crazyginger72
IRC: cg72
In-game: crazyginger72

Re: [Mod] Ban Hammer [0.2.1] [ban_hammer]

by crazyginger72 » Mon Apr 21, 2014 03:37

awesome!! and my fork is now updated with your new code :)

sorry OCD and the colours thing, it really erks me lol!
 

User avatar
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
Location: Czech republic, Bohumin
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

Re: [Mod] Ban Hammer [0.2.1] [ban_hammer]

by Pitriss » Tue Apr 29, 2014 12:25

Cool mod.. If this is craftable.. How about adding some fun feature.. When It will be used without ban priv, it could apply random effect (kick/ban/mute) on person who used it..
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Ban Hammer [0.2.1] [ban_hammer]

by Evergreen » Tue Apr 29, 2014 15:31

Pitriss wrote:Cool mod.. If this is craftable.. How about adding some fun feature.. When It will be used without ban priv, it could apply random effect (kick/ban/mute) on person who used it..

Interesting security idea! If someone dares use it, it will backfire. :3
 

CWz
Member
 
Posts: 195
Joined: Tue Dec 24, 2013 17:01
Location: Banana Land
GitHub: chaoswormz
IRC: CWz
In-game: CWz
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [Mod] Ban Hammer [0.2.1] [ban_hammer]

by Evergreen » Sun May 11, 2014 12:20

CWz wrote:for 4 mode it could act as a admin sword.

Meh, I really just intended it to be an admin tool. There are already "ultimate" admin tools out there. I just have been too lazy to add the stuff I have idea for.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot] and 7 guests