no message
This commit is contained in:
parent
8263aed9d8
commit
f78fed284c
|
|
@ -49,6 +49,7 @@ public class DropControl extends JPanel {
|
|||
buffer.setGold_rate(GoldRate);
|
||||
buffer.setItem_rate(ItemRate);
|
||||
buffer.setTime_range(Time);
|
||||
buffer.setExp_rate(ExpRate);
|
||||
buffer.setStackable(IsStack);
|
||||
Buf.add(buffer);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package server;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Set;
|
||||
import java.util.Iterator;
|
||||
|
||||
|
|
@ -103,6 +104,22 @@ public class ShutdownServer implements Runnable, ShutdownServerMBean {
|
|||
|
||||
System.out.println("[" + FileoutputUtil.CurrentReadable_Time() + "][信息]:服务端已经完全关闭了请点击右上角的xx按钮关闭.");
|
||||
System.out.println("[" + FileoutputUtil.CurrentReadable_Time() + "][========================================]");
|
||||
|
||||
String property = System.getProperty("user.dir");
|
||||
String batFilePath = property+"\\启动.bat";
|
||||
Process process = null;
|
||||
try {
|
||||
process = Runtime.getRuntime().exec("cmd /c start " + batFilePath);
|
||||
int exitCode = process.waitFor();
|
||||
|
||||
System.exit(0);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -529,7 +529,11 @@ public final class MapleMap {
|
|||
for (MapleMonster mob : getAllMonstersThreadsafe()) {
|
||||
if (!mob.getStats().isBoss()) {
|
||||
mob.setPosition(getChrPos());
|
||||
broadcastMessage(MobPacket.moveMonster(false, 0, 0, mob.getObjectId(), getChrPos(), mob.getPosition(), get吸怪Res()), mob.getPosition());
|
||||
try {
|
||||
broadcastMessage(MobPacket.moveMonster(false, 0, 0, mob.getObjectId(), getChrPos(), mob.getPosition(), get吸怪Res()), mob.getPosition());
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue