By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.

OK, Don't show this again

Hotbar Items!
version 2.0.3
Approved
Direct Download How to install?
Switch version
483 Downloads / 1524 Total
2 Reviews
Plugin Description §

Hotbar

A versatile and full featured hotbar plugin! Add items and make them execute commands, on any world!

Configuration

The default configuration provides lots of help setting up the plugin!

Hotbars

Hotbars are inventory containers for the slots 1-9, you can define them in the config.yml file, and make them automatically appear in worlds using the Worlds part of the configuration.

Worlds: # Here you can specify hotbars above and pair them with worlds
  world: UniqueHotbarName

If you don't have them automatically appear, you can still call them by calling the command hotbar {hotbarName} {player}

Command format

For every item you need to add commands in order to do things. This plugin accepts multiple commands per tap, and they will be executed in the order that they're listed in.

Commands are listed in the format of [email protected] where executor must be either player, op or console.

You can also leave out the @executor part for most commands by specifying a default way for them to be run using the Default-Command-Options part of the config.

Default-Command-Options: player # or op or console

Replaceable in commands

You can use these in your commands to make references to the player! These are capitalization sensitive, so make sure to type them as shown here!

{player}  IGN of the player
{tag}     Name tag of the player
{level}   The players level

{x}       The players X
{y}       The players Y
{z}       The players Z

Locking Inventories

You may wish to block a player from modifying their inventory when they have a hotbar, the "Locked Inventory" part of the config allows for this:

Locked Inventory:
- example
- world

Locked inventories are unable to have items moved in them, and players with locked inventories can't pickup items or arrows.

Note that items will be locked until the Hotbar is removed from the player.

The Hotbar Command

Previously, the hotbar command could only be used by the console, however now there is "hotbar" permission that allows a user to access the command.

There are a few uses of the hotbar command.

To remove a hotbar simply type the command

hotbar {clear} {player}

where player is the players name. The brackets around clear are to make sure you don't name a world that by mistake, in which case it will clear rather than send the hotbar. This will also unlock the players inventory and allow them to move items.

To send a hotbar to a player you can use the command like so

hotbar {hotbarName} {player}

Where {hotbarName} represents the name of the hotbar and {player} is the players name (leave out the brackets here)

You are also able to list all hotbars using the list argument:

hotbar {list}

Cooldown

The cooldown is to "fix" the player interact spam bug, which is a client side issue on Windows 10, I recommend the default value, but you can set it as high/low as you'd like.

API

This plugin comes with a full API and allows for the creation of Hotbars that use closures to execute code as well as hotbars that execute commands. To make use of this a plugin would simply need to create a new ClosureHotbar or CommandHotbar and then do

// Make sure $player is an instance of the Player class
$player->getServer()->getPluginManager()->getPlugin('Hotbar')->getHotbarUsers()->assign($player, $hotbar);

Demo of this plugin

To see this plugin in action, you can join my server: versai.pro 19132

Support?

Tweet me @artulloss Discord here

What's new §
  • Change comment and add text art
  • Fix level loading bug
    • Levels weren't loaded as they should have been, this was due to a typo, fixed now.
  • Update config.yml
  • Update plugin.yml
  • Add loadbefore
  • Add support for Kit plugins
  • Fix my hack to stop crash
  • Sync
    • Added LoseHotbarEvent
  • Ty @dktapps
    • Better way to do this!
  • Update config.yml
  • Version bump
  • Bump version
  • Important changes
    • Fixed issue with only setting one item and one Hotbar
      • How did this get through poggit
    • code review ?
      • Fixed this entirely though, works good now 👍
    • Changed Default-Command-Options to Default Command Options for consistancy
    • Updated READMD.md to reflect changes
  • Entirely rewritten, better code with full API
  • Hotbar command now has the ability to clear a hotbar and list hotbars that are registered
  • Hotbar locking only applies when a player has the hotbar, and the locking can be removed by clearing the hotbar from the player
  • Locked hotbars block the player from picking up arrows and items
  • Simplified configuration
  • Commands like /transferserver no longer throw errors when running because the player is kicked mid event (hack, removing in API 4.0.0).
  • Update README.md
  • Update issue templates
  • change priority of onJoin()
    • This may need to be changed by players if they have third party ban plugins- I changed mine to 'Low' (changed back) because I made a ban plugin and it conflicted.
  • tiny speed optimization.. this already does very little strain, fixed a mistake in code organization
  • Better practices, typo fix
  • Documentation changes
    • All events are now @priority HIGHEST so they won't get overwritten by other plugins.
  • typo fixes in README

GamingJedrickYT
using v2.0.3
24 May 19
Love it, but can you tell me how everything works pls =) thanks
artulloss
01 Jun 19
If you need personal help just message me on discord Adam🔥#0001
MCNightyCrafter
using v2.0.2
20 May 19
Great! It's work in my Server :), Sorry for bad rating XD
artulloss
20 May 19
Thanks for updating your review! 😊

Reply to review by :

Supported API versions
3.0.0
->
3.9.3
License §
Categories:
General
Teleportation
Mechanics
Developer Tools
Miscellaneous
Keywords
Permissions
Commands

You can leave one review per plugin release, and delete or update your review at any time

Loading...