Class SessionAccount
java.lang.Object
privbot.hooks.SessionAccount
Which account the per-session game memory (the manual-click log and the last-seen bank) belongs to. Both are JVM-wide
and survive a logout, so a second account logged into the same client would otherwise be shown the first one's
clicks and bank. PrivBot reports the logged-in player's name here on every game tick (and AI Builder at query
time); when it differs from the last one seen, both are cleared.
A null or blank name (logged out, loading) changes nothing: the next account's first sighting clears, and the
same account logging back in keeps its own data. JVM-wide in javax.swing.UIManager under KEY
(a String), so every shared-lib copy agrees. Never throws.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanThe logged-in player's name as the feeder reads it.static voidTest hook: forgets the account.
-
Method Details
-
note
The logged-in player's name as the feeder reads it. Returns true when it named a different account than the last one seen, and the session memory was cleared. -
resetForTest
public static void resetForTest()Test hook: forgets the account.
-