Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Discussion How to secure plugin code?

Comments in 'General Discussion' started by must_, May 2, 2014.

?

Do you hate people who cheating with code?

  1. Of course

    87.0%
  2. No

    13.0%
  1. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    Hi all. I am writing it because I hate 'all copycats' from the internet. They are modding plugin code and claiming that its their work and deceiving the people!

    Could someone do with that? And how to strict people who are specifically tell people that it is theirs?
  2. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Well if you don't want someone to steal your code just don't post it :p.
    PEMapModder and Tuff like this.
  3. MegaSamNinja
    Offline

    MegaSamNinja Active Member

    Joined:
    Sep 13, 2013
    Posts:
    138
    Minecraft User:
    Bamuel
    Just like Meeeeeeeeeeeeeeeeeeeeeeeee
    :D
    PEMapModder and Darunia18 like this.
  4. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    No I am telling about already relised plugins on forum. So what jokes can you tell now?
  5. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    The best you can do to protect it is... Putting it on Github, and having all the commits. Remember that the Plugin Reviewers approve each plugin after reviewing the code. If we find that they code is similar to one that we have seen, we start investigating. You can also report a plugin (tell us the reason, and original source!). You can also try doing code obfuscation, but that might break a few things if not done right. I've removed support for that in DevTools for the new API.

    Also, add a license to your plugin so at least they will have to read about it.

    Just get known, so everyone knows that code is yours, and report if you find an offending plugin (if we haven't removed it yet!)
    linuxboytoo likes this.
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    what if you set your github repo to private? will the plugin work or it wont be recognized? thanks
  7. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    Well, I only meant that so you can prove that it's yours. Commits make sense if the author makes them ;P

    We review them in other ways too.
  8. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Build your core plugin part in Zephir, and write a PHP wrapper around your Zephir module. Distribute both Zephir compiled binary and the PHP wrapper.
  9. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    ============
    Ow,there are a bit missunderstainding i am telling this because of other players are editing the (already published plugins) and saying that its their work.
    How to secure php plugin like to decode it to pmf? But in future there will no pmf,only php and smthing else -i herd.
  10. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    Other people are publishing plugins without permission of creators. ant them are renaiming that the code is theirs (not the oficcial autors)
  11. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Well thats why im sure there is Mods to check through plugins to see if their stolen.
  12. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    So how to see that there are stolen if they are renaiming the autors name?
  13. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Tbh I think they should install a php checker to see if any part of the code is the same part as someone elses in the plugin list as that would reduce steals. Protection for the php is probably not needed as if you spot something in their code you can just report it to be deleted.
  14. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    In my opinion, reusing other peoples' code is fine as the PocketMine API is in the LGPL license.

    Redistributing without attributing credit is an entirely different matter. It's pretty easy to figure out whether they are reusing or just plain stealing. Ask them what the code is doing. One will know how to code PHP, the other will not.

    Edit: Changed GPL to LGPL
    Last edited: May 4, 2014
    PEMapModder, iJoshuaHD and Darunia18 like this.
  15. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    ========
    I am not about that, i am tellin just how to secure or convert into somthing php file that anyone had not had code path. like in old pmf or smthing new.
  16. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Personally you can't do much about people stealing codes these days. To be honest I can't see much is possible to secure it. If you had a secure plugin code that no one could steal or read pocketmine wouldn't be able to read it. The pocketmine forums have been upgraded recently which means they have made it much easier to report plugins that have stolen codes that get sorted very quickly. If your really worried about someone stealing your code you might as well just not publish it.
  17. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    it must be any possible way to convert into another type. Like pmf which cant be edited?
  18. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
  19. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    so how can i do that?
  20. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh

Share This Page

Advertisement