Blogs Article

Plugin idea - ModBlock

  • 305 views 0 today
  • 2
  • 0
  • 1
Ambassador Pineapple
Lvl 32Artisan Scribe
22
I played on a server recently called 8-bitcraft. They had in the rule book, said that the only mods you could use on the server were Optifine and any mods that just checked your armor status. When I asked why minimaps weren't allowed, he (he being the owner) said "Minimaps aren't allowed because they make it easy for one person to hunt and kill others while they can't see him. Also, it makes having a faction zone useless, because they can find your base no matter what." This gave me a plugin idea, bringing me to the point of this blog. The idea behind ModBlock is to ban/kick players that use unallowed mods. It works like this:
mb.use.help/mb helpSee the help screen
mb.use.minimap/mb MinimapToggle Minimaps <yes/no>
mb.use.armor/mb ArmorToggle Armor checkers <yes/no>
mb.use.extra/mb ExtraToggle Extra stuff mods <yes/no>
mb.use.hax/mb HaxToggle Hax mods <yes/no>
mb.use.punish/mb PUNISHToggle punishment <ban [time] /permaban/kick>


So in essence, this is an anti-cheat plugin that narrows mods into four catagories:

  • Minimap
  • Armor checkers
  • Extra adders
  • Hax
If a mod falls into a catagory that is toggled "NO" by a Moderator or the Owner, the punishment will change depending on what the command is toggled to. Also, the punishment screen has a configureable text by using these commands:
mb.use.configkick/mb rewrite k <message>Make a kick screen message
mb.use.configban/mb rewrite b <message>Make a ban screen message
mb.use.confignever/mb rewrite pb <message>Make a permaban screen message

The commands to put the messages back to default are these:
mb.use.defk/mb default kDefault the Kick text
mb.use.defb/mb default bDefault the Ban text
mb.use.defpb/mb default pbDefault the Permaban text

The person with the unallowed mods will continued to be punished until they take off the offending mods. The plugin detects the offense by what the player tries to do. If the player tries to make a modded weapon and it isn't ok, he will get punished. If the player tries to do something with his minimap and it isn't ok, he will be punished. If the player tries to do something that he shouldn't be allowed to like fly and it isn't ok, he will be punished. And if the player tries to check his armor status in an unusual way and it isn't ok, he will be punished. The default punishment screens are this:
KICKYou have done something wrong, so we have punished you. <list of offending mods>
BANYou have committed a large fellony. You shall be on parole until you have finished your sentence. <list of offending mods>
PERMABANYou have done something so horrible that we cannot let you ever live on this server again. BEGONE WITH YOU! 
Thanks for reading!

More like this

  Have something to say?

GamerGeeked
04/23/2014 12:30 am
Level 15 : Journeyman Geek
Lol! "You have done something so horrible that we cannot let you ever live on this server again. BEGONE WITH YOU!"
1

Welcome