Usage and Tools

Logo

Contents:

Usage

Permissions

The permissions system works for books and messages and dictates weather a player can run these commands with this plugin.

PermissionDescription
tellrawtriggers.listAllows use of /trtlist
tellrawtriggers.<file/command name>Allows specific command usage
tellrawtriggers.*Allows usage of all commands

This could be useful in situations where your command replaces another plugins command, but you only want certain groups to see the tellraw command.

For example, if I used Essentials to deal with warps, but wanted my own menu for default players, I would give the default group "tellrawtriggers.warp" allowing them to see the menu. However, if as an Admin I want to see the full list of warps from Essentials, I would give the Admin group a negative node "-tellrawtriggers.warp".


Messages

When you install the plugin it will automatically create a directory called 'messages'. To create a command all you have to do is create a file with the file extension ".json" and place it in this folder

The name of your file will be the command. For example:

Example Image

Here, because I have called the file "warp" the command would be "/warp"

You may format the json for messages however you want. Weather that be minified (like in a command block) or properly structured json. No matter which one you choose, remember not to include the "/tellraw @p" command.


Books

Due to the nature of the json for books they are done slightly differently. Instead of using the properly formatted json, you must use a portion of the minified command, as if it were in a command block.

If you are to again use the website http://minecraftjson.com then you must select everything after the first curly brace ("{") Example:

Example

You would add everything selected to the .json file, located in the "books" directory


Tools

I have personally found the best way to make the command is with this website: http://minecraftjson.com/ It allows you to easily create /tellraw messages and has conveniently got the correctly formatted json and the commandblock command ready to use.

MinecraftJson Example