Sueta
IP

IPChecker [1.7.x - 1.12.x]

1.0

Check countries or block them!

·Plugin

IPChecker
This Skript was made for owners whose want to block any country or enable only some country.
This Skript using API and json to check country and country code.

Requirements
- Permission plugin
- Skript
- SkUttilities
Installation
1. Download SkUttilities
2. download Skript
3. Put Skript into plugins/
4. Put SkUttilities into plugins/
5. Restart your server
6. Put downloaded file into plugins/Skript/scripts
7. Write /sk reload IPChecker
Configuration

At first you must select what do you want to use - Whitelist or blacklist.
If do you want to use blacklist, simple set "use" to "true" and add countrycodes into config!

ip:
  blacklist:
    use: 'true'
    countries:
    - AG
    - AU

If do you want to use whitelist, simple set "use" to "true" and add countrycodes into config! Dont forget do disable blacklist at first.

whitelist:
    use: 'true'
    countries:
    - AU
    - US
    - AG

Full config

ip:
  blacklist:
    use: 'true'
    countries:
    - AU
    - UK
  whitelist:
    use: 'false'
    countries:
    - US
message:
  not_whitelisted: §cYour country <country> is not whitelisted
  blacklisted: §cYour country <country> is blacklisted

Permissions

- ipchecker.bypass - bypass protection
- ipchecker.admin - allow player to do /ipchecker country <player> and /ipchecker reload

Commands

/ipchecker reload - reload config
/ipchecker country <player> - check country of player

Do you like this? Donate me!
Did you found any bug? report it to me!

Similar projects

Plugin →