mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Fix compilation warnings
This commit is contained in:
		@@ -223,10 +223,10 @@ public abstract class SkillCommand implements TabExecutor {
 | 
				
			|||||||
        String statDescriptionKey = !isExtra ? subSkillType.getLocaleKeyStatDescription(pluginRef) : subSkillType.getLocaleKeyStatExtraDescription(pluginRef);
 | 
					        String statDescriptionKey = !isExtra ? subSkillType.getLocaleKeyStatDescription(pluginRef) : subSkillType.getLocaleKeyStatExtraDescription(pluginRef);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (isCustom)
 | 
					        if (isCustom)
 | 
				
			||||||
            return pluginRef.getLocaleManager().getString(templateKey, pluginRef.getLocaleManager().getString(statDescriptionKey, vars));
 | 
					            return pluginRef.getLocaleManager().getString(templateKey, pluginRef.getLocaleManager().getString(statDescriptionKey, (Object[]) vars));
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
            String[] mergedList = pluginRef.getNotificationManager().addItemToFirstPositionOfArray(pluginRef.getLocaleManager().getString(statDescriptionKey), vars);
 | 
					            String[] mergedList = pluginRef.getNotificationManager().addItemToFirstPositionOfArray(pluginRef.getLocaleManager().getString(statDescriptionKey), vars);
 | 
				
			||||||
            return pluginRef.getLocaleManager().getString(templateKey, mergedList);
 | 
					            return pluginRef.getLocaleManager().getString(templateKey, (Object[]) mergedList);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -214,12 +214,12 @@ public class NotificationManager {
 | 
				
			|||||||
        //Send the notification
 | 
					        //Send the notification
 | 
				
			||||||
        switch (sensitiveCommandType) {
 | 
					        switch (sensitiveCommandType) {
 | 
				
			||||||
            case XPRATE_MODIFY:
 | 
					            case XPRATE_MODIFY:
 | 
				
			||||||
                sendAdminNotification(pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.Start.Others", addItemToFirstPositionOfArray(senderName, args)));
 | 
					                sendAdminNotification(pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.Start.Others", (Object[]) addItemToFirstPositionOfArray(senderName, args)));
 | 
				
			||||||
                sendAdminCommandConfirmation(commandSender, pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.Start.Self", args));
 | 
					                sendAdminCommandConfirmation(commandSender, pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.Start.Self", (Object[]) args));
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            case XPRATE_END:
 | 
					            case XPRATE_END:
 | 
				
			||||||
                sendAdminNotification(pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.End.Others", addItemToFirstPositionOfArray(senderName, args)));
 | 
					                sendAdminNotification(pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.End.Others", (Object[]) addItemToFirstPositionOfArray(senderName, args)));
 | 
				
			||||||
                sendAdminCommandConfirmation(commandSender, pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.End.Self", args));
 | 
					                sendAdminCommandConfirmation(commandSender, pluginRef.getLocaleManager().getString("Notifications.Admin.XPRate.End.Self", (Object[]) args));
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user