The-Wild / WildExtras

Custom Server Plugin
0 stars 1 forks source link

First stab at newbie PvP protection & colouring. #1

Closed bigpresh closed 8 years ago

bigpresh commented 8 years ago

Adding is_newbie() to determine if a player is a "newbie" - decided based on their playing time fetched via the Stats API.

Checking is_newbie() when a player is damaged and refusing the damage if they are a newb, and also colour-coding their name onLogin if they're a newbie. (Yeah, that means their name will stay newbie-coloured even after the newbie period expires up until they next log in, but that's no biggie.)

This is entirely untested yet - have emailed you about a test server. Also, it includes some minor code reformatting - if you'd rather it not, let me know.

smc87 commented 8 years ago

Sounds nice! Do you need any help building / deploying it, or already sorted that and just wanted to keep the code together?

bigpresh commented 8 years ago

See my email - could do with some help in testing it (do you have a test Minecraft server you test your stuff on)? This is all new ground for me!

bigpresh commented 8 years ago

If you get a sec - do you have a test server you use that you'd be willing to give me access to, or should I spin one up myself on a spare VM somewhere, copying over the mods in use on the live server? Would like to get testing these changes. Will probably also need help building the jar, although I may be able to figure that myself...