mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 03:34:24 +00:00
Fine Tuning Profile Controller Instance
This commit is contained in:
1 parent
c3538836be
commit
83c16ae419
8 files changed
+51
-51
No files matched your search
@@ -39,11 +39,11 @@ public class CommandProfileCreate extends CommandProfileBase {
|
||||
return;
|
||||
}
|
||||
EntityPlayer player = (EntityPlayer)sender;
|
||||
if(ProfileController.getProfile(player) == null) {
|
||||
if(ProfileController.Instance.getProfile(player) == null) {
|
||||
sendError(sender, "Profile not found.");
|
||||
return;
|
||||
}
|
||||
ProfileOperation result = ProfileController.createSlotInternal(ProfileController.getProfile(player));
|
||||
ProfileOperation result = ProfileController.Instance.createSlotInternal(ProfileController.Instance.getProfile(player));
|
||||
if(result.getResult() == EnumProfileOperation.SUCCESS) {
|
||||
sendResult(sender, "New profile slot created successfully.");
|
||||
} else if(result.getResult() == EnumProfileOperation.LOCKED) {
|
||||
|
||||
Reference in new issue
Block a user