[Mod] Player Ranks [0.2.0] [rank]

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

[Mod] Player Ranks [0.2.0] [rank]

by bigfoot » Thu Oct 27, 2016 21:37

Hello! This mod adds a rank system to minetest!

I wrote this in 0.4.14 and it is suggested you use that version.

Bugs
To report a bug, you may use Github or post it here.

Suggestions
Suggestions are welcome. If you have a suggestion, post it on Github or here.

+ Features

+ Planned Features

+ Screenshots


License
The code: LGPL v2.1+

Mod Dependencies
  • default

Downloads
Download
or
Browse the code on github

+ Old Downloads

+ Changelog


Image Image Image
Attachments
screenshot_20161014_200748.png
My sister and I having lunch
(247.66 KiB) Downloaded 1 time
Last edited by bigfoot on Sun Jan 08, 2017 23:04, edited 3 times in total.
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
mahmutelmas06
Member
 
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum
 

User avatar
DS-minetest
Member
 
Posts: 1026
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Player Ranks [0.1.0] [rank]

by DS-minetest » Fri Oct 28, 2016 12:12

nice!
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

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

Re: [Mod] Player Ranks [0.1.0] [rank]

by Krock » Fri Oct 28, 2016 17:48

There's no possibility to get more privileges with these ranks right now but they're still a nice addition for the nickname when I've got too many ores :)

PS: It would be possible to put the ranks into a table, which describes the required nodes for each rank. Additionally it shortens your code by about 60 lines for the same effect. But that's all up to you ;)
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod] Player Ranks [0.1.0] [rank]

by bigfoot » Sat Oct 29, 2016 17:29

Krock wrote:There's no possibility to get more privileges with these ranks right now but they're still a nice addition for the nickname when I've got too many ores :)

PS: It would be possible to put the ranks into a table, which describes the required nodes for each rank. Additionally it shortens your code by about 60 lines for the same effect. But that's all up to you ;)


Thanks for the feedback and suggestion.
I want to actually not give privileges but instead give mineral blocks on a regular basis. (~4 minetest days.)
Thanks again for the suggestions!

azekill_DIABLO wrote:This is an awesome mod! I Will think to fork it!


Cool!
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: [Mod] Player Ranks [0.1.0] [rank]

by Modern Hippie » Mon Oct 31, 2016 17:05

Will the rank be displayed in the chat on multiplayer servers?

Great idea btw :) I think about to put this mod on the server where I am moderator...

Greetings, Modern Hippie
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod] Player Ranks [0.1.0] [rank]

by bigfoot » Tue Nov 01, 2016 03:51

Modern Hippie wrote:Will the rank be displayed in the chat on multiplayer servers?

Great idea btw :) I think about to put this mod on the server where I am moderator...

Greetings, Modern Hippie


I made an attempt to do this but it can be a little flakey.
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: [Mod] Player Ranks [0.1.0] [rank]

by Modern Hippie » Tue Nov 01, 2016 05:11

bigfoot547 wrote:I made an attempt to do this but it can be a little flakey.


Okay, this would be really great.
I think you know what I mean?
If I'm writing "Hello" in chat...

normal: <minehippie> Hello
something like this: [Moderator] <minehippie> Hello

But this version is also very good, too :)
Thank you for your try!

Greetings Modern Hippie
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

User avatar
DS-minetest
Member
 
Posts: 1026
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Player Ranks [0.1.0] [rank]

by DS-minetest » Tue Nov 01, 2016 08:39

you mean something like this: [Moderator] <minehippie> Hello
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: [Mod] Player Ranks [0.1.0] [rank]

by Modern Hippie » Tue Nov 01, 2016 10:03

DS-minetest wrote:you mean something like this: [Moderator] <minehippie> Hello


Yeah, that's exactly, what I'm meaning ^^
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

Modern Hippie
Member
 
Posts: 115
Joined: Wed Oct 29, 2014 04:35

Re: [Mod] Player Ranks [0.1.0] [rank]

by Modern Hippie » Tue Nov 01, 2016 11:05

azekill_DIABLO wrote:Modifying chat is harder


Oh okay... I'm sorry, I don't know very much about modifying XD Just a little bit of.

It's no problem, if it doesn't work :) This mod is without this feature a cool idea, too!
No longer active with this account! Please PM me on my new account "Wolfshippie"!
 

User avatar
azekill_DIABLO
Member
 
Posts: 7461
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod] Player Ranks [0.1.0] [rank]

by bigfoot » Tue Nov 01, 2016 18:40

What I tried to do was use this to handle the message then send my own message like this:
Code: Select all
minetest.chat_send_all("<[moderator] minehippie> message")

Where minehippie is the name, moderator is rank, and message is the typed message.
One problem is that if you type an invalid command, it will send "/command" as the message and not say invalid command only to you.

EDIT: Believe me. I tried. (:-D)
EDIT2: The way to fix the problem in the initial post is to check the first character of the message and if it is a "/" character, then don't handle the message and just have normal operation. Else, handle the message.
EDIT3: Totally working on this later today.
EDIT4: Added in new release: 0.2.0. Haha, minetest is a great place.
Last edited by bigfoot on Tue Nov 01, 2016 19:12, edited 1 time in total.
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod] Player Ranks [0.2.0] [rank]

by bigfoot » Tue Nov 01, 2016 19:11

One thing, when you type a message, you will see your message in the chat like this:
<name> message
<[Moderator] name> message

But, don't worry! Only you see the first part. Nobody else.

As of 2f56a00, this is no longer a problem.
Last edited by bigfoot on Tue Jan 17, 2017 01:57, edited 1 time in total.
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 

User avatar
Milan*
Member
 
Posts: 248
Joined: Thu May 28, 2015 06:45
Location: Germany
GitHub: tchncs
IRC: Passant
In-game: Milan Passant

Re: [Mod] Player Ranks [0.2.0] [rank]

by Milan* » Tue Nov 01, 2016 20:12

w0000t people told me this isn't possible in minetest. :o
Illuna Minetestservers | Mastodon | [ matrix ] | I may host you a Minetestserver, just contact me.
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Player Ranks [0.2.0] [rank]

by octacian » Thu Nov 10, 2016 02:09

NOT POSSIBLE!? I did this months ago in ServerTools xD lel

Still, great job! This even has something ServerTools doesn't, that being changing the player nametag. Not for long though, I'm implementing it right now :D (because I just discovered how from this mod, thx!)

Take a look at the source code of ServerTools though, it might give you a good idea as to how privileges could be implemented for each rank. It never hurts to have more than one mod that does the same thing anyways.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
bigfoot
Member
 
Posts: 203
Joined: Fri Sep 02, 2016 23:31
Location: Somewhere between polar bears and penguins.
GitHub: bigfoot547
IRC: bigfoot547 or bigfoot
In-game: bigfoot547 or bigfoot

Re: [Mod] Player Ranks [0.2.0] [rank]

by bigfoot » Sat Nov 12, 2016 23:37

endev15 wrote:NOT POSSIBLE!? I did this months ago in ServerTools xD lel

Still, great job! This even has something ServerTools doesn't, that being changing the player nametag. Not for long though, I'm implementing it right now :D (because I just discovered how from this mod, thx!)

Take a look at the source code of ServerTools though, it might give you a good idea as to how privileges could be implemented for each rank. It never hurts to have more than one mod that does the same thing anyways.


Thanks for the feedback!
About the last part, I think that the server moderators and admins should be responsible for this. If you want this feature, you could make a fork of the mod. Thanks for the suggestion! :-)

P.S. This is my 50th post! :-D
God's not dead, He's surely alive!
My Stuff | My User Page | Check out my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
Stay elusive ⓐⓝⓓ ⓣⓐⓛⓚ ⓘⓝ ⓒⓘⓡⓒⓛⓔⓢ!
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 4 guests