Coder Social home page Coder Social logo

simplechat's Introduction

SimpleChat v1.1

License: GPL v3 Spigot

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.

Imagem 1

In case that there is no one in the local chat block radius:

Imagem

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

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.

Imagem 2

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

Imagem Imagem

All colors and formatting available

Imagem 4

  • &k: random symbols, letters and numbers
  • &r: reset formatting/color
  • &l: bold
  • &o: italic
  • &n: underline
  • &m: crossed out

simplechat's People

Contributors

willperes avatar

Watchers

 avatar

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.