Jump to content

Help Making Server Plugin - Better Hack Detection


Recommended Posts

     :D   Hello, I'm a plugin developer and just looking for some help coding a plugin to detect hackers. I will most likely upload it to bukkit and make it open source so anyone on the technic forum for tekkit classic can use this to better protect there server. Yes I am aware of TekkitRestrict but, it is always buggy and never really gets the player but kicks people for doing nothing wrong.

 

   If you have any suggestions or if you would like to help code this with me comment bellow and will start from there!  

 

         So Here the code I got for now:

 

This is the Main Class TekkitHackPrevention

package thp.xzknightzx.prevention.hack;

import java.io.File;
import java.util.logging.Logger;

import org.bukkit.plugin.java.JavaPlugin;

public class TekkitHackPrevention extends JavaPlugin{

	public final Logger logger = Logger.getLogger("Minecraft");
	public static TekkitHackPrevention plugin;
	
	@Override
	public void onEnable(){
		this.logger.info(prefix() + "Is Enabled");
		
        ThpConfig();
		}
	
	@Override
	public void onDisable(){
		this.logger.info(prefix() + "Is Disabled");
		}
	
	public String prefix(){
		return "[TekkitHackPrevention]: ";
	}
	// Creates Config File If it does not exist.
	public void ThpConfig(){
		File config = new File(getDataFolder(), "config.yml");
		
		if (!config.exists()){
		getConfig().options().copyDefaults(true);
		saveDefaultConfig();
		}
	}
	
	
	
	
	
	
	

	
}

Here is my Config File: (For Now It's Empty..) :mellow:

########################################################
## TekkitHackPrevention (THP)                         ##
##                                                    ##
########################################################

 So right now it's a skeleton so I am working on this so it will not always be empty.

 

I will give you credit if you do help to make this plugin!    :rubshands:

 

Thank you if for reading this Topic!

Edited by ShadedDiamond
Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...