Pickpocketing

Lets players rob each other with the game's pickpocketing. The thief's game plays the minigame, and the server decides whether a theft may start and learns how it ended. The events are playerPickpocketStart, which can refuse, playerPickpocketCaught and playerPickpocketed.

pickpocketing.enabled

enabled

Whether the game offers Rob on other players.

pickpocketing.setEnabled()

Pickpocketing.setEnabled(enabled)

Offers or removes Rob on other players, for all players.

pickpocketing.victimNotice

victimNotice

Whether a player who catches a thief is told about it.

pickpocketing.victimNoticeText

victimNoticeText

The notice's text, where {thief} is replaced by the thief's name. For each language, use the Locales key 'pickpocket.victimNotice'.

pickpocketing.setVictimNotice()

Pickpocketing.setVictimNotice(enabled, text)

Turns the notice on or off, optionally with new text.