OMGlagg needs an update even if it's useless

Discussion in 'Archived: Plugin Requests' started by lemondhead2000, Apr 24, 2012.

  1. Offline

    lemondhead2000

    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.
     
    Last edited by a moderator: May 25, 2016
  2. Offline

    Father Of Time

    13 minutes have passed Lemon... Be patient.
     
  3. Offline

    lemondhead2000

    I just wanted to bump it lol
     
  4. Offline

    IcyRelic

    ok so you want a command /omglag and what it will do is just send a message of your choice in the config?
     
  5. Offline

    lemondhead2000

    yes also I got the name for it too
    Omglagg 2
    lol :)
     
  6. Offline

    beleg

    A message of your choice? So why is the name "Omglagg" ? :confused:
     
  7. Offline

    lemondhead2000

    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. :)
     
  8. Offline

    beleg

    you should try out commandhelper very easy to create such commands using that ;)
     
  9. Offline

    lemondhead2000

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

    TripleXPenguin

    So all you want is a plugin that measures the ping...... but with a customizable return message?
     
  11. Offline

    IcyRelic

    ill make it
     
  12. Offline

    lemondhead2000

    Oh thank u
    YAY
     
  13. Offline

    IcyRelic

    its done an supports colors
     
  14. Offline

    lemondhead2000

    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.
     
    Last edited by a moderator: May 25, 2016
  15. Offline

    IcyRelic

    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();
       
        }
     
    }
    
     
  16. Offline

    lemondhead2000

    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.
     
    Last edited by a moderator: May 25, 2016
  17. Offline

    IcyRelic

  18. Offline

    lemondhead2000

    :) If anyone could update this so it works with color for real cus' this ain't linking with color :)
     

Share This Page