java.util.MissingFormatArgumentException: Format specifier 's'
at java.util.Formatter.format(Formatter.java:2487) ~[na:1.7.0_80]
at java.util.Formatter.format(Formatter.java:2423) ~[na:1.7.0_80]
at java.lang.String.format(String.java:2enter code here792) ~[na:1.7.0_80]
at com.aionemu.gameserver.utils.audit.GMService.onPlayerUnavailable(Unknown Source) ~[AL-Game.jar:na]
at admincommands.GMMode.execute(GMMode.java]:73) ~[na:na]
当我在游戏中发送命令时,出现此错误。
该问题与我的配置文件有关,还是与 java 完全有关?
整个代码是:
package admincommands;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.network.aion.serverpackets.SM_MOTION;
import com.aionemu.gameserver.network.aion.serverpackets.SM_PLAYER_INFO;
import com.aionemu.gameserver.utils.PacketSendUtility;
import com.aionemu.gameserver.utils.audit.GMService;
import com.aionemu.gameserver.utils.chathandlers.AdminCommand;
*/
public class GMMode extends AdminCommand {
public GMMode() {
super("gm");
}
@Override
public void execute(Player admin, String... params) {
if (admin.getAccessLevel() < 1) {
PacketSendUtility.sendMessage(admin, "You cannot use this command.");
return;
}
if (params.length != 1) {
onFail(admin, null);
return;
}
if (params[0].toLowerCase().equals("on")) {
if (!admin.isGmMode()) {
admin.setGmMode(true);
admin.setWispable();
犯罪嫌疑人X
相关分类