BattleWolves

Discussion in 'Plugin Development' started by historio, Jul 5, 2013.

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

    GodzOfMadness

    historio It's not that good, because you learn nothing by copying and pasting.

    xTrollxDudex Cast Player to ents and also the getNearbyEntities method is a radius on each direction(up, down, left, right) in other terms: x, y, z and it's only going to see if the entities are 16 blocks high and 16 blocks below and all in between.

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

    CreeperShift

    historio

    Well you should think stuff through before you get other people to spend their time helping you. You said you made many plugins, then you should at least know what a variable is ._. lawl
     
    xTrollxDudex likes this.
  3. Offline

    historio


    When did i say i was experienced??

    I'm new to java btw should of mentioned that earlier :/
     
  4. Offline

    GodzOfMadness

    historio I asked if you had learned the basics of java, and if you hadn't I suggested a list of videos for you to learn off of.
     
  5. Offline

    historio

  6. Offline

    xTrollxDudex

  7. Offline

    CreeperShift

    What are you trying to pull off here? Do you think we are stupid? lol
     
  8. historio Note: a plugin that logs "enabled" when it's enabled and can't do anything more isn't counted as plugin. Except if it has pie, I love pie.
     
    GodzOfMadness and CreeperShift like this.
  9. Offline

    GodzOfMadness

  10. Yes, pumpkin pie counts also.
     
    GodzOfMadness likes this.
  11. Offline

    historio

    CaptainBern Yeah it has pie :D

    Code:java
    1. public boolean onCommand(CommandSender sender, Command cmd,
    2. String commandLabel, String[] args) {
    3. Player player = (Player) sender;
    4. if (sender instanceof Player == false) {
    5. sender.sendMessage("Sorry, but this is a player-only command");
    6. return true;
    7. }
    8. if (player.hasPermission("Pie.Use"))
    9. ;
    10. if (commandLabel.equalsIgnoreCase("Pie")) {
    11. ItemStack p = new ItemStack(Material.PUMPKIN_PIE, 64);
    12. ItemMeta pMeta = p.getItemMeta();
    13. pMeta.setDisplayName(ChatColor.AQUA + "PIE!!");
    14. p.setItemMeta(pMeta);
    15. player.getInventory().addItem(p);
     
    CaptainBern likes this.
  12. Offline

    GodzOfMadness

    historio There might be a chance it wouldn't get added to the inventory! Add player.updateInventory() so we KNOW when we get our pie!
     

  13. [cake]
     
  14. Offline

    historio

    Yummy :D
     
  15. Stay away from ma pie!

    [​IMG]
     
    historio and GodzOfMadness like this.
  16. Offline

    GodzOfMadness

  17. Hahah yes, I was so angry at that moment...
     
  18. Offline

    historio

  19. Offline

    historio

    CaptainBern Thanks :D

    So no one wants to make BattleWolves.... D:

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
Thread Status:
Not open for further replies.

Share This Page