1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Pin IP & Multigroup

Discussion in 'Plugin Suggestions' started by Antagonist, Jun 18, 2013.

  1. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    I have two concepts that I really wish were possible, I'm not sure if they're possible via a plugin but I have to ask.

    The first is a command that can add a character's IP address to the IP field of their account in the database. This means if they are put to a group that has no permissions (as a punishment) they can't try to make another account, because they're automatically forced into their bad group. I much rather making people a bad rank than banning. I realise people would just change their IP, but I've found that if you don't ban them they don't change their IP because they can still interact and stuff, so this would make it possible for admins to force people into accounts too.
    "/pinIP {player}" "/ipaccount {ip} {account}" "/clearip {account}" I think those are self explanatory

    The next one is for it to be possible for a user to appear to be in two groups. Say if theres a command that's different to the group add command that adds another group to their account, and then they have the permissions and prefixes of both of those groups. It would mean you could have a combination of any two of things like ranks, classes, factions, clans, maybe even a character's level using ServerEPRSystem, you could level up from PvE (if you're wondering how you'd make it change the secondary group, you could just make a player's level the primary group instead, and then you could change their secondary group to make them a certain class)
    Example, you could quite easily set up systems like these:
    (Thief)[Lv: 3] RandomGuy: Hi!
    (New Player)(The Destroyers) RandomGuy: Hi
    (Horde)(Paladin) Leeroy: Chicken!
    I mean, those are just off the top of my head


    I understand if these aren't possible, I just have to throw my ideas out there since I can't try it myself. Thanks :rolleyes:
     
  2. Loganizer

    Plugin Developer

    Joined:
    Dec 2, 2012
    Messages:
    212
    the IP thing is possible, I was thinking of something like that the other day lol
    Well that group thing I have no idea about. Although it seems possible, see if another developer knows.
     
  3. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
  4. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    644
    My WoW knowledge is rather little, but isn't it impossible to be a part of the Horde and be a Paladin?

    Anyway, the groups system is built into TShock and would take some editing of TShock to get to happen. It could even possibly break certain features like the /tempgroup command.

    Maybe a plugin could have its own group system and supplement TShock's, but that seems a little redundant.
     
  5. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    No! I swear I can remember being a Tauren Paladin at one point :p and thanks for the feedback
     
  6. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Heh.. I implemented an internal code storage version of the IP system you suggested a few days ago. Don't use it though, 'cos internal and all.
    Basically, I defined player (x) in my code. If x joins, it gets their IP and kicks them. It then kicks by name or IP 3 times before finally banning.
    Would be fairly easy to work that with groups, and add functionality, although I have 9001 other plugins that I need to do stuff with first >_<
     
  7. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    That is the only way to go about this idea. You would just need a plugin that has a second group system, and override things such as onchat, but for permissions, a lot of work would be needed to be done. Sadly White is the only plugin dev (trololool) around anymore.
     
    • Like Like x 1
  8. Snirk Immington

    Snirk Immington Level 9

    Joined:
    Jan 12, 2012
    Messages:
    378
    Am I the only one here to point out that the color scheme you have going is impossible on a non-modded Terraria client?
     
    • Like Like x 1
  9. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    Terraria has colors?
     
  10. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    I feel so alone.
     
  11. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    Ah lines can only be one solid color I'm guessing
     
    • Like Like x 1
  12. ShadowDX

    ShadowDX Level 1

    Joined:
    Jun 20, 2012
    Messages:
    11
    Wouldn't it be easier to make just additional set of groups in sqlite tables?
    So instead of using 2 groups from one set, there would be created 2nd set, that would be copied from the first one? I suppose that might prevent some issues, would also be usefull with clans aand teams.

    About lines: There might be a chance to make it show text on a ... umm "higher layer". I guess it isn't impossible to make it work.