Solved Coping

Discussion in 'Bukkit Help' started by Laloth, Aug 9, 2012.

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

    Laloth

    Hello

    So i am the dev of a plugin called BlockEnderChest and today i got a comment that said:

    http://dev.bukkit.org/server-mods/nochest/
    He seems to be stealing your stuff man and calling it his.
    lol I called the guy out on the ripoff he made, completly redid his post and got all the comments wiped from it. Plugin still looks identical to yours though.

    So i went over to the post and found that his core code is the same as mine now i know that by law it is against the law to take someone's work and call it your own now this guy ddin't entire copie the code he did some minor chages but the classe's are the same name and the main plugin is the same as mine so im not sure what to do i have asked the guy to deleted the plugin but i thought i would just ask so here is the code:

    BlockEnderChest:

    Main:

    1. package me.Laloth.Main;
    2. import org.bukkit.plugin.PluginManager;
    3. import org.bukkit.plugin.java.JavaPlugin;
    4. public class Main extends JavaPlugin {
    5. private PlayerListener PlayerListener = new PlayerListener(this);
    6. public static Main plugin;
    7. public void onEnable() {
    8. System.out.println("BlockEnderChest Has Been Enabled");
    9. PluginManager pm = getServer().getPluginManager();
    10. pm.registerEvents(this.PlayerListener, this);
    11. }
    12. public void onDisable() {
    13. System.out.println("BlockEnderChest Has Been Disabled");
    14. }
    15. }

    PlayerListner:

    1. package me.Laloth.Main;
    2. import org.bukkit.ChatColor;
    3. import org.bukkit.block.Block;
    4. import org.bukkit.entity.Player;
    5. import org.bukkit.event.EventHandler;
    6. import org.bukkit.event.Listener;
    7. import org.bukkit.event.block.BlockPlaceEvent;
    8. import org.bukkit.event.inventory.CraftItemEvent;
    9. import org.bukkit.event.player.PlayerInteractEvent;
    10. import org.bukkit.inventory.ItemStack;
    11. import org.bukkit.Material;
    12. import org.bukkit.event.block.Action;
    13. public class PlayerListener implements Listener {
    14. public Main plugin;
    15. public PlayerListener(Main instance) {
    16. plugin = instance;
    17. }
    18. @EventHandler
    19. public static void onPlayerPlaceBlock(BlockPlaceEvent event) {
    20. Player player = event.getPlayer();
    21. Block block = event.getBlockPlaced();
    22. int id = block.getTypeId();
    23. if (((id == 130) || (id == 0))
    24. && (!player.hasPermission("BlockEnderChest.PlaceEnderChest"))) {
    25. player.sendMessage(ChatColor.RED + "You cannot Place EnderChest!");
    26. event.setCancelled(true);
    27. }
    28. }
    29. @EventHandler
    30. public void onPlayerCraft(CraftItemEvent event) {
    31. ItemStack itm = event.getRecipe().getResult();
    32. Player player = (Player) event.getView().getPlayer();
    33. int id = itm.getTypeId();
    34. if (((id == 130) || (id == 0))
    35. && (!player.hasPermission("BlockEnderChest.CreateEnderChest"))) {
    36. player.sendMessage(ChatColor.RED + "You cannot Create EnderChest!");
    37. event.setCancelled(true);
    38. }
    39. }
    40. @EventHandler
    41. public void onPlayerInteract(PlayerInteractEvent event) {
    42. Player player = event.getPlayer();
    43. if ((event.getAction() == Action.RIGHT_CLICK_BLOCK)
    44. && (event.getClickedBlock().getType() == Material.ENDER_CHEST)) {
    45. if (!player.hasPermission("BlockEnderChest.UseEnderChest")) {
    46. player.sendMessage(ChatColor.RED
    47. + "You cannot Access EnderChest!");
    48. event.setCancelled(true);
    49. }
    50. }
    51. }
    52. }
    NoChest:

    Main

    1. package me.Mackerbaron.Main;
    2. import java.io.PrintStream;
    3. import org.bukkit.Server;
    4. import org.bukkit.plugin.PluginManager;
    5. import org.bukkit.plugin.java.JavaPlugin;
    6. public class Main extends JavaPlugin
    7. {
    8. private PlayerListener PlayerListener = new PlayerListener(this);
    9. public static Main plugin;
    10. public void onEnable()
    11. {
    12. System.out.println("[NoChest] Has Been Enabled");
    13. PluginManager pm = getServer().getPluginManager();
    14. pm.registerEvents(this.PlayerListener, this);
    15. }
    16. public void onDisable()
    17. {
    18. System.out.println("[NoChest] Has Been Disabled");
    19. }
    20. }
    21. PlayerListner:
    22. package me.Mackerbaron.Main;
    23. import org.bukkit.ChatColor;
    24. import org.bukkit.block.Block;
    25. import org.bukkit.entity.Player;
    26. import org.bukkit.event.EventHandler;
    27. import org.bukkit.event.Listener;
    28. import org.bukkit.event.block.BlockPlaceEvent;
    29. import org.bukkit.event.inventory.CraftItemEvent;
    30. import org.bukkit.inventory.InventoryView;
    31. import org.bukkit.inventory.ItemStack;
    32. import org.bukkit.inventory.Recipe;
    33. public class PlayerListener
    34. implements Listener
    35. {
    36. public Main plugin;
    37. public PlayerListener(Main instance)
    38. {
    39. this.plugin = instance;
    40. }
    41. @EventHandler
    42. public static void onPlayerPlaceBlock(BlockPlaceEvent event) { Player player = event.getPlayer();
    43. Block block = event.getBlockPlaced();
    44. int id = block.getTypeId();
    45. if (((id == 54) || (id == 0)) &&
    46. (!player.hasPermission("NoChest.PlaceChest")))
    47. {
    48. player.sendMessage(ChatColor.RED + "You cannot Place a Chest!");
    49. event.setCancelled(true);
    50. } }
    51. @EventHandler
    52. public static void onPlayerCraft(CraftItemEvent event) {
    53. ItemStack itm = event.getRecipe().getResult();
    54. Player player = (Player)event.getView().getPlayer();
    55. int id = itm.getTypeId();
    56. if (((id == 54) || (id == 0)) &&
    57. (!player.hasPermission("NoChest.CraftChest")))
    58. {
    59. player.sendMessage(ChatColor.RED + "You cannot Craft a Chest!");
    60. event.setCancelled(true);
    61. }
    62. }
    63. @EventHandler
    64. public static void onPlayerPlaceEnderBlock(BlockPlaceEvent event)
    65. {
    66. Player player = event.getPlayer();
    67. Block block = event.getBlockPlaced();
    68. int id = block.getTypeId();
    69. if (((id == 130) || (id == 0)) &&
    70. (!player.hasPermission("NoChest.PlaceEnderChest")))
    71. {
    72. player.sendMessage(ChatColor.RED + "You cannot Place a Ender Chest!");
    73. event.setCancelled(true);
    74. }
    75. }
    76. @EventHandler
    77. public static void onPlayerEnderCraft(CraftItemEvent event) {
    78. ItemStack itm = event.getRecipe().getResult();
    79. Player player = (Player)event.getView().getPlayer();
    80. int id = itm.getTypeId();
    81. if (((id == 130) || (id == 0)) &&
    82. (!player.hasPermission("NoChest.CraftEnderChest")))
    83. {
    84. player.sendMessage(ChatColor.RED + "You cannot Craft an Enderchest!");
    85. event.setCancelled(true);
    86. }
    87. }
    88. @EventHandler
    89. public static void onPlayerPlaceBlockTNT(BlockPlaceEvent event) {
    90. Player player = event.getPlayer();
    91. Block block = event.getBlockPlaced();
    92. int id = block.getTypeId();
    93. if (((id == 46) || (id == 0)) &&
    94. (!player.hasPermission("NoChest.Place.tnt")))
    95. {
    96. player.sendMessage(ChatColor.RED + "You cannot Place TNT!");
    97. event.setCancelled(true);
    98. }
    99. }
    100. @EventHandler
    101. public static void onPlayerCraftTNT(CraftItemEvent event) {
    102. ItemStack itm = event.getRecipe().getResult();
    103. Player player = (Player)event.getView().getPlayer();
    104. int id = itm.getTypeId();
    105. if (((id == 46) || (id == 0)) &&
    106. (!player.hasPermission("NoChest.Create.tnt")))
    107. {
    108. player.sendMessage(ChatColor.RED + "You cannot Craft TNT!");
    109. event.setCancelled(true);
    110. }
    111. }
    112. }
    Know again the code isn't the same as mine but it is pretty close now. I hope that this can be fixed because i really don't like someone taking credit for my work!
    -Lane
     
  2. Offline

    Kipze

    First this is the wrong section...
    Second what do you want us to do?
    Third it's not against the law unless you have your work reserved/copyrighted
    Fourth an final so pretty much what your saying is he took what you made an made it better?
    hmm building of each other is whats should happen it isn't bad. If you don't like it don't release your work...

    Waste of a thread to be honest should be deleted.
     
  3. Offline

    chaseoes Retired Staff

    Just report the project on BukkitDev and they'll remove it.
     
  4. Offline

    Laloth

    how do i do that
     
  5. Offline

    chaseoes Retired Staff

    If you can provide enough proof that they clearly copied it, go to the project page and click the red triangle in the bottom right-hand corner.
     
  6. Offline

    Laloth

    First off

    1.I am new to bukkti and i wasnt sure where to post it!
    2.I relase the source coide to help ppl not for other ppl to steal the code
    3.I got the awnser i was looking for from chaseoe
     
  7. Offline

    Kipze

    its a community where we build off each other its not stealing its further developing.
     
  8. Offline

    Necrodoom

    how does copying someone's code, calling it your own, and giving no credits, is "further developing"? its plain stealing.
     
  9. Offline

    Kipze

    Did not know that he didn't give credit.
     
  10. Offline

    McLuke500

    It's one of those plugins where there's not many ways to do what you want to achieve other then cancelling the listeners, I don't think there's much proof that he "copied" as there are not that many ways to do your plugin. If it was something really complicated such as idk factions and he ripped your code the yes you would have proof.
     
  11. Offline

    Laloth

    Thank you everyone the project has been removed
    Thank You
     
  12. Offline

    McLuke500

    Ahh looks like I was wrong sorry ;(
     
  13. Offline

    Laloth

    Its fine no buggy its done
     
Thread Status:
Not open for further replies.

Share This Page