Перейти к содержимому
Mineforgian

Leaf

Friends | StaffChat | StaffList | and more!

Загрузки
3K
Подписчики
18
Обновлён
11 июня 2024 г.
Лицензия
Apache-2.0

Опубликован 19 марта 2023 г.

Features

Overview

You get to decide what you want on your proxy!

  • Simply add configuration to add your own custom commands.
  • And remove configuration to remove un-used commands.
  • Organise the configuration with multiple directories and files!
  • Create your own proxy commands.
  • Create multiple staff chats and player chats.
  • Create GUI's.
  • Load balancing.
  • Utility commands.
  • Global messaging.
  • Global session history.
  • and more!

Commands

  • This plugin adds the ability to create your own proxy commands that players can use on your network.
  • When creating a command in the configuration file, you can choose from many different types that have different functions.
  • You can delete any command in the configuration file and it will be removed from the server.
  • You can have multiple commands with the same type as long as the identifier is different.
  • The reload command lets you reload all the commands so you don't have to restart the server.

Command Example

# The commands identifier.
info:
  # The type of command.
  type: "info"
  # If the command is enabled.
  enabled: true
  # The command name. 
  # In this instance it will let you do /leaf.
  name: "leaf"
  # The message sent to the player when they run the command.
  message:
    - "&8&m&l-------&r &a&lLeaf &8&m&l-------"
    - "&7"
    - "&7Velocity Proxy Plugin"
    - "&7Version &f<version>"
    - "&7Author &fSmudge"
    - "&7"
    - "&8&m&l--------------------"
Command Type Usage Description
message [name] [player] [message] Used to message a player.
reply /[name] [message] Used to reply to the last message.
ignore /[name] [player] Used to ignore a player.
unignore /[name] [player] Used to unignore a player.
ignorelist /[name] Used to list the ignored players.
togglemessages /[name] Used to toggle your messages.
togglespy /[name] Used to toggle veiwing other players messages.
messagehistory /[name] [query] Similar to core protect, it lets you see player's message history.
alert /[name] [message] Used to send a message to everyone on the server.
alertraw /[name] [json] Used to send a json message to everyone on the server. Simular to /tellraw
chat /[name] [message] Used to send a message to a chat.
find /[name] [player] Used to get infomation about an online player.
history /[name] [player] Used to get global session history about a player from the database.
info /[name] Displays a message to the player.
inventory /[name] Displays a inventory to the player.
join /[name] Sends a player to a server.
list /[name] Displays a list of players that are online. This could be a staff list.
reload /[name] Reloads the entire plugin. Configuration, commands, events, placeholders and variables.
report /[name] Send a message to a group of players. Commonly used to report bugs to staff. Simular to /helpop
send /[name] [from] [to] Send a group of players to a server.
servers /[name] Displays a list of online servers and the amount of players online.
teleport /[name] [player] Teleport to the server a player is on.
variable /[name] [value] Set the value of a variable. You can set options for players to pick from.

And more! All command types are listed in the wiki. If you have any suggestions, feel free to create a feature request in the GitHub issues page or message me directly in the discord.

Events

You can create custom events. Currently there is only a option for when a player joins the proxy. This allows you to do load balancing, and send players to the server with the least amount of players on.


load_balancing:
  # The type of event.
  type: "playerjoin"
  # Used to enable and disable the event.
  # Defaults to true.
  enabled: false
  # Add commands to be run.
  commands:
  - "leaf"
  # Add servers to be sent to.
  # If more than 1 server is stated the player will
  # go to the server with the least amount of players
  servers:
  - "hub1"
  - "hub2"

Placeholders

You can create your own conditional placeholders that you can use elsewhere in the plugin.

  • Placeholders will not work outside the plugin. Example of a vanish placeholder
vanish_colour:
  condition: "MATCH:<vanished>"
  options:
    true: "&#c0fce6"
    false: "&#ffffee"

Variables

When the database is enabled, you can use variables to store data for each player. When you have created a variable in the configuration, you can then create a command for players to set the variable. This enables you to used the variable as a placeholder in other commands and inventories. Example

# The variable identifier.
# Example: <theme> will return the string data that is set for the player.
theme:
  # The default value if the variable is not set.
  default: "green"

BStats

Ченджлог

5.2.2Релиз1.20.4, 1.20.5, 1.20.6 · 11 июня 2024 г.

SQLITE Database Fix

5.2.1Релиз1.20.4, 1.20.5, 1.20.6 · 8 июня 2024 г.

Database Fixes

5.2.0Релиз1.20.4, 1.20.5, 1.20.6 · 6 июня 2024 г.
  • Fixed MySQL issues.
  • Decreased file size.
  • Added cooldown option to Discord and Minecraft commands.
4.4.0Релиз1.20, 1.20.1, 1.20.2 · 29 ноября 2023 г.
  • Added argument options for info command type.
  • Added option to use legacy hex in messages.
  • Hardcoded inventory items to not be italic (Could not figure out how to do it by default).
  • Mini Placeholders support added by @CoolDCB.
  • Discord commands are now removed on reload and restarts.
  • Server restarts should now trigger the switch event instead of the join event.
  • Added discord option for webhooks and commands to delete the message after a specified time.
  • Added option to check arguments for permissions in command command type.
  • Added discord command option to check if it should only be executed by specific members.
  • Added option to require arguments with command command type.
  • Some improvements by @4drian3d

Installing

How to install

  • Download the Leaf-4.4.0.jar and drag it into your proxy server's plugin folder.
  • Restart the server.

Optional dependencies https://builtbybit.com/resources/leaf-velocity-plugin.26200/field?field=dependencies https://modrinth.com/plugin/miniplaceholders

For admins updating from 2.X See version 3.0.0 for migration details from 2.X to 3.X

4.3.0Релиз1.20, 1.20.1, 1.20.2 · 22 октября 2023 г.
- Added option to limit the amount of times you can execute a command.
- Added a option to check for discord roles on events and commands.
- Updated the discord dependency.
- Added option to see the console when running command command type in discord.

Installing

How to install

  • Download the Leaf-4.3.0.jar and drag it into your proxy server's plugin folder.
  • Restart the server.

Optional dependencies https://builtbybit.com/resources/leaf-velocity-plugin.26200/field?field=dependencies

For admins updating from 2.X See version 3.0.0 for migration details from 2.X to 3.X

4.1.0Релиз1.20, 1.20.1, 1.20.2 · 14 октября 2023 г.
- Added the "command" command type.

Example

findoverride:
  name: "findoverride"
  permission: "leaf.find"
  suggestions:
    names: "%database_players%"
  commands:
    - "find %argument_1%"

Installing

How to install

  • Download the Leaf-4.2.0.jar and drag it into your proxy server's plugin folder.
  • Restart the server.

Optional dependencies https://builtbybit.com/resources/leaf-velocity-plugin.26200/field?field=dependencies

For admins updating from 2.X See version 3.0.0 for migration details from 2.X to 3.X

4.1.0Релиз1.20, 1.20.1, 1.20.2 · 28 сентября 2023 г.
- Added a way to run any command on the proxy.
- Added a way to run console proxy commands.
- Added a way to run a command as an operator.

Installing

How to install

  • Download the Leaf-4.1.0.jar and drag it into your proxy server's plugin folder.
  • Restart the server.

Optional dependencies https://builtbybit.com/resources/leaf-velocity-plugin.26200/field?field=dependencies

For admins updating from 2.X See version 3.0.0 for migration details from 2.X to 3.X

4.0.0Релиз1.19.4, 1.20, 1.20.1 · 13 сентября 2023 г.
- Added support for a discord bot. (You can add the bot by adding the token to the config.yml)
- Added discord support for Find.
- Added discord support for List.
- Added discord support for Chat.
- Added discord support for Servers.
- Added discord support for Info.
- Added new event discordmessage

Visit the wiki for more information!

Why is the file size so large? The dependencies used have to be shaded and they take up a lot of space: Discord Support ~10mib Database Support ~10mib

Installing

How to install

  • Download the Leaf-4.0.0.jar and drag it into your proxy server's plugin folder.
  • Restart the server.

Optional dependencies https://builtbybit.com/resources/leaf-velocity-plugin.26200/field?field=dependencies

For admins updating from 2.X See version 3.0.0 for migration details from 2.X to 3.X

Комментарии

Загружаем…