artulloss / Hotbar

A versatile and fully featured hotbar plugin for PMMP!
MIT License
16 stars 5 forks source link

Hotbar items not working (even with default config) #7

Closed AL3XPI closed 4 years ago

AL3XPI commented 4 years ago

Any issues regarding pocketmine spoons will be disregarded and closed. Make sure that you can produce the bug without any other plugins.

Describe the bug I have been using the Hotbar plugin for a long time now, and it always functioned well. Today, when I right-clicked while holding one of the items in my hotbar which was supposed to open another hotbar, it did nothing except move my inventory slot to the right (originally on slot 1 but moved to slot 2). I reinstalled the plugin, using the default configuration, and the issue still occured.

To Reproduce Steps to reproduce the behavior: IDK. This never happened before.

Expected behavior I expected the item to switch to the next hotbar, which fully working days ago.

Desktop (please complete the following information):

Additional context My original config file (was working for a long time until this issue came up):


#  _  _  __ _____ __  __  ___
# | || |/__\_   _|  \/  \| _ \
# | >< | \/ || | | -< /\ | v /
# |_||_|\__/ |_| |__/_||_|_|_\

Hotbars:
  [redacted]: # Here you put an identifier for each hotbar
    §r§a[redacted]:
      Item: "399:0:1" # ID:META:AMOUNT
      Slot: 1 # Slots 1-9
      Lore: # Written lore on an item
        - [redacted]
      # - §r§9Another line
      Commands:
        - hotbar {clear} {player} 
        - hotbar [redacted] {player} 
      #  - hotbar {clear} {player} # The hotbar command has the built in {clear} argument to remove a hotbar - This will allow them to move their inventory as well
      #  - hotbar HotbarName {player} # Send a player a hotbar, allows for recursive menus where hotbars call other hotbars etc
      Enchant: true # Do want the item to be enchanted?
  [redacted]:
    §r§6[redacted]:
      Item: "399:0:1"
      Slot: 2
      Lore:
        - [redacted]
      Commands:
        - hotbar {clear} {player} 
        - mw teleport [redacted] {player} 
        - tp {player} [redacted]
        - setuperm {player} [redacted] @console
      Enchant: true
    §r§c[redacted]:
      Item: "339:0:1"
      Slot: 9
      Lore:
        - §r§9Back
      Commands:
        - hotbar {clear} {player} 
        - hotbar [redacted] {player} 
      Enchant: false

Default Command Options: player # Rather than specifying this for everything, you can simply just set the default way commands will be executed

Worlds: # Here you can specify hotbars above and pair them with worlds
  Lobby: [redacted]

# Here you can put the names of worlds where you don't want the items to be movable in / be able to be dropped or picked up
# This has changed from the 1.x versions, now the Hotbar will break when detecting invalid items (the player got a kit or something)
# so this is useable on any world with a hotbar, not just the lobby.

Locked Inventory:
  - Lobby
# - another world

# The cooldown "fixes" the issue with interactions where Windows 10 spams the interact event
# This is in ticks, I recommend 10 ticks

Cooldown: 10

# Don't modify this unless you update the plugin and it says the configuration needs to be updated
# In that case, copy this from the updated configuration and make the necessary changes to your configuration

# Make sure you add in the Enchant part for each item, previously this was missing, it was a mistake.
# Please change Default-Command-Options to Default Command Options, this is a consistency fix for the configuration.

Config Version: 3r8E{UGUDgX)~gba
...
artulloss commented 4 years ago

Did you try renaming or deleting the folder of your config file when you reinstalled it? Deleting the plugin doesn't affect the config which seems to be the issue.