Rename and clean up MapleCharacter
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
package client.command.commands.gm2;
|
||||
|
||||
import client.MapleCharacter;
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import server.maps.MapleMap;
|
||||
@@ -38,7 +38,7 @@ public class WarpAreaCommand extends Command {
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
MapleCharacter player = c.getPlayer();
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !warparea <mapid>");
|
||||
return;
|
||||
@@ -53,9 +53,9 @@ public class WarpAreaCommand extends Command {
|
||||
|
||||
Point pos = player.getPosition();
|
||||
|
||||
Collection<MapleCharacter> characters = player.getMap().getAllPlayers();
|
||||
Collection<Character> characters = player.getMap().getAllPlayers();
|
||||
|
||||
for (MapleCharacter victim : characters) {
|
||||
for (Character victim : characters) {
|
||||
if (victim.getPosition().distanceSq(pos) <= 50000) {
|
||||
victim.saveLocationOnWarp();
|
||||
victim.changeMap(target, target.getRandomPlayerSpawnpoint());
|
||||
|
||||
Reference in New Issue
Block a user