mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Changed it so new players granted level 5
This fixes problem that prevents players not being able to level up since they are technically considered -1 when they are first created which is why setgodmode level 1 would allow exp gains.
This commit is contained in:
@@ -1173,6 +1173,13 @@ public class ObjectService implements INetworkDispatch {
|
||||
});
|
||||
}
|
||||
|
||||
// New players that skip tutorial
|
||||
if (creature.getLevel() <= (short) 1) {
|
||||
core.playerService.grantLevel(creature, 5);
|
||||
TangibleObject inventory = (TangibleObject) creature.getSlottedObject("inventory");
|
||||
if (inventory != null) inventory.add(core.objectService.createObject("object/tangible/npe/shared_npe_uniform_box.iff", creature.getPlanet()));
|
||||
}
|
||||
|
||||
core.playerService.postZoneIn(creature);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user