Is there a plugin which can automate the whitelist? (Subscription based server)q

Discussion in 'Spigot Plugin Help' started by TheUltrux, Jan 23, 2020.

  1. Hey Everyone,

    I am currently experimenting with a few ideas for servers and one of the ideas is a subscription model. Yes I know it may not be popular but it is an idea that I have had.

    I've been browsing through the internet and I can't seem to find a plugin which can automate the process. Like for example, if someone buys a subscription from CraftingStore or TebEx or even through my own frontend. The server will automatically whitelist them for 1/3/6/12 months so after that time, they cannot join as they will have been removed from the whitelist.

    Basically what I am looking for is a whitelisting plugin that allows for timed expiry as I can deal with the automation of adding players to the whitelist.

    Any help is greatly appreciated.

    Kind regards,

    Isaiah
     
  2. I don't know any plugin like that, but if I'm not mistaken, online stores such as buy craft allows you to run a command when buying something from the shop. You, can download a plugin which add and remove people from the whitelist and run the said command when someone buys the ranks, of course you will also need to reload your whitelist file, so they can join.
     
  3. You could try something like this maybe.
    https://www.spigotmc.org/resources/quickwhitelist.54480/
     
  4. If you have a permissions plugin that allows for timed permissions I could quickly slap a plugin together for you that checks for x permission on join and either lets you in or kicks you out.

    Send me a PM here if you're interested.
     
  5. For anyone needing something like this I've put together a small plugin, pretty much checks if the player has a specific permission (configured inside config.yml) on join, if they don't - the commands inside the configuration will run (kick commands and anything else you may want). For this to work like a subscription system you need a separate permissions plugin that supports timed permissions.

    Commands: /joinpermission reload
    Permissions: jp.reload

    https://www.dropbox.com/s/93m44c4eiq80c89/JoinPermission.jar?dl=0

    Code (YAML):
    # JoinPermission, a project by Norska. https://norska.dev
    # You can find more resources of mine here: https://norska.dev/spigotresources & https://norska.dev/mcmarketresources
    # Support Discord: https://norska.dev/discord

    settings
    :
       permissionToJoin
    : "server.donator"
       kickCommands
    :
      - 'kick $player To play you must purchase a subscription!'
     
  6. I think you can do that with tebex. There's an option for expiry commands and setting the type of the purchase to something else instead of One-Off. hopefully this helps