• Trong thời gian này, bạn không thể tạo bài mới, đăng comment, hay tạo tài nguyên mới để diễn đàn dọn dẹp nội dung.
    Diễn đàn sẽ sớm mở trở lại, chi tiết hãy theo dõi tại Discord
lehuu

Đã giải quyết PixelVip bị lỗi

  • Người tạo chủ đề Người tạo chủ đề lehuu
  • Ngày gửi Ngày gửi
Trạng thái
Không mở trả lời sau này.
tình hình là hết vip k vẫn k default về rank mặc định.
đang dùng spigot 1.8.8 và bản pixelvip mới nhất 2.0.1
Java 8 64 bit.
Console cứ 1 tý là có dòng dưới
Mã:
Task #158 for PixelVip v2.0.1 generated an exception
java.lang.NullPointerException
        at br.net.fabiozumbi12.PixelVip.db.PVDataFile.lambda$null$1(PVDataFile.java:118) ~[?:?]
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) ~[?:1.8.0_131]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[?:1.8.0_131]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_131]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_131]
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_131]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_131]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_131]
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_131]
        at br.net.fabiozumbi12.PixelVip.db.PVDataFile.lambda$null$3(PVDataFile.java:118) ~[?:?]
        at java.lang.Iterable.forEach(Iterable.java:75) ~[?:1.8.0_131]
        at br.net.fabiozumbi12.PixelVip.db.PVDataFile.lambda$getActiveVipList$4(PVDataFile.java:115) ~[?:?]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:1.8.0_131]
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_131]
        at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_131]
        at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_131]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_131]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_131]
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:1.8.0_131]
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:1.8.0_131]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_131]
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) ~[?:1.8.0_131]
        at br.net.fabiozumbi12.PixelVip.db.PVDataFile.getActiveVipList(PVDataFile.java:114) ~[?:?]
        at br.net.fabiozumbi12.PixelVip.PVConfig.getVipList(PVConfig.java:797) ~[?:?]
        at br.net.fabiozumbi12.PixelVip.PixelVip$1.run(PixelVip.java:174) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Còn đây là config của pixelvip. đã thêm key set đúng tên rank,
Mã:
groups:
  vip:
    essentials-kit: vip
    commands:
    - broadcast &aThe player &6{p} &ahas acquired your &6{vip} &afor &6{days} &adays
  member:
    essentials-kit: member
    commands:
    - broadcast &aThe player &6{p} &ahas acquired your &6{vip} &afor &6{days} &adays
  newbie:
    essentials-kit: newbie
    commands:
    - broadcast &aThe player &6{p} &ahas acquired your &6{vip} &afor &6{days} &adays
configs:
  database:
    type: file
    mysql:
      host: jdbc:mysql://localhost:3306/
      db-name: pixelvip
      username: user
      password: pass
      keys:
        table-name: pixelvip_keys
        columns:
          key: col_key
          group: col_group
          duration: col_duration
          uses: col_uses
          cmds: col_cmds
          info: col_info
          comments: col_comments
      vips:
        table-name: pixelvip_vips
        columns:
          uuid: col_uuid
          vip: col_vip
          playerGroup: col_playerGroup
          duration: col_duration
          nick: col_nick
          expires-on-exact: col_expires
          active: col_active
          kits: col_kits
          comments: col_comments
      transactions:
        table-name: pixelvip_transactions
        columns:
          idt: col_idt
          nick: col_nick
  key-size: 10
  useVault-toChangePlayerGroup: true
  cmdToReloadPermPlugin: pex reload
  cmdOnRemoveVip: ''
  commandsToRunOnVipFinish:
  - nick {p} off
  commandsToRunOnChangeVip: []
  queueCmdsForOfflinePlayers: false
  worldCmdsAllowed:
  - world
  - world_the_end
bungee:
  enableSync: false
  serverID: server1
apis:
  pagseguro:
    use: false
    email: [email protected]
    token: yourtoken
    ignoreOldest: 10/06/2017
  paypal:
    use: false
  commandIds:
    '1': darvip {p} Vip1 15
    '2': silk give {p} iron_golem 2
    '3': eco give {p} 10000
strings:
 
Trạng thái
Không mở trả lời sau này.

Thống kê nội dung

Tạo
lehuu,
Trả lời
0
Lượt xem
550
Quay lại
Trên cùng