Update PlayerListener.java

Fix permission check