#HQM Quest Reset Command

6 messages · Page 1 of 1 (latest)

warm night
#

Resets your quests. In 1.20+ they have their own command (/hqm reset) but not in 1.19.2.
Use /questreset to clear your own quests, or /questreset <player> to clear someone elses. There is no chat feedback but you can add that easily

//type: server
//requires: hardcorequesting
const $QuestingDataManager = Java.loadClass('hardcorequesting.common.forge.quests.QuestingDataManager')
ServerEvents.commandRegistry(event => {
    const {commands: Commands, arguments: Arguments} = event;
    event.register(Commands.literal('questreset')
        .requires((/** @type {Internal.CommandSourceStack}} */ source) => source.hasPermission(2))
        .then(Commands.argument('player', Arguments.PLAYER.create(event))
        .executes(ctx => {
            $QuestingDataManager.getInstance().remove(Arguments.PLAYER.getResult(ctx, 'player'))
            return 1
        })).executes(ctx => {
            $QuestingDataManager.getInstance().remove(ctx.source.playerOrException)
            return 1
        }))
})```
dense jolt
#

why no codeblock ahujel

warm night
#

whoops forgot the ending ```

wind wave
#

what’s HQM

warm night
#

hardcore questing mod

#

ftbquests but slightly worse in some ways