Commands
One root command, four subcommands. georestrict.admin permission on all of them.
/georestrict
No args. Prints the version and a link.
/georestrict
# → GeoRestrict v2.0.0
# By Demonz Development
# https://demonzdevelopment.online/
/georestrict check <ip|player>
Checks an IP or online player's address and shows the rule outcome. A fresh cached result is reused; otherwise the normal gateway path runs and stores the new result.
/georestrict check 8.8.8.8
/georestrict check Notch
# → Checking IP: 8.8.8.8...
# Result for 8.8.8.8:
# Allowed: Yes
# Country: US
# ASN: AS15169
# ISP: GOOGLE
If you pass a player name and they're online, the plugin grabs their actual connection IP. Otherwise the argument is treated as a literal IP string.
/georestrict purgecache
Drops the in-memory cache and deletes geo_cache.json. The next connection will hit the Worker again. Useful when you've changed vpnKeywords or the Worker is misbehaving and you want to flush stale entries.
/georestrict cachestats
Prints entry count, file size, and the age of the oldest entry.
/georestrict cachestats
# → GeoRestrict Cache Stats
# Entries: 4123
# File size: 482.31 KB
# Oldest entry: 12d 4h ago
/georestrict reload
Re-reads config.yml from disk and swaps it in live. No restart, no reconnect. Safe to run while players are online.
Permissions
| Permission | Default | What it does |
|---|---|---|
georestrict.admin | op | All subcommands. |
georestrict.bypass | false | Skip the country/ASN/VPN decision on Bukkit backends. Bungee/Velocity cannot resolve backend permissions during proxy login. |