Coder Social home page Coder Social logo

hotbar's Introduction

Hello, I'm Adam

I'm a web developer with a passion for designing creative solutions to complicated problems. I have experience in a variety of languages including JavaScript, PHP and C#.

Here are some of my stats!

gh stats

wt stats

hotbar's People

Contributors

artulloss avatar kielking avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hotbar's Issues

Bug

This plugin is'nt working in Specified worlds.

It's my hotbars config:
Screenshot_۲۰۲۲-۰۷-۰۵-۱۱-۲۴-۰۴-۰۰۷_com android chrome

It's my worlds config:
Screenshot_۲۰۲۲-۰۷-۰۵-۱۱-۲۳-۵۵-۴۷۱_com android chrome

This is a bug in my config or in your plugin?????
HELP ME

Two items for Hotbaar

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
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • API: [e. g. 3.5.0]
  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

crash

Describe the bug
2019-05-19 [23:24:30] [Server thread/CRITICAL]: ErrorException: "Undefined index: Enchant" (EXCEPTION) in "plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main" at line 76
2019-05-19 [23:24:30] [Server thread/DEBUG]: #0 plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main(76): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined index: Enchant, string phar:///home/leo/hub/plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main.php, integer 76, array Array())
2019-05-19 [23:24:30] [Server thread/DEBUG]: #1 plugins/Hotbar_dev-66 (1).phar/src/ARTulloss/Hotbar/Main(57): ARTulloss\Hotbar\Main->registerHotbars()
2019-05-19 [23:24:30] [Server thread/DEBUG]: #2 src/pocketmine/plugin/PluginBase(123): ARTulloss\Hotbar\Main->onEnable()
2019-05-19 [23:24:30] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(587): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
2019-05-19 [23:24:30] [Server thread/DEBUG]: #4 src/pocketmine/Server(1992): pocketmine\plugin\PluginManager->enablePlugin(ARTulloss\Hotbar\Main object)
2019-05-19 [23:24:30] [Server thread/DEBUG]: #5 src/pocketmine/Server(1978): pocketmine\Server->enablePlugin(ARTulloss\Hotbar\Main object)
2019-05-19 [23:24:30] [Server thread/DEBUG]: #6 src/pocketmine/Server(1772): pocketmine\Server->enablePlugins(integer 1)
2019-05-19 [23:24:30] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/leo/hub/, string /home/leo/hub/plugins/)
2019-05-19 [23:24:30] [Server thread/DEBUG]: #8 (1): require(string phar:///home/leo/hub/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

To Reproduce
Steps to reproduce the behavior:

  1. put plugin
  2. start server

Expected behavior

Screenshots

Desktop (please complete the following information):

  • API: [e. g. 3.5.0]
  • OS: [e.g.Debian 9]
  • Version [DEV #66]

Additional context

Rewrite

Rewrite

When I have the time I would like to make this a little bit better in terms of integration with other plugins.

I have already started a rewrite of this with the end goal being everything can be done with other plugins, but still being able to be configured extensibly. Ex: Hotbar integration with 1v1 queues.

Ideas so far

  • Base hotbar class
    • CallableHotbar, execute a callback when clicked
    • CommandHotbar, execute commands when clicked
    • CommandCallableHotbar, execute commands then a callback function, allow flipping the
      order per item - Less necessary as it's possible to use a callback to execute a command, but I'd still like to
      give the option of doing this.
  • Event support
    • Event to fire when hotbar is pressed, plugin will use this event in code to call the execute
      method in the Hotbar class, but plugins could add things to it, will have a method to get the
      players current Hotbar and the player, maybe an object to encapsulate these

Suggestions are welcome, feel free to leave any below.

Hotbar items stop working when moved to another slot

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
When you have a hotbar and you have the locked-hotbar option disabled the item will work in the desired hotbar slot only. Then once moved to another slot it doesnt work, then once moved back to original spot it still doesnt work.

To Reproduce
Steps to reproduce the behavior:

  1. Apply a hotbar
  2. Disable locked-hotbar option in config
  3. Use the item (mine was a command)
  4. Move the item
  5. Try to use the item again

Expected behavior
I expected the hotbar item to be able to be used whenever it is clicked regardless of the hotbar slot it is in when hotbar-lock is disabled

Desktop (please complete the following information):

  • API: 3.16.0
  • OS: Windows
  • Version 1.16.100

Additional context
Add any other context about the problem here.

Items clearing on relogging

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
So I have a server, factions server, I have a little info world where the player first spawns and they have books with uis tied to them in their inventory (using hotbar plugin to make them open the ui), once they go to main world and relog, their whole inventory gets cleared.

To Reproduce
Steps to reproduce the behavior:

  1. Start Server
  2. Go to a world where the hotbar isnt enabled
  3. Give yourself an item
  4. Relog
  5. Item gets removed

Expected behavior
The persons item to stay in the inventory (the world where hotbar isnt enabled)

Screenshots
No Screenshots sorry

Desktop (please complete the following information):

  • API: 3.11.6
  • OS: Windows 10
  • Version what?

Additional context
nothing

How do I get rid of a hotbar?

I have the main world hotbar. Then I have them select a secondary hotbar. I then use multiworld to teleport the player to a different world. They keep the secondary hotbar. I then try to give them a kit, but they either 1. Cannot move items around inventory or 2. Get Internal Server Error when they try. Please help :’(

Hotbar items not working (even with default config)

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):

  • API: [3.10.1]
  • OS: [Windows 10]
  • Version [2.0.3]

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
...

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.