Описание плагина:
Плагин на /gps /near с FunTimeКонфигурация плагина:
YAML:
# Сообщения для команды /gps
messages:
hold_compass: "&cПожалуйста, держите компас в главной руке!"
incorrect_usage: "&cИспользование: /gps <x> <y> <z>"
successful_use: "&aЦель компаса успешно установлена на координаты: &e%x% %y% %z%"
invalid_coordinates: "&cНеверные координаты! Убедитесь, что вы вводите числа."
no_permission: "&cУ вас нет прав на использование этой команды!"
# Сообщения для команды /near
near_no_permission: "&cУ вас нет доступа к команде /near!"
near_max_radius: "&cМаксимальный радиус для вас: &e%radius% &cблоков!"
near_invalid_radius: "&cРадиус должен быть положительным числом!"
near_no_players: "&eВ радиусе &6%radius% &eблоков никого нет."
near_header: "&aИгроки рядом (радиус: &e%radius% &aблоков):"
# Настройки по умолчанию
defaults:
near_radius: 100разрешения можно изменить только если заходить в код плагина
if (player.hasPermission("gpneone.near.5000")) maxRadius = Math.max(maxRadius, 5000);
if (player.hasPermission("gpneone.near.2500")) maxRadius = Math.max(maxRadius, 2500);
if (player.hasPermission("gpneone.near.1000")) maxRadius = Math.max(maxRadius, 1000);
if (player.hasPermission("gpneone.near.500")) maxRadius = Math.max(maxRadius, 500);
if (player.hasPermission("gpneone.near.250")) maxRadius = Math.max(maxRadius, 250);
if (player.hasPermission("gpneone.near.100")) maxRadius = Math.max(maxRadius, 100);
// VIP пермишены (пример)
if (player.hasPermission("gpneone.near.vip3")) maxRadius = Math.max(maxRadius, 300);
if (player.hasPermission("gpneone.near.vip2")) maxRadius = Math.max(maxRadius, 200);
if (player.hasPermission("gpneone.near.vip1")) maxRadius = Math.max(maxRadius, 150);
// Админский пермишен (неограниченный радиус)
if (player.hasPermission("gpneone.near.*") || player.hasPermission("gpneone.admin")) {
return Integer.MAX_VALUE;
}