Civcraft / PrisonPearl

Minecraft plugin for civcraft which allows players to imprison other players inside ender pearls
BSD 3-Clause "New" or "Revised" License
4 stars 16 forks source link

Alt-ban logging #33

Closed erocs closed 9 years ago

erocs commented 9 years ago

Add a log of the number of bans loaded in BanManager.loadBanJournal. Log a player's ban state as its seen by BanManager.onPlayerLogin.

jjj5311 commented 9 years ago

Do you want to log all players ban states? or only those who are banned

ttk2 commented 9 years ago

only those who are banned, all players is just too much

On Thu, Feb 26, 2015 at 7:22 AM jjj5311 notifications@github.com wrote:

Do you want to log all players ban states? or only those who are banned

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76176794.

erocs commented 9 years ago

Any player who logs in I'd like to get a status reported out of that async event for what decision it's making. We'd probably tone it down later.

Scenario, player logs in who should be alt banned but isn't denied and can play. Confirmed there are two pearls for other accounts on the alt list. The ban journal states the account is alt banned. Is there a login state other then allowed that let them on? Did the async event not finish fast enough to prevent the login? On Feb 26, 2015 7:05 AM, "ttk2" notifications@github.com wrote:

only those who are banned, all players is just too much

On Thu, Feb 26, 2015 at 7:22 AM jjj5311 notifications@github.com wrote:

Do you want to log all players ban states? or only those who are banned

— Reply to this email directly or view it on GitHub <https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76176794 .

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76193305.

jjj5311 commented 9 years ago

Hmmm... i came up with a little bit of logging but not sure if the way i am doing it is good and/or if this is the right info.

You can see it on my fix-33 branch

https://github.com/jjj5311/PrisonPearl/tree/fix-33

Here is the file outputs... is this what you want?

https://gist.github.com/jjj5311/8b693d8bad69c549dff9

erocs commented 9 years ago

You don't need to do all the file stuff. Just use PrisonPearlPlugin.log() to log the entries into the server log.

One thing I'm curious about. Are there other enum values that allow a login making this statement too permissive. if (event.getLoginResult() != AsyncPlayerPreLoginEvent.Result.ALLOWED)

The rest you've logged is good, Alt-ban state vs. game-ban state. We probably don't need to worry about ALLOW LOGIN and DENY LOGIN as we can figure that out from the two ban states.

On Thu, Feb 26, 2015 at 3:59 PM, jjj5311 notifications@github.com wrote:

Hmmm... i came up with a little bit of logging but not sure if the way i am doing it is good and/or if this is the right info.

You can see it on my fix-33 branch

https://github.com/jjj5311/PrisonPearl/tree/fix-33

Here is the file outputs... is this what you want?

https://gist.github.com/jjj5311/8b693d8bad69c549dff9

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76302288.

jjj5311 commented 9 years ago

Okay sounds good I should be able to do that a little later

On Thursday, February 26, 2015, erocs notifications@github.com wrote:

You don't need to do all the file stuff. Just use PrisonPearlPlugin.log() to log the entries into the server log.

One thing I'm curious about. Are there other enum values that allow a login making this statement too permissive. if (event.getLoginResult() != AsyncPlayerPreLoginEvent.Result.ALLOWED)

The rest you've logged is good, Alt-ban state vs. game-ban state. We probably don't need to worry about ALLOW LOGIN and DENY LOGIN as we can figure that out from the two ban states.

On Thu, Feb 26, 2015 at 3:59 PM, jjj5311 <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Hmmm... i came up with a little bit of logging but not sure if the way i am doing it is good and/or if this is the right info.

You can see it on my fix-33 branch

https://github.com/jjj5311/PrisonPearl/tree/fix-33

Here is the file outputs... is this what you want?

https://gist.github.com/jjj5311/8b693d8bad69c549dff9

— Reply to this email directly or view it on GitHub <https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76302288 .

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76307170.

erocs commented 9 years ago

Thanks! Ttk2 let's stage this.

Also aeecea62

ttk2 commented 9 years ago

stage the new jar or the version currently on Civtest?

On Sun, Mar 1, 2015 at 4:16 PM erocs notifications@github.com wrote:

Thanks! Ttk2 let's stage this.

Also aeecea6 https://github.com/Civcraft/PrisonPearl/commit/aeecea6228ac1079e1b29b4ffefe5f8d65434872

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76634517.

erocs commented 9 years ago

New jar to CivTest / CivCraft (if this is the only change that would be pushed to the main server)

On Sun, Mar 1, 2015 at 2:39 PM, ttk2 notifications@github.com wrote:

stage the new jar or the version currently on Civtest?

On Sun, Mar 1, 2015 at 4:16 PM erocs notifications@github.com wrote:

Thanks! Ttk2 let's stage this.

Also aeecea6 < https://github.com/Civcraft/PrisonPearl/commit/aeecea6228ac1079e1b29b4ffefe5f8d65434872

— Reply to this email directly or view it on GitHub <https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76634517 .

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76635729.

ttk2 commented 9 years ago

updated on civtest

On Sun, Mar 1, 2015 at 6:18 PM erocs notifications@github.com wrote:

New jar to CivTest / CivCraft (if this is the only change that would be pushed to the main server)

On Sun, Mar 1, 2015 at 2:39 PM, ttk2 notifications@github.com wrote:

stage the new jar or the version currently on Civtest?

On Sun, Mar 1, 2015 at 4:16 PM erocs notifications@github.com wrote:

Thanks! Ttk2 let's stage this.

Also aeecea6 <

https://github.com/Civcraft/PrisonPearl/commit/aeecea6228ac1079e1b29b4ffefe5f8d65434872

— Reply to this email directly or view it on GitHub < https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76634517 .

— Reply to this email directly or view it on GitHub <https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76635729 .

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76640512.

ttk2 commented 9 years ago

is this ready to go online

ttk2 commented 9 years ago

is this ready to go online?

erocs commented 9 years ago

Yes, I don't know if there have been any other PP changes that haven't gone to the main server yet though.

ttk2 commented 9 years ago

there does not seem to be anything of exceptional import, just pearl someone and make sure that works I guess

On Mon, Mar 2, 2015 at 11:48 PM erocs notifications@github.com wrote:

Yes, I don't know if there have been any other PP changes that haven't gone to the main server yet though.

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76890914.

jjj5311 commented 9 years ago

It should only log their ban status and a few other things

On Tuesday, March 3, 2015, ttk2 notifications@github.com wrote:

there does not seem to be anything of exceptional import, just pearl someone and make sure that works I guess

On Mon, Mar 2, 2015 at 11:48 PM erocs <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Yes, I don't know if there have been any other PP changes that haven't gone to the main server yet though.

— Reply to this email directly or view it on GitHub <https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76890914 .

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-77076734.

ttk2 commented 9 years ago

a few other changes are inbetween this and the currently running version, so some testing is required.

On Tue, Mar 3, 2015 at 7:03 PM jjj5311 notifications@github.com wrote:

It should only log their ban status and a few other things

On Tuesday, March 3, 2015, ttk2 notifications@github.com wrote:

there does not seem to be anything of exceptional import, just pearl someone and make sure that works I guess

On Mon, Mar 2, 2015 at 11:48 PM erocs <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Yes, I don't know if there have been any other PP changes that haven't gone to the main server yet though.

— Reply to this email directly or view it on GitHub < https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-76890914 .

— Reply to this email directly or view it on GitHub <https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-77076734 .

— Reply to this email directly or view it on GitHub https://github.com/Civcraft/PrisonPearl/issues/33#issuecomment-77076925.

jjj5311 commented 9 years ago

This can be closed right?