Skip to content

Commit

Permalink
Updated packages/lib-modules/src/modules/teleports (#621)
Browse files Browse the repository at this point in the history
Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
  • Loading branch information
sweep-ai[bot] authored Sep 15, 2023
1 parent a6ffdc9 commit 49ddad4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/lib-modules/src/modules/teleports/commands/teleport.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,9 @@ async function main() {
const { player, gameServerId, arguments: args, module: mod } = data;

if (!checkPermission(player, 'TELEPORTS_USE')) {
await takaro.gameserver.gameServerControllerSendMessage(gameServerId, {
message: 'You do not have permission to use teleports.',
opts: {
recipient: {
gameId: player.gameId,
},
},
});
return;
}
await data.player.pm('You do not have permission to use teleports.');
return;
}

const ownedTeleportRes = await takaro.variable.variableControllerSearch({
filters: {
Expand Down

0 comments on commit 49ddad4

Please sign in to comment.