Skip to content

ForceSingleSession not work #3114

Description

@WindsorMacmillan

What behaviour is observed?

When a player has already logged in the server, any new log-in request from a different IP should be rejected.

Expected behaviour

Player was forced to be disconnected and message shows: "Logged in from another Location".

Image

To Reproduce

  1. Install the plugin on a Folia 26.2 server.
  2. Set settings.restrictions.ForceSingleSession to true.
  3. Log in an account with IP A.
  4. Try to use a same account and connect to the server with IP B.
  5. Account in IP B joined the server, while IP A dissconnected with "Logged in from another Location".

Some of the log:

  11372,53: [14:49:21] [Folia Region Scheduler Thread #3/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11373,54: [14:49:22] [Folia Region Scheduler Thread #10/INFO]: SpriteQAQ[/113.***.***.***:2707] logged in with entity id 7947313 at ([minecraft:overworld]-5859.181925531193, -59.0, 4881.699999988079)
  11374,83: [14:49:22] [Folia Region Scheduler Thread #2/INFO]: [CarpetServerProtocol] Player SpriteQAQ joined with carpet 26.2+v260616
  11375,64: [14:49:37] [Folia Async Scheduler Thread #3003/INFO]: [AuthMe] SpriteQAQ logged in 113.***.***.***
  11376,58: [14:49:37] [Folia Region Scheduler Thread #11/INFO]: [喵] SpriteQAQ 加入了喵
  11377,59: [14:49:41] [User Authenticator #257/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11378,53: [14:49:41] [Folia Region Scheduler Thread #5/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11379,54: [14:49:42] [Folia Region Scheduler Thread #11/INFO]: SpriteQAQ[/220.***.***.***:58970] logged in with entity id 7967879 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.300000011921)
  11380,59: [14:49:43] [User Authenticator #258/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11381,54: [14:49:43] [Folia Region Scheduler Thread #10/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11382,53: [14:49:43] [Folia Region Scheduler Thread #8/INFO]: SpriteQAQ[/113.***.***.***:2719] logged in with entity id 7969766 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.300000011921)
  11385,84: [14:49:44] [Folia Region Scheduler Thread #10/INFO]: [CarpetServerProtocol] Player SpriteQAQ joined with carpet 26.2+v260616
  11386,64: [14:49:48] [Folia Async Scheduler Thread #3003/INFO]: [AuthMe] SpriteQAQ logged in 113.***.***.***
  11387,57: [14:49:48] [Folia Region Scheduler Thread #7/INFO]: [喵] SpriteQAQ 加入了喵
  11388,59: [14:49:53] [User Authenticator #259/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11389,53: [14:49:53] [Folia Region Scheduler Thread #0/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11390,53: [14:49:55] [Folia Region Scheduler Thread #6/INFO]: SpriteQAQ[/220.***.***.***:57381] logged in with entity id 7980712 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.302283127694)
  11391,59: [14:49:55] [User Authenticator #260/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11392,53: [14:49:55] [Folia Region Scheduler Thread #6/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11393,53: [14:49:56] [Folia Region Scheduler Thread #1/INFO]: SpriteQAQ[/113.***.***.***:2721] logged in with entity id 7982554 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.302283127694)
  11394,83: [14:49:56] [Folia Region Scheduler Thread #6/INFO]: [CarpetServerProtocol] Player SpriteQAQ joined with carpet 26.2+v260616
  11395,59: [14:50:08] [User Authenticator #261/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11396,53: [14:50:08] [Folia Region Scheduler Thread #4/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11397,53: [14:50:09] [Folia Region Scheduler Thread #2/INFO]: SpriteQAQ[/220.***.***.***:48813] logged in with entity id 7995633 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.302283127694)
  11398,59: [14:50:09] [User Authenticator #262/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11399,53: [14:50:09] [Folia Region Scheduler Thread #1/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11400,53: [14:50:10] [Folia Region Scheduler Thread #2/INFO]: SpriteQAQ[/113.***.***.***:2762] logged in with entity id 7997367 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.302283127694)
  11401,83: [14:50:10] [Folia Region Scheduler Thread #9/INFO]: [CarpetServerProtocol] Player SpriteQAQ joined with carpet 26.2+v260616
  11402,53: [14:50:12] [Folia Region Scheduler Thread #5/INFO]: SpriteQAQ lost connection: 连接中断
  11410,59: [14:50:33] [User Authenticator #264/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11411,53: [14:50:34] [Folia Region Scheduler Thread #1/INFO]: SpriteQAQ[/220.***.***.***:32900] logged in with entity id 8022131 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.302283127694)
  11421,59: [14:51:29] [User Authenticator #265/INFO]: UUID of player SpriteQAQ is 4b91eb08-a377-3631-8631-ce274af11307
  11422,53: [14:51:29] [Folia Region Scheduler Thread #9/INFO]: SpriteQAQ lost connection: 你已在异地登录
  11423,53: [14:51:30] [Folia Region Scheduler Thread #5/INFO]: SpriteQAQ[/113.***.***.***:2816] logged in with entity id 8078820 at ([minecraft:overworld]-5860.050000011921, -59.0, 4880.302283127694)
  11424,84: [14:51:30] [Folia Region Scheduler Thread #10/INFO]: [CarpetServerProtocol] Player SpriteQAQ joined with carpet 26.2+v260616
  11427,64: [14:51:35] [Folia Async Scheduler Thread #3001/INFO]: [AuthMe] SpriteQAQ logged in 113.***.***.***
  11428,57: [14:51:35] [Folia Region Scheduler Thread #7/INFO]: [喵] SpriteQAQ 加入了喵

Plugin list

plugins
[15:58:09 INFO]: ℹ Server Plugins (64):
[15:58:09 INFO]: Paper Plugins (6):
[15:58:09 INFO]: - LogFilter, MeowsEnchants, Skyllia, SkylliaChallenge, VillagerLobotimizer, WanderingTrades
[15:58:09 INFO]: Bukkit Plugins (58):
[15:58:09 INFO]: - AuthMe, AxPlayerWarps, AxShulkers, BandwidthSaver-PE, best_auction, BestTools, CMI, CMIEInjector, CMILib, CommandAPI
[15:58:09 INFO]: Craftorithm, DeathPunish, Dropinfo, EnchantOverdrive, ESU, EvenMoreFish, fakeplayer, FlyWithFood, FuckCn2b2t, FXElevator
[15:58:09 INFO]: GlobalVillagerDiscounts, GrimAC, ImageMOTD, InteractiveChat, InvisibleFrames, IPDynamic, LiteAnnouncer, LiteSignIn, LuckPerms, MeowsMobs
[15:58:09 INFO]: NBTAPI, packetevents, PetPassenger, PlaceholderAPI, PlayerCrasher, PlayerTitle, ProtocolLib, QuickShop-Hikari, SearchContainer, SevenZipBackup
[15:58:09 INFO]: SimpleSpawn, SkinsRestorer, Sleeper, spark, SpeedLimiter, SweetAdaptiveShop, SweetMiao, TAB, TrChat, TreeCuter
[15:58:09 INFO]: TrMenu, Vault, ViaBackwards, ViaVersion, VoidGen, VoteBan, WorldEdit, WorldListTrashCan

Server Implementation

Standalone server (no proxy)

Database Implementation

SQLite

AuthMe Version

AuthMeReloaded v6.0.0 (build: 2734)

Error log (if applicable)

No response

Configuration

https://gist.github.com/WindsorMacmillan/ab13d97367b48d964f6a9e4697101f65

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions