SimpleChat v1.1
I created this plugin just to test some stuff. I am still a beginner in Java, and I still have a lot of stuff to learn, so I started to practice a bit how to code using the Spigot library
The plugin only has one command, that I will show in a bit. The main functions of the plugin are:
- Local chat: The player will be able to send local messages to players that are up to 25 blocks far from you (this value can be changed in the plugin folder file named config.yml).
- Global chat: The player will be able to use the command /g (message) to send messages to all online players.
Important
To use this plugin, you need to install the Vault plugin as well. It is needed, if you don't install Vault, the plugin won't work.
Link to Vault: https://www.spigotmc.org/resources/vault.34315/
Commands
- /g (message) - sends a message in the global chat.
- /simplechat - shows all commands available to manage the plugin.
- /simplechat reload - reload the config.yml file without needing to reload the server.
Permissions
- simplechat.local.use - allow the player or group to use the local chat.
- simplechat.global.use - allow the player or group to use the global chat.
- simplechat.admin - allow the player or group to use the /simplechat command and all commands that it will show (including /simplechat reload).
Group prefix
To show a group prefix, you will need a permissions plugin that allows you to create groups and add a prefix to it.
The plugin was tested using LuckPerms (https://www.spigotmc.org/resources/luckperms.28140/), but you can use any other permissions plugin, as long as the permissions plugin can interact with Vault.
Local Chat
When you send a message in the local chat, it will be shown like this: Example with and without a group prefix.
In case that there is no one in the local chat block radius:
If you want to change the block radius:
Go to the folder SimpleChat that will be generated in your plugins folder when you run the plugin for the first time, and open the config.yml file with any text editor.
Once you are inside the config.yml folder, just change the value to the one you want (the default value is 25)
Global Chat
When you send a message in the global chat (using the command: /g), it will be sent like this: Example with and without a group prefix.
Colored messages and formatting
You can color and format your messages
Example:
- &aSim&2pl&9eC&3hat v.&61.1
- /g &aSim&2pl&9eC&3hat v.&61.1
All colors and formatting available
- &k: random symbols, letters and numbers
- &r: reset formatting/color
- &l: bold
- &o: italic
- &n: underline
- &m: crossed out