forked from Fascinated/Bat
add premium to guilds and re-enable the global commands that are supposed to be global
This commit is contained in:
@ -22,7 +22,7 @@ public class ProfileHolder {
|
||||
* @param <T> The type of the profile
|
||||
* @return The profile
|
||||
*/
|
||||
public <T extends Profile> T getProfile(Class<?> clazz) {
|
||||
public <T extends Profile> T getProfile(Class<T> clazz) {
|
||||
if (profiles == null) {
|
||||
profiles = new HashMap<>();
|
||||
}
|
||||
@ -36,6 +36,6 @@ public class ProfileHolder {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return (T) profile;
|
||||
return clazz.cast(profile);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user