Galaxy Utils
Animal Growth, Economy, and more! Galaxy Utils adds some features for servers that are missing in Early Access.
Описание
Galaxy Utils
Galaxy Utils - это плагин, который стремится добавить функции качества жизни для серверов, которых у Hytale еще нет из-за раннего доступа.
Текущие характеристики включают:
Недостающие рецепты
- Поддержка рабочего стола строителя для преобразования всех плит обратно в блоки по стоимости 2 плит -> 1 квартал!
Рост животных
Все младенческие животные теперь вырастут во взрослые варианты. Это полностью настраивается, от времени, необходимого для каждого животного, чтобы вырасти до животного, в которое они растут. Вы даже можете добавить животных, если вы хотите несколько сумасшедших комбинаций. Время по умолчанию для каждого животного составляет 1200 клещей (60 секунд).
Экономика
Этот плагин добавляет полностью функционирующую экономику. Это позволяет пользователям зарабатывать деньги, продавая предметы, которые затем могут быть отправлены другим игрокам для торговли. Это полностью настраивается, и плагин в настоящее время имеет предустановленные поддерживаемые значения для каждого элемента.
Это включает в себя новый хранилище Блок, изготовленный из 15 железных слитков, 5 золотых и 5 серебряных слитков. Взаимодействие с блоком Vault при хранении товара будет продаваться за деньги.
командование:
Экономическая ценность Дает вам ценность предмета в вашей руке.
Экономика Бал / Баланс - Скажи, сколько у тебя денег. По желанию вы можете проверить баланс других игроков. /econom Balance — игрок
/economy pay <player> Отправляет деньги с вашего баланса другому игроку.
/economy give <player> <amount> - Требуется разрешение оператора. Он даст игроку деньги.
/economy remove <player> <amount> - Требуется разрешение оператора. Удалить деньги у игрока.
/economy set <player> <amount> - Требуется разрешение оператора. Устанавливает деньги игрока на данную сумму.
Для разработчиков
Проникновение в экономическую систему из других плагинов очень быстро и легко. Ниже приведен пример плагина, который реализует давать Деньги метод.
Общественный класс MyPlugin {
Публичная пустота дает Деньги (PluginBase self, UUID target, двойная сумма)
// Получите GalaxyUtils от менеджера плагинов
GalaxyUtils galaxyUtils = self.getPluginManager().getPlugin(GalaxyUtils.class);
если (galaxyUtils == null)
// Галактика Утилиты не загружены
вернуться;
?
EconomyService economy = galaxyUtils.getEconomyService();
если (экономика == нуль)
// Экономика недоступна (не должно произойти, если GalaxyUtils инициализирован)
вернуться;
?
economy.addBalance (цель, сумма);
?
Публичная струна GetFormatted Баланс (PluginBase self, PlayerRef player) {
GalaxyUtils galaxyUtils = self.getPluginManager().getPlugin(GalaxyUtils.class);
если (galaxyUtils == null | | galaxyUtils.getEconomyService() == null)
Возвращение "N/A";
?
Двойной баланс = galaxyUtils.getEconomyService().getBalance(player.getUuid());
вернуть galaxyUtils.getEconomyService(.format(баланс);
?
?
Хранение данных
Галактика Utils включает в себя систему хранения данных, которую можно подключать к другим плагинам. В конфигурации есть настройка параметров по умолчанию, которая позволит вам настроить значения данных по умолчанию, такие как баланс экономики. Все данные хранятся в формате json для каждого пользователя. Пример:
{
"Игроки": {
"4320d64d-c601-4f5d-9160-79380afd7145":
"значения": {
"экономика.баланс": 120.39999999999999
?
?
?
?
Хотите поддержать меня и мои проекты? Используйте мой код.Галактика"в BisectHosting, чтобы получить 25% с вашего первого сервера Hytale!
Показать оригинальное описание (English)
Galaxy Utils
Galaxy Utils is a utility plugin that aims to add in quality of life features for servers that Hytale does not yet have due to being in Early Access.
Current features include:
Missing Recipes 🔨
- Support for the builder's workbench to convert all slabs back into blocks at the cost of 2 slabs -> 1 block!
Animal Growth 🐮
All baby animals will now grow into adult variants. This is completely configurable, from the time it takes for each animal to grow to the animal they grow into. You can even add animals if you want some crazy combinations. The default time for each animal is 1200 ticks (60 seconds).
Economy 💰
This plugin adds a fully functioning economy. This allows users to make money by selling items, which can then be sent to other players for trading! This is completely configurable, and the plugin currently has preset supported values for every item.
This includes the new Vault block, craftable with 15 Iron Ingots, 5 Gold Ingots, and 5 Silver Ingots. Interacting with the Vault block while holding an item will sell it for money.
Commands:
/economy value - Gives you the value of the item in your hand.
/economy bal/balance - Tells you how much money you have. Optionally, you can check other players' balances with /economy balance --player <player>
/economy pay <player> - Sends money from your balance to another player.
/economy give <player> <amount> - Requires operator permissions. Will give a player money.
/economy remove <player> <amount> - Requires operator permissions. Removes money from a player.
/economy set <player> <amount> - Requires operator permissions. Sets a player's money to the given amount.
For Developers
Hooking into the economy system from other plugins is super quick and easy. Below is an example plugin that implements a giveMoney method.
public class MyPlugin {
public void giveMoney(PluginBase self, UUID target, double amount) {
// Get GalaxyUtils from the plugin manager
GalaxyUtils galaxyUtils = self.getPluginManager().getPlugin(GalaxyUtils.class);
if (galaxyUtils == null) {
// GalaxyUtils not loaded
return;
}
EconomyService economy = galaxyUtils.getEconomyService();
if (economy == null) {
// Economy not available (shouldn’t happen if GalaxyUtils initialized)
return;
}
economy.addBalance(target, amount);
}
public String getFormattedBalance(PluginBase self, PlayerRef player) {
GalaxyUtils galaxyUtils = self.getPluginManager().getPlugin(GalaxyUtils.class);
if (galaxyUtils == null || galaxyUtils.getEconomyService() == null) {
return "N/A";
}
double balance = galaxyUtils.getEconomyService().getBalance(player.getUuid());
return galaxyUtils.getEconomyService().format(balance);
}
}
Data Storage 💾
Galaxy Utils includes a data storage system that can be tapped into by other plugins. In the config, there's a defaultValues setup that will let you set up default data values, such as economy balance. All data is stored in a json format per user. Example:
{
"players": {
"4320d64d-c601-4f5d-9160-79380afd7145": {
"values": {
"economy.balance": 120.39999999999999
}
}
}
}
Wanna support me and my projects? Use my Code "Galaxy" at BisectHosting to get 25% off of your first Hytale server!
Информация
Авторы:
Категории:
Версии игры:
Создан: 18.01.2026
