Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Csn clear not working #22

Open
Castiella opened this issue Sep 10, 2018 · 14 comments
Open

/Csn clear not working #22

Castiella opened this issue Sep 10, 2018 · 14 comments

Comments

@Castiella
Copy link

When a player does /csn clear, it will clear the history. However, if they leave the server, the history is still there when they re-join.

Here is a latest log, which should include me testing this. I am also using paper 1.13.1 (build 229)

let me know if
latest.log
you need any information.

@Phoenix616
Copy link
Member

Please test with the latest development build and see if it still happens with that.

@Castiella
Copy link
Author

Still happening with the recent build

@Castiella
Copy link
Author

any update on this?

@TheoRetisch1
Copy link

It works for me using 1.3.0-SNAPSHOT (build#35)
PaperSpigiot 1.12.2 #1574
Just saw this issue because I faced the same problem before updating.

@Castiella
Copy link
Author

Im using 1.13, not 1.12 - the plugin works fine on 1.12

@Phoenix616
Copy link
Member

It is working for me on 1.13. I've found another bug though which might be the behaviour that you are noticing? Please test the latest dev build.

@Castiella
Copy link
Author

Using latest dev build and still having this error.

@mare-on
Copy link

mare-on commented Nov 20, 2020

Using the latest build and have the same issue. I will look at the code, maybe I will find where is the problem.

@mare-on
Copy link

mare-on commented Nov 20, 2020

The issue is in file Clear.java on line "statement.executeUpdate("DELETE FROM csnUUID WHERE Unread='1' AND ShopOwnerId='" + senderId.toString() + "'");" Where Unread='1' is wrong, it must be Unread='0'

@Phoenix616
Copy link
Member

I'm pretty sure Unread='1' is correct there as the command should only remove read entries, not unread ones. (If it's 0 it means that it hasn't been read with /csn history yet and yes, the naming is unfortuantely backwards to what one would expect)

@mare-on
Copy link

mare-on commented Nov 20, 2020

Ok... it's weird... it didn't work but now it works good... hmm... I will be watching it but for now looks like evething is fine idk how.

@PlayingWithPi
Copy link

Did this get resolved @mare-on @Castiella ?
Do you still have this issue?

@Laukage
Copy link

Laukage commented Aug 4, 2023

Not working on Build 51, latest versions are not working that great with chestshop which is why i'm on build 51.
image

@Phoenix616
Copy link
Member

Phoenix616 commented Aug 5, 2023

@Laukage What do you mean? The latest builds work completely fine. I run them on my server. If you are having problems with it then please open issues!

As for issues with the clean command here: Please test on the latest build and if you are still experiencing issues with it then provide the following information:

  • A full server log
  • What you do when you run into the issue and what you expect to happen
  • If you can the entries in the database (e.g. in form of a mysqldump or SQLite file) that cause the issue
  • (if using MySQL) the MySQL server type and version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants