GithubHelp home page GithubHelp logo

treasurechestx's Introduction

treasurechestx's People

Contributors

henrikomagnifico avatar

Stargazers

 avatar

Watchers

 avatar  avatar

treasurechestx's Issues

Restricting tchest with rank does not work properly

As title suggests. Adding restriction per 'rank' does not work properly. Even OP cannot open the tchest. Adding treasurechest.rank.zagadka_mag does not cause tchest to open properly either.

TreasureChestX config:

defaults:
  messages:
    found: Znalazłeś skarb!
    found_already: Splądrowałeś ten skarb wcześniej...
    unlimited: Bierz ile wlezie!
  ignoreProtection: true
rewards:
  restore:
    subregion-size: 50
    subregion-ticks: 10
ranks:
- zagadka_mag

Tchest config:

location:
  ==: com.mtihc.minecraft.treasurechest.v8.core.TreasureChest
  container:
    ==: com.mtihc.minecraft.treasurechest.v8.core.BlockInventory
    world: main_world
    coords:
      ==: Vector
      x: -865.0
      y: 104.0
      z: 795.0
    type: CHEST
    size: 27
    contents: {}
  messages:
    FOUND: Znalazłeś skarb!
    UNLIMITED: Bierz ile wlezie!
    FOUND_ALREADY: Splądrowałeś ten skarb wcześniej...
  ranks:
  - zagadka_mag
  unlimited: false
  random: 0
  forget-time: 0
  ignore-protection: true
  shared: false
  rewards: {}

Log:

- [Wed 19:07:04 ERROR Minecraft] Could not pass event PlayerInteractEvent to TreasureChestX v1.0
java.lang.NullPointerException: Cannot invoke "com.mtihc.minecraft.treasurechest.v8.core.ITreasureManagerConfiguration.getRanks()" because "this.config" is null
    at TreasureChestX.jar//com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.getRanks(TreasureManager.java:513)
    at TreasureChestX.jar//com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.checkRank(TreasureManager.java:544)
    at TreasureChestX.jar//com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.onPlayerInteract(TreasureManager.java:245)
    at TreasureChestX.jar//com.mtihc.minecraft.treasurechest.v8.core.TreasureChestListener.onPlayerInteract(TreasureChestListener.java:66)
    at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37)
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:678)
    at org.bukkit.craftbukkit.v1_19_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:544)
    at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:527)
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:2048)
    at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:37)
    at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.a(ServerboundUseItemOnPacket.java:9)
    at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51)
    at net.minecraft.server.TickTask.run(TickTask.java:18)
    at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153)
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop

treasure chest delete all the items

hi, when i set a treasure chest and open it, sometimes it delete the other tchest from other player
also, what is the maximum time i can set on forget time? i needed 7 days but the plugin doesnt allow me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.