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

User not receiving invite/not in a town #4157

Closed
austin652 opened this issue Jul 12, 2020 · 26 comments
Closed

User not receiving invite/not in a town #4157

austin652 opened this issue Jul 12, 2020 · 26 comments

Comments

@austin652
Copy link

What steps will reproduce the problem?

  1. /towny invite user (in this case "stry")
  2. /ta town name add user
  3. /res user ("stry")
  4. /ta delete user

What is the expected output?

  1. user is sent an invite to in chat to accept or decline
  2. user is added to the defined town
  3. towny profile displayed with time stamps
  4. the user is deleted (if offline or online it says "user is Online or is an NPC.")

What is your Towny version?

Do not say "latest".
96.2.3

What is your spigot/craftbukkit version?

Do not say "latest".
PaperSpigot 1.16.1

Please use Pastebin.com to link the following files:

Skipping these files is not an option. It is the easiest way to diagnose an issue ticket properly. If you do skip this step then your ticket will most likely be deleted and you will be asked to resubmit.

  1. Your full server startup from the logs\latest.log :
    https://pastebin.com/qm2j2VJM
  2. Your Towny config.yml (if using MySQL please remove password,) :
    https://pastebin.com/xfF0HmLg
  3. Your townyperms.yml :
    https://pastebin.com/CC3ui7s2
  4. Your log's error :

(optional) If this is to do with permissions,
5. Your permissions file :

(optional) If this is to do with chat,
6. Your chatconfig.yml :
7. Your channels.yml :

This is probably a very specific issue but after several user reconnects, restarts, manual mySQL resident deletes I can't find a solution to this problem myself and wonder if it might have something to do with their ign being only 4 characters.

2020-07-12_12 37 13
2020-07-12_12 39 54
2020-07-12_13 18 02
2020-07-12_13 18 04

@austin652 austin652 added the bug label Jul 12, 2020
@LlmDl
Copy link
Member

LlmDl commented Jul 12, 2020

So a mayor is not able to /t invite stry?
But you can use the /ta town NAME add stry.

Can you show me the mysql entry for stry?

@austin652
Copy link
Author

austin652 commented Jul 12, 2020

The mayor can invite stry, however stry doesn't receive the invite and towny lists stry as not in a town, to be more clear the town lists stry as in the town but the player is not considered in the town. the sql shows them in a town but in-game /res NAME defines them as not in a town
mysql

other users can be invited and receive the invite and can accept and join

@LlmDl
Copy link
Member

LlmDl commented Jul 12, 2020

they're marked as being an NPC, which is why they cannot be /ta deleted, probably also why they aren't getting an invite.

@austin652
Copy link
Author

so if i switch that from 1 to 0 that should possibly fix it?

@LlmDl
Copy link
Member

LlmDl commented Jul 12, 2020

I would imagine yes.

@austin652
Copy link
Author

I changed isNPC from 1 to 0 and restarted, but it changed back to 1

@LlmDl
Copy link
Member

LlmDl commented Jul 12, 2020

That is very strange.

edit: Make sure you're doing this while the server is shut down.

@LlmDl LlmDl closed this as completed Jul 22, 2020
@austin652
Copy link
Author

Sorry for the super late response. Just tried to change isNPC from 1 to 0 while the server was offline and when I turned the server on it was marked with 1 again. My server is running Towny 0.96.2.9 on PaperSpigot 1.16.1 #128

@LlmDl
Copy link
Member

LlmDl commented Jul 29, 2020

That doesn't really make sense. Do you have a plugin that would be doing this?

@austin652
Copy link
Author

Citizens maybe?

@LlmDl
Copy link
Member

LlmDl commented Jul 29, 2020

Doubtful. Stop the server and disable everything except vault, your economy plugin and Towny. Make the database change and then start the server. See if it goes back to 1.

@austin652
Copy link
Author

Disabled everything except vault, my economy plugin and Towny and made the change while it was off and it went back to 1 still

@LlmDl
Copy link
Member

LlmDl commented Jul 29, 2020

Sounds like w/e you're doing to edit your database is not editing the database.

@austin652
Copy link
Author

I was using MySql workbench to edit it before and after doing it directly from phpMyAdmin i'm still getting the same result

@LlmDl
Copy link
Member

LlmDl commented Jul 30, 2020

I'd say convert to flatfile using the instructions on the How Towny Works wikipage, flatfile is more reliable in general. I have never heard of anyone with this issue using either mysql or flatfile, but I believe it will stop if you're using files (unless something else is interfering.)

@austin652
Copy link
Author

austin652 commented Jul 30, 2020

Converted to flatfile using the methods that were on the wiki, then turned off the server like before, went into the user file changed NPC:True to false and turned the server on it changed back to true
Edit: This doesn't happen right away when it turns on, only after this specific user being online it changes to True again

@LlmDl
Copy link
Member

LlmDl commented Jul 31, 2020

The only way Towny does that is if someone is using the /ta toggle npc {resident} command on them.

@austin652
Copy link
Author

austin652 commented Jul 31, 2020

I'm the only one on after these restarts and I don't do the command and the user doesn't have access to it
edit: the user "stry" is also on after these restarts with me

@LlmDl
Copy link
Member

LlmDl commented Jul 31, 2020

OK, still incredibly strange. Probably not Towny causing it, since it will only set the NPC value on load of the database, or when that command is run.

@austin652
Copy link
Author

Would it have to do with Essentials? because that's my economy plugin, I had Essentials,EssentialsChat,EssentialsSpawn,Vault and Towny running that time you said economy, vault and towny

@LlmDl
Copy link
Member

LlmDl commented Jul 31, 2020

Unlikely.

@austin652
Copy link
Author

On a fresh server with only towny default config, essentials default config and vault the problem still exists, the person is marked as an npc right away when their profile is created for the first time

@LlmDl
Copy link
Member

LlmDl commented Aug 9, 2020

Sorry for the late response, I have been on holiday.

If you want to try having them join a test server of mine, we can test it on my end.

@austin652
Copy link
Author

No problem. We can try that

@austin652
Copy link
Author

Sorry if it's posted somewhere obvious but I can't find anything about a test server.

@LlmDl
Copy link
Member

LlmDl commented Aug 19, 2020

Hit me up on the discord and I can give you teh address.

@LlmDl LlmDl reopened this Aug 19, 2020
@LlmDl LlmDl closed this as completed in f7f193c Aug 19, 2020
@LlmDl LlmDl added this to the 0.96.3.0 milestone Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants