------------------------------------------------------------------------------------------------------------------------------- Features Plugin Kicker Provides To Keep The Leachers Away From Servers And Stealing The Server Plugins,Also The Owner Can Set Messages In The Config. ------------------------------------------------------------------------------------------------------------------------------- Commands /Plugin - Kicks Player From Server /Pl - Kicks Player From Server ------------------------------------------------------------------------------------------------------------------------------- Things To Do ------------------------------------------------------------------------------------------------------------------------------- Things Coming In v0.2 ------------------------------------------------------------------------------------------------------------------------------- Bugs Let Me Know In The Comments If Any Bugs Are Found -------------------------------------------------------------------------------------------------------------------------------
How do you know when they are looking at your plugins? And also, can't you just use the /kick <player> command? There are plugins that disable viewing of the /plugins. Would be a lot more effective to make it like that.
It's good as in the code but it's kind of useless? And by the way, can you answer my question, please? I want to know;
When I join a server I do /pl right away to test how secretive they are as well as just being curious as to what they use. I would be rather upset for being kicked after trying.
Well I used this in my server, I just edited a current plugin I had the source of, and added it. Instead of making them see when they type /pl, make a new command.. Its a lot easier. That's how I did it too
I was so determined to show that this was such an easy plugin to make, I made one in under 5 minutes. Code:text package code.shoottomaim.simpleplkicker; import java.io.IOException;import java.util.logging.Logger;import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.command.ConsoleCommandSender;import org.bukkit.entity.Player;import org.bukkit.event.Listener;import org.bukkit.plugin.java.JavaPlugin; import code.shoottomaim.simpleplkicker.Metrics; public class SimplePlKicker extends JavaPlugin implements Listener {private static final Logger log = Logger.getLogger("Minecraft");public ConsoleCommandSender console;public static final String pluginname = "SimplePlKicker"; public void onDisable() {log.info("[SimplePlKicker] " + getDescription().getName() + " v" + getDescription().getVersion() + " has been disabled.");} public void onEnable() {try {Metrics metrics = new Metrics(this);metrics.start();} catch (IOException e) {// Failed to submit the stats :(}log.info("[SimplePlKicker] " + getDescription().getName() + " v" + getDescription().getVersion() + " has been enabled.");} public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {if(!(sender instanceof Player)) return false;Player player = (Player) sender;if(cmd.getName().equalsIgnoreCase("pl") || cmd.getName().equalsIgnoreCase("plugins") || cmd.getName().equalsIgnoreCase("help")){player.kickPlayer("You do not have access to /pl, /plugins, or /help.");return true;} else if(cmd.getName().equalsIgnoreCase("pl") || cmd.getName().equalsIgnoreCase("plugins") || cmd.getName().equalsIgnoreCase("help") && player.hasPermission("SimplePlKicker.exempt")){return false;}return false;}} Under 50 lines of code (46). Now if only I can get it to work...