Coder Social home page Coder Social logo

itembrag's Introduction

ItemBrag

A pocketmine plugin that allows players to brag about their items.

How to use

  1. Download the phar from poggit.

  2. Upload to your servers 'plugin' folder.

  3. Restart your server.

Commands

/brag:

Hold the item you wish to brag to other players, run /brag and the items name will appear in chat along with its count. Any enchants will appear (including enchants from piggy ces) aslong as you have the permissions which can be found in the permissions section of the plugin. A delay for the command has been highly requested so I have done that and made it configurable.

Config

Set this to true if you wish to disable /brag without uninstalling the plugin

brag-disabled: false

Message sent to player if brag-feature-disabled is set to true

brag-feature-disabled-message: "§cThis command is currently disabled!"

Message sent to player if they run /brag and their hand is empty

message-sent-to-player-when-hand-is-empty: "§cYou must hold an item while running this command!"

Message sent to player if they lack the permissions to brag

no-perms-message: "§cYou do not have permission to use this command!"

Message sent to player if they lack the permission to brag about items with enchants on

no-perms-message-enchants: "§cYou do not have permission to brag about items with enchants on!"

The cooldown of the /brag command in seconds

brag-cooldown-time: "30"

Permissions

permissions:

itembrag.brag.allow:

description: Allows players to brag using /brag.
default: op

itembrag.allow.enchants:

description: Allows players to brag about items with enchants on.
default: op

Plans

  • Correct colour formats for rarities of enchants from piggy custom enchants.

Support

If you need any assistance or have suggestions DM me on discord TPE#3107.

itembrag's People

Contributors

ept8tpe avatar jaylac2000 avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

itembrag's Issues

crash

[04:00:30.438] [Server thread/CRITICAL]: TypeError: "TPE\ItemBrag\Main::TPE\ItemBrag{closure}(): Return value must be of type string, pocketmine\lang\Translatable returned" (EXCEPTION) in "plugins/ItemBrag (1).phar/src/TPE/ItemBrag/Main" at line 52
--- Stack trace ---
#0 (): TPE\ItemBrag\Main->TPE\ItemBrag{closure}(object pocketmine\item\enchantment\EnchantmentInstance#143439)
#1 plugins/ItemBrag (1).phar/src/TPE/ItemBrag/Main(53): array_map(object Closure#193364, array[1])
#2 pmsrc/src/command/PluginCommand(50): TPE\ItemBrag\Main->onCommand(object JackMD\NameSpaceRemover\CustomPlayer#143550, object pocketmine\command\PluginCommand#105123, string[4] brag, array[0])
#3 pmsrc/src/command/SimpleCommandMap(205): pocketmine\command\PluginCommand->execute(object JackMD\NameSpaceRemover\CustomPlayer#143550, string[4] brag, array[0])
#4 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object JackMD\NameSpaceRemover\CustomPlayer#143550, string[4] brag)
#5 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object JackMD\NameSpaceRemover\CustomPlayer#143550, string[4] brag)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(737): pocketmine\player\Player->chat(string[5] /brag)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#188906)
#8 pmsrc/src/network/mcpe/NetworkSession(388): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object CLADevs\VanillaX\network\InGamePacketHandlerX#143635)
#9 pmsrc/src/network/mcpe/NetworkSession(351): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#188906, string[26] M./brag..M.jjB2..xX2Y.....)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[73] ..e.O*JLg.....r2.w.".(...".....7.ou.y....1.e.<..Y.'.a...8.#..Fo .Ao... Q.)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1, string[82] .:.@.<..vd......(....A....:.X..qk.i...$...s/&.......w...i.n>.e...0..x7.dI..V~...)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#110715)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1655956830.4709)
#16 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(327): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---
[04:00:30.438] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[04:00:30.441] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Thu_Jun_23-04.00.30-UTC_2022.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[04:00:30.698] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/7032843 or use the ID #7032843.

Suggestion

Add a configurable price, so people wont spam the command

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.