MilkBowl/Vault — Issue #56: Prefix and Suffix 
Author: Tazzernator
Created: 2012-01-09 02:51:00+00:00
State: open

I keep getting null pointers on the getPlayerPrefix(player) and getGroupPrefix(world, group)

My basic PEX test:

users:
Tazzernator:
prefix: '[Tazzernator]'
group:
- Admin
groups:
default:
default: true
permissions:
- modifyworld.*
- mcdocs.*
Admin:
prefix: '[Admin]'
inheritance:
- default

Use:

private String[] getGroupInfo(Player player){

String group = MCDocs.permission.getPrimaryGroup(player); //works fine
String prefix = MCDocs.chat.getPlayerPrefix(player); //java.lang.NullPointerException
String prefix = MCDocs.chat.getPlayerSuffix(player); //java.lang.NullPointerException

String[] ret = {group, prefix, suffix};
return ret;
}