[Mod] Player Ranks [0.2.0] [rank]

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

[Mod] Player Ranks [0.2.0] [rank]

by bigfoot547 » 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
screenshot_20161014_200748.png (247.66 KiB) Viewed 1747 times
Last edited by bigfoot547 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.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 

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

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

by mahmutelmas06 » Fri Oct 28, 2016 08:18

Nice idea
My Mods:

Beverage
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
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 ;)
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

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

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

by azekill_DIABLO » Fri Oct 28, 2016 18:06

This is an awesome mod! I Will think to fork it!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

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

by bigfoot547 » 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.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 

User avatar
Modern Hippie
Member
 
Posts: 66
Joined: Wed Oct 29, 2014 04:35
In-game: minehippie

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
Mehr über Minetest demnächst auf YouTube: http://bit.do/floderhippie_yt !

Do not call me Modern.

ACHTUNG: Dies ist mein neuer Account! Bitte NICHT über den alten ohne dem Leerzeichen zwischen "Modern" und "Hippie" anschreiben!

If You Love Nature, Nature Will Love You Too!
 

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

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

by bigfoot547 » 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.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 

User avatar
Modern Hippie
Member
 
Posts: 66
Joined: Wed Oct 29, 2014 04:35
In-game: minehippie

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
Mehr über Minetest demnächst auf YouTube: http://bit.do/floderhippie_yt !

Do not call me Modern.

ACHTUNG: Dies ist mein neuer Account! Bitte NICHT über den alten ohne dem Leerzeichen zwischen "Modern" und "Hippie" anschreiben!

If You Love Nature, Nature Will Love You Too!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
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.
 

User avatar
Modern Hippie
Member
 
Posts: 66
Joined: Wed Oct 29, 2014 04:35
In-game: minehippie

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 ^^
Mehr über Minetest demnächst auf YouTube: http://bit.do/floderhippie_yt !

Do not call me Modern.

ACHTUNG: Dies ist mein neuer Account! Bitte NICHT über den alten ohne dem Leerzeichen zwischen "Modern" und "Hippie" anschreiben!

If You Love Nature, Nature Will Love You Too!
 

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

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

by azekill_DIABLO » Tue Nov 01, 2016 10:50

Modifying chat is harder
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
Modern Hippie
Member
 
Posts: 66
Joined: Wed Oct 29, 2014 04:35
In-game: minehippie

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!
Mehr über Minetest demnächst auf YouTube: http://bit.do/floderhippie_yt !

Do not call me Modern.

ACHTUNG: Dies ist mein neuer Account! Bitte NICHT über den alten ohne dem Leerzeichen zwischen "Modern" und "Hippie" anschreiben!

If You Love Nature, Nature Will Love You Too!
 

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

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

by azekill_DIABLO » Tue Nov 01, 2016 15:51

I don't say it's impossible, but for now the chat is hardcoded!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

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

by bigfoot547 » 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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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 bigfoot547 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.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

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

by bigfoot547 » 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 bigfoot547 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.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 

User avatar
Milan*
Member
 
Posts: 203
Joined: Thu May 28, 2015 06:45
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
 

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
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.
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

User avatar
bigfoot547
Member
 
Posts: 172
Joined: Fri Sep 02, 2016 23:31
GitHub: bigfoot547
In-game: bigfoot547

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

by bigfoot547 » 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.
I, bigfoot, have this special ability to destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 44 guests

cron