plugin making server not start?

Discussion in 'Plugin Development' started by monkeymanboy, Jul 25, 2013.

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

    monkeymanboy

    here is what it says
    2013-07-25 12:38:57 [INFO] Starting minecraft server version 1.6.2
    2013-07-25 12:38:57 [INFO] Loading properties
    2013-07-25 12:38:57 [INFO] Default game type: SURVIVAL
    2013-07-25 12:38:57 [INFO] Generating keypair
    2013-07-25 12:38:58 [INFO] Starting Minecraft server on *:25565
    2013-07-25 12:38:59 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.2-R1.0-30-g74f60d8-b2818jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT)
    after that it does nothing if I take my plugin out it works fine I know which part of the code it causing it but don't know why here is the code(if i take it out then it works fine)
    Code:java
    1.  
    2. {
    3. ItemStack goldenApple = new ItemStack(Material.GOLDEN_APPLE, 1, (short) 0);
    4. ItemStack glisteringMelon = new ItemStack(Material.SPECKLED_MELON);
    5.  
    6. Iterator<Recipe> recipes = Bukkit.recipeIterator();
    7. Recipe recipe = recipes.next();
    8. while(recipes.hasNext())
    9. if(recipe.getResult().equals(goldenApple) || recipe.getResult().equals(glisteringMelon))
    10. recipes.remove();
    11. }


    never mind i fixed it

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

    SnakeEyes

    lol TC?
     
Thread Status:
Not open for further replies.

Share This Page