1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Can I load two of the same edited plugin?

Discussion in 'Development' started by WreckagePE / ZAYD, Feb 26, 2017.

  1. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Can I load two, of the same, edited plugin?
    I edit the commands in-game and the items they give people (1vs1 plugin).
    Will it work if I load two, with different items & commands?
     
  2. ZentornX

    ZentornX Spider

    Messages:
    12
    Yes it will work but you have to change all possible commands and plugin name. I maked that with onevsone.
     
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    why load 100 1v1 just so you can 1v1 more then once
    when you can make a 1v1 that supports infinite matches all at once no queuing for vacant arena!
     
  4. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
  5. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    @ZentornX will it not generate the same folder?
     
  6. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    I edited but my new version overrides then other one... What do I do?
     
  7. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Make sure they don't conflict with each other. Names and Namespaces probably need to be unique for the plugins to be loaded at the same time.
     
    Sandertv likes this.
  8. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    The plugin name, namespace and commands will have to be changed for this to work how you intend it too. You could get away with not changing the command names if you understand how the command prefixes work but it'd be easier to just change the command in your case.

    While this is possible it is also highly impractical and I would not recommend doing so. I'd advise you do something like @Thunder33345 suggested earlier.
     
    corytortoise and HimbeersaftLP like this.
  9. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Yeah, I did it. I changed commands, namespace and the main: in plugin.yml
    Pretty easy :p
    Thanks for your help too :D :D
     
  10. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    @Thunder33345
    Is this possible?
    So, I could build one arena only, and infinite amount of players could play different game modes on it without them seeing each other/interfering matches?
     
  11. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    yes, you can have a static lobby, try using something like despawn from and spawn to, in order to hide players from each other as the first step
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.