Even more normalize credit comments

This commit is contained in:
ronancpl
2019-06-17 22:55:02 -03:00
parent 7be66bb39d
commit 78c660d5c0
160 changed files with 205 additions and 198 deletions

View File

@@ -102,7 +102,7 @@ public final class AdminCommandHandler extends AbstractMaplePacketHandler {
c.announce(MaplePacketCreator.getGMEffect(6, (byte) 1));
}
break;
case 0x10: // /h, information by vana (and tele mode f1) ... hide ofcourse
case 0x10: // /h, information added by vana <and tele mode f1> ... hide ofcourse
c.getPlayer().Hide(slea.readByte() == 1);
break;
case 0x11: // Entering a map

View File

@@ -76,7 +76,7 @@ public final class BBSOperationHandler extends AbstractMaplePacketHandler {
int start = slea.readInt();
listBBSThreads(c, start * 10);
break;
case 3: // list thread + reply, followed by id (int)
case 3: // list thread + reply, following by id (int)
localthreadid = slea.readInt();
displayThread(c, localthreadid);
break;

View File

@@ -86,7 +86,7 @@ public final class ChangeMapHandler extends AbstractMaplePacketHandler {
if (!chr.isAlive()) {
MapleMap map = chr.getMap();
if (wheel && chr.haveItemWithId(5510000, false)) {
// thanks lucasziron for showing revivePlayer() also being triggered by Wheel
// thanks lucasziron (lziron) for showing revivePlayer() triggering by Wheel
MapleInventoryManipulator.removeById(c, MapleInventoryType.CASH, 5510000, 1, true, false);
chr.announce(MaplePacketCreator.showWheelsLeft(chr.getItemQuantity(5510000, false)));

View File

@@ -36,7 +36,7 @@ import tools.data.input.SeekableLittleEndianAccessor;
*/
public final class QuestActionHandler extends AbstractMaplePacketHandler {
// isNpcNearby credits to GabrielSin
// isNpcNearby thanks to GabrielSin
private static boolean isNpcNearby(SeekableLittleEndianAccessor slea, MapleCharacter player, MapleQuest quest, int npcId) {
Point playerP = null;

View File

@@ -64,7 +64,7 @@ public final class LoginPasswordHandler implements MaplePacketHandler {
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
String remoteHost = getRemoteIp(c.getSession());
if (!remoteHost.contentEquals("null")) {
if (ServerConstants.USE_IP_VALIDATION) { // thanks Alex (CanIGetaPR) for suggesting IP validation as a server flag
if (ServerConstants.USE_IP_VALIDATION) { // thanks Alex (Alex-0000) for suggesting IP validation as a server flag
if (remoteHost.startsWith("127.")) {
if (!ServerConstants.LOCALSERVER) { // thanks Mills for noting HOST can also have a field named "localhost"
c.announce(MaplePacketCreator.getLoginFailed(13)); // cannot login as localhost if it's not a local server

View File

@@ -452,7 +452,7 @@ public class World {
return getAllCharactersView();
}
public List<MapleCharacter> getAllCharactersView() { // sorted by accountid, charid
public List<MapleCharacter> getAllCharactersView() { // sorting by accountid, charid
List<MapleCharacter> chrList = new LinkedList<>();
Map<Integer, SortedMap<Integer, MapleCharacter>> accChars;