Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Nie wiem co się stało


AleQs

Rekomendowane odpowiedzi

Opublikowano

Witam mam problem z configiem 

jest to plugin const

drops:
  Obsydian:
    chance: 25
    message: '&7Trafiles na: &1Obsydian &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: OBSIDIAN
      from: STONE
drops:
  Blok Diamentu:
    chance: 35
    message: '&7Trafiles na: &3Blok Diamentu &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: DIAMOND_BLOCK
      from: STONE
drops:
  Blok Zelaza:
    chance: 30
    message: '&7Trafiles na: &8Blok Zelaza &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: IRON_BLOCK
      from: STONE
drops:
  Blok Zlota:
    chance: 15
    message: '&7Trafiles na: &6Blok Zlota &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: GOLD_BLOCK
      from: STONE
drops:
  Jablko:
    chance: 65
    message: '&7Trafiles na: &4Jablko &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: APPLE
      from: STONE
drops:
  Zlote Jablko:
    chance: 10
    message: '&7Trafiles na: &eZlote Jablko &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: GOLDER_APPLE
      from: STONE
drops:
  Ender Perla:
    chance: 5
    message: '&7Trafiles na: &1Ender Perla &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: ENDER_PEARL
      from: STONE
drops:
  Biblioteczki:
    chance: 2
    message: '&7Trafiles na: &5Biblioteczki &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: BOOKSHELF
      from: STONE
drops:
  Obsydian:
    chance: 16
    message: '&7Trafiles na: &0Proch &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: GUNPOWDER
      from: STONE

a tu błedy z konsoli 

16:37:13 [INFO] [eastDrop] Enabling eastDrop v2.0.0
16:37:13 [SEVERE] Error occurred while enabling eastDrop v2.0.0 (Is it up to date?)
16:37:13 java.lang.NullPointerException
16:37:13  at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:68) ~[craftbukkit.jar:git-Spigot-1497]
16:37:13  at pl.eastwestfm.drop.managers.Util.getItemStackFromString(Util.java:20) ~[?:?]
16:37:13  at pl.eastwestfm.drop.managers.DropManager.loadDrop(DropManager.java:34) ~[?:?]
16:37:13  at pl.eastwestfm.drop.managers.DropManager.loadAllDrops(DropManager.java:67) ~[?:?]
16:37:13  at pl.eastwestfm.drop.managers.DropManager.<init>(DropManager.java:22) ~[?:?]
16:37:14  at pl.eastwestfm.drop.DropPlugin.onEnable(DropPlugin.java:44) ~[?:?]
16:37:14  at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:465) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:383) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:824) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.Bukkit.reload(Bukkit.java:287) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:24) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:726) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:713) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:319) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:284) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:583) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:489) [craftbukkit.jar:git-Spigot-1497]
16:37:14  at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Spigot-1497]
Opublikowano

Nie posiadam tego pluginu ale wydaje mi się że to przez "drops:"

Zamień:

 

drops:
  Obsydian:
    chance: 25
    message: '&7Trafiles na: &1Obsydian &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: OBSIDIAN
      from: STONE
drops:
  Blok Diamentu:
    chance: 35
    message: '&7Trafiles na: &3Blok Diamentu &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: DIAMOND_BLOCK
      from: STONE
NA:

 

drops:
  Obsydian:
    chance: 25
    message: '&7Trafiles na: &1Obsydian &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: OBSIDIAN
      from: STONE
  Blok Diamentu:
    chance: 35
    message: '&7Trafiles na: &3Blok Diamentu &7(%amount% szt)!'
    exp: 5
    fortune: true
    amount:
      min: 1
      max: 3
    height:
      min: 0
      max: 50
    tools:
    - DIAMOND_PICKAXE
    - IRON_PICKAXE
    - STONE_PICKAXE
    drop:
      item: DIAMOND_BLOCK
      from: STONE
I tak dalej, aby wszystko było w jednym "drops:"

 

Do tego usuń spacje w nazwach.

Pomogłem?👍

Daj Like! :D

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...