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
player.hasPermission() > null pointer #117
Comments
Post the stacktrace... |
Speaking of which, @zml2008 is it better to post question in a git issue or on the forums? I want to do what is the most convenient for those who will likely answer. |
@mrgoodrich for Sponge bugs, post on GH, especially if you can provide useful corroborating information -- this is where most of us go to look for issues, and what is linked to more people's email, and is more directly connected with actual code changes. |
|
I actually get this error when running any command that checks permissions (/time set day) |
Are you running the server in offline mode? |
no, I am just running in single player worlds. Well, I guess I am not sure if that is flagged as "offline" mode automatically or not. |
is the client running in offline mode? But yeah, this issue has been seen before, and seems to be an issue with game profile resolution clientside -- @simon816 changed that code recently. |
This issue can be caused by 2 things:
If this occurs, simply wait a minute and try again to make sure you do not receive this error. |
Is this exception happening client side or server side?
Developing and testing plugins is quite hard if you only have one player, i usually use offline mode to allow my test players to connect and interact with the world (and i don't want to buy more accounts just for testing purposes). I don't need real/full offline support, but at least it should not throw an exception everytime i try to do anything. Testing an arena plugin is impossible with just one player. |
@ST-DDT mmonkey said he "was just running in singleplayer worlds". Based on the stack trace, it's on the server thread. |
Okay, I got that from the stack trace as well, but i wasnt sure which one. |
@ST-DDT agreed, I'll look into a fix for testing purposes. |
I think I know what's happening here It's because forge has used up the request limit for a player's profile. The session service limits to once per UUID per minute. |
I've been looking into this, and I've found it to happen:
|
I get a null pointer error when checking player.hasPermission("warp.admin").
using sponge build 533, forge 1499 in single player.
Also, I am not using a permission plugin of any kind.
The text was updated successfully, but these errors were encountered: