Development Assistance Creating a command system(Not a dup. This time I'm asking for someone to CREATE a cmd system maybe)

Discussion in 'Plugin Help/Development/Requests' started by Lightspeed, Apr 18, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Lightspeed

    null
     
    Last edited: Apr 21, 2015
  2. Offline

    pie_flavor

    @Lightspeed I have explained this multiple times. Unless you get a legitimate error, I am no longer responding to this thread. I will be surprised if anyone else does.
     
  3. Offline

    Lightspeed

    @pie_flavor Why can't you just give me some of your code? I'll only put an elemental comment at the top saying it's your work and I will never tahg you again unless it a

    Edit: I like how when people click on your quote it dosen't say who your saying it to but it pops up with my account c:
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Lightspeed Yeah, that is probably your mistake ( the link )
    And you got numerous options already.
    You are here for assistance on development, not to get full code.
     
  5. Offline

    Lightspeed

    @timtower Oh my classgetter system kinda if I want it to get all classes I have to use my first package that holds all the other packages net wich is also in the referenced libs so I get everything there too :l Any other way I can get all classes in MY src?

    Code:
    package net.java;
    
    import java.io.IOException;
    
    import net.plugin.core.Core;
    
    import com.google.common.reflect.ClassPath;
    
    public class CustomClassLoader
    extends ClassLoader
    {
    
        public CustomClassLoader(Core core)
        {
            this.loadAllClasses();
        }
    
        void loadAllClasses()
        {
            ClassPath path = null;
            try
            {
                path = ClassPath.from(this);
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            for (ClassPath.ClassInfo info : path.getTopLevelClassesRecursive("packagehere"))
            {
                try
                {
                    Class<?> clazz = Class.forName(info.getName(), true, this);
                    System.out.println(clazz.getSimpleName());
                }
                catch (Throwable e)
                {
                    e.printStackTrace();
                }
            }
        }
    }
    
     
    Last edited: Apr 22, 2015
  6. Offline

    timtower Administrator Administrator Moderator

  7. Offline

    Lightspeed

    @timtower I'm talking about the src in eclipse not a src zip Is this teh correct link?
     
  8. Offline

    timtower Administrator Administrator Moderator

    @Lightspeed A jar is a zip, if you want to load with reflection then you use it.
    If not: then you make a list.
     
Thread Status:
Not open for further replies.

Share This Page