Помогите Ошибка в консоле из за CreativeControl

Статус
Закрыто для дальнейших ответов.

БобСоШрамом

Активный участник
Пользователь
Баллы
66
Плагин хорош, работает нормально, но когда достаешь из инвентаря (Креатив) любой предмет, то в консоле пишет следующую ошибку:
Код:
Could not pass event InventoryCreativeEvent to CreativeControl v6.4
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:2045) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot.a(SourceFile:23) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot.a(SourceFile:9) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
Caused by: java.lang.NullPointerException
at me.FurH.CreativeControl.core.inventory.InventoryStack.convert(InventoryStack.java:404) ~[?:?]
at me.FurH.CreativeControl.core.internals.IEntityPlayer.setEntityPlayer(IEntityPlayer.java:61) ~[?:?]
at me.FurH.CreativeControl.core.internals.InternalManager.getEntityPlayer(InternalManager.java:214) ~[?:?]
at me.FurH.CreativeControl.core.CoreListener.onInventoryClick(CoreListener.java:70) ~[?:?]
at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
... 15 more
Если вытянуть какойто предмет из инвентаря (Креатив) то будет эта ошибка. Если положить предметы в сундук или другое место то будет такая же ошибка.
Следующий код - settings.yml

Код:
## This section will define which group the player will be added when he changes his gamemode.
Permissions:
  ## ChangeGroups, if true, creative players will be added to the 'CreativeGroup'
  ChangeGroups: false
  ## CreativeGroup, the group that the player will be put on when changing to creative
  CreativeGroup: MembersCreative
  ## KeepCurrentGroup, if true, the player will not lose his current group, the creative group will just be added to its current groups.
  KeepCurrentGroup: true
  ## OpHasPerm, if true, ops will have all the permissions and will not be checked by your permissions plugin
  OpHasPerm: false

Queue:
  ## Threads, the number of threads to be use to process the database
  Threads: 2
  ## Speed, the speed of the queue, if your server is taking too long to shutdown, increase this option.
  Speed: 0.1

Cache:
  ## MaxCapacity, the maximum cache capacity, higher this value is, better will be the performance, but also the memory usage will increase.
  MaxCapacity: 15000
  ## PreCache, the amount of items to be cached on startup, if you have a big database, this may increase the load time.
  PreCache: 10000

Configurations:
  ## Single, if true, only the world.yml file will be used, other ones will be ignored.
  Single: false
  ## Conflict, if true, if required, some functions of this plugin will be automatically disabled to avoid conflict.
  Conflict: true
  ## FriendSystem, if true, the friend system will be enabled, this may take a bit of resources, just a bit.
  FriendSystem: false

Updater:
  ## Check for updates?
  Enabled: true

Selection:
  ## UseWorldEdit, if true, worldedit will be used to make selections. Otherwise the tool defined below will be used.
  UseWorldEdit: true
  ## The Item ID used to select regions, if UseWorldEdit is false
  Tool: 369

Events:
  ## Use PlayerMoveEvent? This may take a lot of resources on large servers, but is required to Creative/Survival regions work.
  PlayerMove: false
  ## Enable MiscProtections? Not recommended to use, I'll probably remove it on future releases.
  MiscProtection: false

PlayerData:
  ## Inventory, if true, players will have an inventory to survival, other to creative an other to adventurer
  Inventory: false
  ## Status, if true, will save the player survival status [e.g Health, Food, etc]
  Status: false
  ## Teleport, if true, the player will be teleported to the floor on login if needed
  Teleport: false
  ## SetSurvival, if true, the player will be set to survival on login (ATTENTTION: THIS MAY GLITCH WITH AUTH PLUGINS)
  SetSurvival: false
  ## FallGlith, if true, if the player is falling and right before hitting the ground he change its gamemode to survival he wont take damage
  FallGlitch: false
  ## HideInventory, if true, the player inventory will be hidden until login using an auth plugin
  HideInventory: false

## This section will define the armor to set on every creative player, for advanced options, while wearing the armor type /cc set armor.
CreativeArmor:
  ## Helmet, the player helmet
  Helmet: 0
  ## Chestplate, the player chestplate
  Chestplate: 0
  ## Leggings, the player leggings
  Leggings: 0
  ## Boots, the player boots
  Boots: 0

Communicator:
  ## Quiet, if true, any messages will be displayed
  Quiet: false

Debug:
  ## Console, if true, debug messages will be displayed in the console
  Console: false
  ## Stack, if true, common errors will be printed by full [leave it true C:]
  Stack: true

# End of the file -->
Следующий код - worlds/plotworld.yml

Код:
World:
  ## GameMode, the main gamemode of this world, options are SURVIVAL, CREATIVE or ADVENTURE.
  GameMode: CREATIVE
  ## Exclude, if true, this plugin will ignore this world, it means that any protections will be effective in this world.
  Exclude: false
  ## ChangeGameMode, if true, this plugin will handle the gamemode per world, the option GameMode will be used.
  ChangeGameMode: true

BlackList:
  ## Commands, list here all commands to disallow creative players to use.
  Commands: /buy, /sell, /logout
  ## SurvivalCommands, list here, all commands to disallow survival players to use.
  SurvivalCommands: []
  ## BlockPlace, list here, all block ids that creative players will be unable to place.
  BlockPlace: 8, 9, 10, 11, 46, 52, 79:0, 137, 422
  ## BlockBreak, list here, all block ids that creative players will be unable to break.
  BlockBreak: []
  ## ItemUse, list here, all block/item ids that creative players will be unable to use, this means right and left click.
  ItemUse: []
  ## ItemInteract, list here, all block/item ids that creative players will be unable to interact with, this means right click only.
  ItemInteract: 23, 54:0, 58, 61, 62, 84, 116:0, 117, 130, 145
  ## Inventory, list here, all block/item ids that will be automatically removed from creative players inventories.
  Inventory: []
  ## SignText, list here, the line of all signs that creative players will be unable to interact with.
  ## Obs: DONT INCLUDE [] or color codes, and use _ for spaces. This option does not work well, is recomended to use the permission system.
  SignText: buy, sell, trade

## To any option in "MiscProtection" Works, Events.MiscProtection has to be "true" in settings.yml.
MiscProtection:
  ## NoTNTExplosion, if true, TNT placed by creative players will not explode.
  NoTNTExplosion: true
  ## IceMelt, if true, ICE placed by creative players will not melt [CPU++]
  IceMelt: false
  ## LiquidControl, if true, liquids placed by creative players will not flow [CPU++] [BUGGY]
  LiquidControl: false
  ## Fire, if true, blocks placed by creative players will not burn. [CPU+]
  Fire: false

BlockProtection:
  ## WaterFlow, if true, creative blocks will be protected against water (eg torches)
  WaterFlow: false
  ## WorldEdit, if true, blocks created by WorldEdit will not drop when breaked.
  WorldEdit: false
  ## OwnBlocks, if true, blocks placed by creative players will have a ownship system, only the owner or properly allowed people will be able to break it. The block still protected with NoDrop.
  OwnBlocks: false
  ## NoDrop, if true, blocks placed by creative players will not drop when breaked
  NoDrop: true
  ## Explosions, if true, creative blocks will be protected against explosions. [REQUIRE NoDrop or OwnBlocks Activated]
  Explosions: true
  ## CreativeOnly, if true, only creative players area ble to break creative blocks. [REQUIRE NoDrop or OwnBlocks Activated]
  CreativeOnly: false
  ## Pistons, if true, blocks placed by creative players will not be pushed/pulled by pistons [REQUIRE NoDrop or OwnBlocks Activated]
  Pistons: false
  ## Physics, if true, blocks placed by creative players will not fall in some cases, it is buggy, bukkit does not have an api method for that yet. [REQUIRE NoDrop or OwnBlocks Activated]
  Physics: true
  ## BlockAgainst, if true, the OwnBlock system will check if the block against the block placed is protected.
  BlockAgainst: false
  ## CheckAttached, if true, attached blocks like torches will be protected by the NoDrop or OwnBlocks system.
  CheckAttached: false
  ## inverted, if true, the exclude list will work as a include list, so, the block will only be protected if its id is listed here.
  inverted: false
  ## exclude, list here, all block ids to be ignored by the NoDrop/OwnBlocks system, more blocks you list here, better will be the performance.
  exclude: 0, 8, 9, 10, 11
  ## BlockPerMinute, set the amount of blocks a player can place per minute
  BlockPerMinute: -1

Preventions:
  ##ItemDrop, if true, creative players will be unable to drop items
  ItemDrop: false
  ##ItemPickup, if true, creative players will be unable to pickup items
  ItemPickup: false
  ## PvP, if true, creative players will be unable to attack other players
  PvP: false
  ## Mobs, if true, creative players will be unable to attack mobs
  Mobs: false
  ## Eggs, if true, creative players will be unable to use Monster and Chicken eggs.
  Eggs: false
  ## Target, if true, creative players will not be target by mobs [CPU+]
  Target: false
  ## MobsDrop, if true, when a creative player kills a mob, no drop or exp will be given.
  MobsDrop: false
  ## IronGolem, if true, prevent creative players from creating Iron Golems
  IronGolem: false
  ## SnowGolem, if true, prevent creative players from creating Snow Golems
  SnowGolem: false
  ## Wither, if true, prevent creative players from creating Wither
  Wither: false
  ## ClearDrops, if true, when a creative player die, the drops will be removed
  ClearDrops: false
  ## Enchantments, if true, creative players will be unable to enchant items.
  Enchantments: true
  ## MineCartStorage, if true, creative players will be unable to use chest/furnaces in minecarts
  MineCartStorage: false
  ## BreakBedRock, if true, creative players will be unable to break the 'bottom' of the world
  BreakBedRock: true
  ## InvInteract, if true, creative players will be unable to interact with any type of inventory but the creative and creative quickbar.
  InvInteract: false
  ## Bonemeal, if true, creative players will be unable to use Bone meal on tress, there is no api methods for that yet, might be a litle buggy.
  Bonemeal: false
  ## InteractVillagers, if true, creative players will be unable to interact with villagers.
  InteractVillagers: false
  ## PotionSplash, if true, creative players will be unable to use potions
  PotionSplash: true
  ## ItemFrame, if true, creative players will be unable to use itemframes
  ItemFrame: false
  ## VehicleDrop, if trus, this plugin will try to prevent minecarts and boats created by creative player to drop!
  VehicleDrop: false
  ## VehicleLimit, set a limit of how much vehicles a creative player can create without destroying the old one.
  VehicleLimit: -1
  ## StackLimit, set the limit of amount per item that a creative player can have.
  StackLimit: 64
  ## InventoryOpen, if true, creative players will be unable to open any inventory apart from the creative inventory.
  InventoryOpen: false
  ## RemoveFlyOnPvp, if true, if the player hits someone with fly, he'll lost the fly mode
  RemoveFlyOnPvP: false
  ## NoCreativeOnPvP, if true, if the player hits someone with creative, he'll lost the creative mode
  NoCreativeOnPvP: false

# End of the file -->
Что изменить в кодах?
 
Статус
Закрыто для дальнейших ответов.
Назад
Верх Низ