Filled Country Channels ( Chat )

Discussion in 'Archived: Plugin Requests' started by hunajameloni, Mar 13, 2014.

  1. Offline

    hunajameloni

    Plugin category: Chat

    Suggested name: CountryChat/FlagChat

    What I want: I have seen this kind of plugin in some Counter-Strike servers.
    When you join and you will get automatically moved to channel with your language.
    I wonder if this could be done in minecraft?

    E.g I am joining into Minecraft Server with this plugin. The plugin detects that I am Finnish and moves me to Finnish Channel.
    Countries I want to detect: ( If you are like from Russia you will get moved to English channel. )
    Finland
    England
    Sweden

    If you know how to speak English/Finnish/Swedish you can move between channels
    with /chat join England/Finland/Sweden

    Ideas for commands: /chat join {CHANNEL} | /Chat move {channel} {player}

    Ideas for permissions: chat.join - /chat join
    chat.move.others - /chat move {CHANNEL} {PLAYER}

    When I'd like it by: You choose ;)
    timtower
    I would like to hear your opinion? Is this possible in Minecraft?
     
  2. Offline

    Onlineids

    How would you get where the player was from?
     
  3. Offline

    Twisted_Panda

    It's possible but they would need to put what location they're from.
     
  4. Online

    timtower Administrator Administrator Moderator

    hunajameloni Possible, getting the country is the hardest part.
     
  5. Offline

    hunajameloni

    Onlineids Twisted_Panda timtower
    We just need to find out how to track the country.
    Maybe something with IP address?

    When you install Essentials it detects the host ip and changes locale to that country.
    Like when I use essentials on my test server ( Self-Hosted ) all chat messages are in Finnish.
    and when I use essentials on my server hosted by company all chat messages are in English.
    How they do that?
     
  6. Offline

    Twisted_Panda

    You forgot about people who use VPNS, I can do this plugin but i'm unsure on how to track there location.
     
  7. Offline

    hunajameloni

    If the player "Doesn't" have country, plugin moves the person into English channel.
    If it detects Finnish/Swedish people, plugin moves them to Finnish/Swedish channel.
     
  8. Offline

    Twisted_Panda

    If they don't have a country, wouldn't they be dead :confused: or be living in the ocean?
     
    _KoGuT_ likes this.
  9. Offline

    hunajameloni

    "Doesn't"
    ( I mean the plugin can't detect. )
     
  10. Online

    timtower Administrator Administrator Moderator

    hunajameloni Why not get a plugin without the auto-detect first?
     
  11. Offline

    TopTobster5

    hunajameloni Twisted_Panda You could get them to put in what country they are from when they first join and perhaps that is saved to a file so they don't have to type it in every time they join?
     
  12. Offline

    Twisted_Panda

    Working on the plugin, busy coding for servers so it might take me a bit.
     
  13. Offline

    hunajameloni

  14. Offline

    Twisted_Panda

  15. Offline

    Carnivore

    [​IMG]

    I made the plugin. You may download it at : https://www.dropbox.com/s/222oki5t7naspvp/FlagChat.zip

    Quick bullet points :
    • The commands are "/chatjoin [channel]" and "/chatmove [player] [channel]".
    • The perms are chat.join and chat.move.
    • It uses org.json, I made a bukkit wrapper for it so make sure the two jars in the zip file are in the plugins folder.
    • Countries with spaces like "United States" are renamed to "United_States".
    • It goes through http://freegeoip.net/json/ to find an IP's country, so if that website is down, everyone is in Error channel.
    • Credits to top response of http://stackoverflow.com/questions/4308554/simplest-way-to-read-json-from-a-url-in-java
    • There are no features you didn't ask for.
    Rawr! :D
     
    hunajameloni likes this.
  16. Offline

    hunajameloni

    Carnivore
    Wow you are fast :eek: gonna dowload it tomorrow. Now ill go bed
    timtower
    Look how fast he was
     
  17. Offline

    Twisted_Panda

    =(
     
  18. Offline

    hunajameloni

    Got error when tried to enter your dropbox link
     
  19. Offline

    hunajameloni

    Twisted_Panda
    The lion guy isnt answering so I might need your help.
    Add the thing that asks for your country and maybe Tab would show only players who are in same channel as you?
     
  20. Online

    timtower Administrator Administrator Moderator

  21. Offline

    Brixishuge

  22. Offline

    Carnivore

    I don't understand what you're trying to convey. The download link works fine for me, as much as the plugin does. Telling me what error you're encountering in the first place would allow me to fix it.
     
  23. Offline

    hunajameloni

    Carnivore
    It didnt let me see or download it
    But now I can see it :)
     

Share This Page