The experience staff command: /experience add <player> <amount> gives experience to the targeted players' characters. A negative amount takes experience away, which can lower their level. The level cap of the server level does not bind it, so the experience can raise characters above the cap, but the level floor does: a character that falls below the floor is raised back to it, keeping its experience.

Summary

Subcommands

Gives the experience to every target that has an active character, past the level cap if it is enough, raises those that fell below the level floor back to it, then notifies the targets and staff.

Subcommands

add:on_run(actor, targets, amount)

shared plugins/levels/plugin/commands/sh_experience.lua:25

Gives the experience to every target that has an active character, past the level cap if it is enough, raises those that fell below the level floor back to it, then notifies the targets and staff.

Parameters

  • actor Player the player who ran the command, or an invalid entity for the console
  • targets List<Player> players matched by the first command argument
  • amount String experience to give, parsed with tonumber and rounded; negative to take experience away

Defined in