Just like how it works on hypixel. But you can set your guild to private or public. If its private, people can not do /guild join on your guild. If its set to public, people can do /guild join on your guild.
as far as I know, leaders can only invite players so this is useless unless im wrong