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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...