h1z1-server 0.33.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -125,7 +125,7 @@ export class Character2016 extends BaseFullCharacter {
|
|
|
125
125
|
isReady = false;
|
|
126
126
|
creationDate!: string;
|
|
127
127
|
lastLoginDate!: string;
|
|
128
|
-
lastWhisperedPlayer
|
|
128
|
+
lastWhisperedPlayer?: string;
|
|
129
129
|
hasAlertedBees = false;
|
|
130
130
|
vehicleExitDate: number = new Date().getTime();
|
|
131
131
|
currentLoadoutSlot = LoadoutSlots.FISTS;
|
|
@@ -416,6 +416,10 @@ export const commands: Array<Command> = [
|
|
|
416
416
|
server.sendChatText(client, "[Reply] The message may not be blank!");
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
|
+
if (!client.character.lastWhisperedPlayer) {
|
|
420
|
+
server.sendChatText(client, "[Reply] No one has whispered you yet.");
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
419
423
|
|
|
420
424
|
let targetClient = server.getClientByNameOrLoginSession(
|
|
421
425
|
client.character.lastWhisperedPlayer
|
|
@@ -2100,7 +2100,7 @@ export class ConstructionManager {
|
|
|
2100
2100
|
server.updateResource(
|
|
2101
2101
|
client,
|
|
2102
2102
|
entity.characterId,
|
|
2103
|
-
(entity.
|
|
2103
|
+
(entity.health / entity.maxHealth) * 1000000,
|
|
2104
2104
|
ResourceIds.CONSTRUCTION_CONDITION,
|
|
2105
2105
|
ResourceTypes.CONDITION
|
|
2106
2106
|
);
|