- Timestamp:
- Jun 19, 2016, 1:52:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/CoppisAdditions/src/Commands/GiveXP.cs
r273 r279 9 9 public override string GetDescription () 10 10 { 11 return "give an amount XP to a player (entity id or name)";11 return "give XP to the skill of a player"; 12 12 } 13 13 14 14 public override string GetHelp () 15 15 { 16 return "Give XP to a player\n" +16 return "Give XP to the skill of a player\n" + 17 17 "Usage:\n" + 18 18 " givexp <name / entity id> <amount xp> <skill name>\n" + … … 54 54 return; 55 55 } 56 EntityPlayer ep = GameManager.Instance.World.Players.dict [ci.entityId]; 57 GameManager.Instance.AddExpServer (ci.entityId, skill.Id, xp); 56 57 ci.SendPackage (new NetPackageConsoleCmdClient ("giveselfskillxp " + skillName + " " + xp, true)); 58 58 59 SdtdConsole.Instance.Output (xp + " xp was given on skill " + skillName + " to player " + ci.playerName); 59 60 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.