add premium to guilds and re-enable the global commands that are supposed to be global

This commit is contained in:
Lee
2024-06-27 21:05:54 +01:00
parent 2c6dcc08cd
commit 73e4b58695
22 changed files with 385 additions and 44 deletions

View File

@ -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);
}
}