Flectone Logo FlectonePulse

/geolocate

Command for tracking IP address and getting player information

command geolocate


🌍 Localization

Path localizations → language.yml → command.geolocate
geolocate:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>This player does not exist"
  null_or_error: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Problem receiving information, try again"
  format: "<fcolor:1>Geolocation for <target><br>Country: <fcolor:2><country><br><fcolor:1>Region: <fcolor:2><region_name><br><fcolor:1>City: <fcolor:2><city><br><fcolor:1>Timezone: <fcolor:2><timezone><br><fcolor:1>Current time (UTC): <fcolor:2><current_time><br><fcolor:1>Mobile connection: <fcolor:2><mobile><br><fcolor:1>VPN: <fcolor:2><proxy><br><fcolor:1>Hosting: <fcolor:2><hosting><br><fcolor:1>IP: <fcolor:2><query>"
geolocate:
  null_player: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Игрок не найден"
  null_or_error: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Ошибка, попробуй чуть позже"
  format: "<fcolor:1>Геолокация <target><br>Страна: <fcolor:2><country><br><fcolor:1>Регион: <fcolor:2><region_name><br><fcolor:1>Город: <fcolor:2><city><br><fcolor:1>Часовой пояс: <fcolor:2><timezone><br><fcolor:1>Текущее время (UTC): <fcolor:2><current_time><br><fcolor:1>Мобильный интернет? <fcolor:2><mobile><br><fcolor:1>ВПН? <fcolor:2><proxy><br><fcolor:1>Хостинг? <fcolor:2><hosting><br><fcolor:1>Айпи: <fcolor:2><query>"

null_player

Message if the entered player is not found

null_or_error

Message if an error occurred while retrieving information

format

The format of the message that will be sent


⚙️ Setting

Path command.yml → geolocate
geolocate:
  enable: true
  suggest_offline_players: true
  aliases:
  - "geolocate"
  destination:
    type: "CHAT"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

suggest_offline_players

If enabled, suggests nicknames of all players who have been on the server; otherwise, only nicknames of players who are currently online.

Information

This only affects the text suggestion.

aliases

A list of aliases for using the command

ALIASES CAN BE ANYTHING

For example newcommand, newcommand_ru, ban, me etc.

destination

Where the message will be sent

TypeExplanationRequires additional configuration?
ACTION_BARMessage above the player's inventoryYes
BOSS_BARMessage at the top of the screenYes
BRANDMessage in F3No
CHATMessage in chatNo
TEXT_SCREENMessage anywhere on the screenYes
TITLEFull-screen messageYes
SUBTITLEFull-screen message (bottom line)Yes
TAB_HEADERMessage in TAB (top)No
TAB_FOOTERMessage in TAB (bottom)No
TOASTMessage in the top right corner (achievement)Yes

cooldown

Usage delay

sound

Sound playback


🔐 Permissions

Path permission.yml → command.geolocate
geolocate:
  name: "flectonepulse.module.command.geolocate"
  type: "OP"
  cooldown_bypass:
    name: "flectonepulse.module.command.geolocate.cooldown.bypass"
    type: "OP"
  sound:
    name: "flectonepulse.module.command.geolocate.sound"
    type: "TRUE"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to NON-operators of the server

cooldown_bypass

Permission to ignore the cooldown between uses

sound

Permission to use the sound

Last updated on

Edit on GitHub

On this page

Authors of page