I'v used nolagg for the reason it was made to measure lag without spamming chat and yes I don't have /ping! Also I want it to have a config to change the message What I want A re-make of nolagg Command(s) /omglagg /omglagg reload Permissions omglagg.reload When I need it by In maybe 5 days if possible Optional addtions make it so different people get different messages by doing /nolagg PLEASE it died on me I need it can anyone or does anyone ever read my posts this makes me sad. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
ok so you want a command /omglag and what it will do is just send a message of your choice in the config?
The message in the first version was "Pray to notch the lag will end" it was more of a measurer of the lag. There for I don't have /ping and the plugin that has it won't load on my server. I also don't want people spamming chat saying "LAGGGGGGGGGGGGGG". The config would just be for fun.
ok but really I would like a plugin just for this purpose Ik it might annoying but I wish for to have it's own plugin please besides I want that config sort of
may I have please have link I got the link if anyone wants it? http://icyrelic.com/downloads/ it's there some where ik this sounds crazy but I think I want the source of this plugin if you can't just say no I'm fine with that. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The Source As You Asked Code: package me.icyrelic.com; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; public class OMGLag extends JavaPlugin{ public void onEnable() { loadConfiguration(); } public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player p = (Player) sender; if (cmd.getName().equalsIgnoreCase("omglag")) { if (args.length <= 0) { p.sendMessage(getConfig().getString("message").replaceAll("(&([a-f0-9]))", "\u00A7$2")); }else{ if (args.length >= 1) { if (args[0].equalsIgnoreCase("reload")) { if(p.hasPermission("OMGLag.Reload")){ reloadConfig(); loadConfiguration(); p.sendMessage(ChatColor.GREEN + "Config Reloaded"); }else{ p.sendMessage(ChatColor.RED + "You dont have Permission"); } } } } } return true; } public void loadConfiguration(){ getConfig().options().copyDefaults(true); saveConfig(); } }
thanks Icy if can give me permission I will make a dev page for this EDIT by Moderator: merged posts, please use the edit button instead of double posting.